/* Homestead's one stylesheet.  Taken from the approved mockup (homestead/mockup.template.html), November 7, 2026.
   Amber (--amber) is declared once here and used only by the Needs You rules: tests/amber.test.mjs. */
@property --lane-c { syntax: '<color>'; inherits: true; initial-value: #37B4F5; }
:root {
  --bg: #070A10; --bg-2: #0D121B; --bg-3: #151C29; --line: #232D3E; --line-2: #18202D;
  --ink: #EEF2F8; --ink-2: #AAB5C6; --ink-3: #8592A6;
  --lit: #BFE7FF; --money: #37B4F5; --build: #A78BFA; --fun: #F472B6;
  --amber: #FFB020; --gone: #34D399; --stop: #FF6B6B;
  --lane-c: var(--money);
  --ease: cubic-bezier(.2,.7,.2,1);
  --ui: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI Variable', 'Segoe UI', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { background: var(--bg); color: var(--ink); font: 16px/1.45 var(--ui); -webkit-font-smoothing: antialiased; overflow: hidden; margin: 0; transition: --lane-c .45s var(--ease); }
body.large { zoom: 1.14; }
body[data-lane=money] { --lane-c: var(--money); }
body[data-lane=build] { --lane-c: var(--build); }
body[data-lane=fun]   { --lane-c: var(--fun); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--lit); outline-offset: 2px; border-radius: 6px; }
.tn { font-variant-numeric: tabular-nums; }

/* the frame */
#app { height: 100%; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: 52px minmax(0, 1fr) 36px; }
.top { display: flex; align-items: center; gap: 22px; padding: 0 18px; background: rgba(9,13,20,.86); border-bottom: 1px solid var(--line-2); z-index: 20; }
.mark { display: flex; align-items: center; gap: 11px; font-size: 14px; letter-spacing: .26em; font-weight: 600; color: var(--ink); }
.mark svg { width: 22px; height: 22px; filter: drop-shadow(0 0 6px rgba(191,231,255,.45)); }
.nav { display: flex; gap: 4px; }
.nav button { padding: 6px 12px; border-radius: 8px; color: var(--ink-2); font-size: 15px; transition: color .15s, background .15s; }
.nav button:hover { color: var(--ink); background: var(--bg-3); }
.nav button.on { color: var(--ink); box-shadow: inset 0 -2px 0 var(--lit); border-radius: 8px 8px 0 0; }
.top .sp { flex: 1; }
.tools { display: flex; align-items: center; gap: 6px; }
.tool { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 11px; border-radius: 8px; color: var(--ink-2); font-size: 14px; white-space: nowrap; transition: color .15s, background .15s; }
.tool:hover { color: var(--ink); background: var(--bg-3); }
.tool svg { width: 16px; height: 16px; flex: none; }
.scanner-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--lit); box-shadow: 0 0 8px var(--lit); margin: 0 8px 0 6px; }

#page { position: relative; overflow: hidden; min-height: 0; }
.bar { display: flex; align-items: center; gap: 16px; padding: 0 18px; font-size: 14px; color: var(--ink-2); background: var(--bg); border-top: 1px solid var(--line-2); z-index: 20; }
.bar .say { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar .say button { color: var(--lit); margin-left: 6px; }
.bar .say.gone { color: var(--gone); }
.bar .mid { flex: 1; text-align: center; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar .mid button { color: var(--lit); }
.bar .hint { color: var(--ink-3); white-space: nowrap; }

/* Now */
.nowview { height: 100%; display: grid; grid-template-columns: 284px 1fr; }
.rail { background: linear-gradient(180deg, rgba(13,18,27,.96), rgba(9,13,20,.96)); border-right: 1px solid var(--line-2); padding: 18px 12px; overflow: auto; display: flex; flex-direction: column; gap: 18px; }
.lane h3 { display: flex; justify-content: space-between; margin: 0 8px 7px; font-size: 14px; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; color: var(--lc); }
.lane h3 span { letter-spacing: 0; color: var(--ink-3); font-weight: 500; }
.lane[data-l=money] { --lc: var(--money); } .lane[data-l=build] { --lc: var(--build); } .lane[data-l=fun] { --lc: var(--fun); }
.slot { position: relative; display: flex; align-items: center; width: 100%; min-height: 44px; padding: 0 12px 0 16px; border-radius: 9px; text-align: left; color: var(--ink); font-weight: 550; transition: background .15s; }
.slot::before { content: ''; position: absolute; left: 5px; top: 10px; bottom: 10px; width: 3px; border-radius: 3px; background: var(--lc); opacity: .75; transition: box-shadow .2s, opacity .2s; }
.slot:hover { background: var(--bg-3); }
.slot.on { background: var(--bg-3); box-shadow: inset 0 0 0 1px var(--line); }
.slot.on::before { opacity: 1; box-shadow: 0 0 12px var(--lc); }
.slot .nm { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slot.open { color: var(--ink-3); font-weight: 400; }
.slot.open::before { background: none; border-left: 2px dashed var(--line); opacity: 1; width: 0; }
.funbtn { display: block; margin: 6px 8px 0 16px; font-size: 14px; color: var(--fun); }
.unfiled { margin-top: auto; padding: 10px 12px; border-radius: 9px; color: var(--ink-2); font-size: 15px; text-align: left; }
.unfiled:hover { background: var(--bg-3); color: var(--ink); }

.stage { position: relative; overflow: auto; display: flex; flex-direction: column; padding: clamp(24px, 10vh, 104px) clamp(28px, 6vw, 96px) 28px; }
.stage::before { content: ''; position: fixed; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(148,178,214,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(148,178,214,.045) 1px, transparent 1px); background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 62% at 58% 42%, #000 20%, transparent 78%); mask-image: radial-gradient(ellipse 70% 62% at 58% 42%, #000 20%, transparent 78%); }
.glow { position: absolute; left: 4%; top: 4%; width: 62%; height: 62%; pointer-events: none; opacity: .17; filter: blur(70px); background: radial-gradient(closest-side, var(--lane-c), transparent); animation: breathe 7s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .24; transform: scale(1.05); } }
.stage > :not(.glow) { position: relative; }
.incl { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 10px 14px; margin-bottom: 26px; border-radius: 10px; background: rgba(21,28,41,.8); box-shadow: inset 3px 0 0 var(--lane-c), inset 0 0 0 1px var(--line); font-size: 15px; }
.incl .sp { flex: 1; }
.incl button { color: var(--lit); }
.drift { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 10px 14px; margin-bottom: 18px; border-radius: 10px; background: rgba(21,28,41,.75); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); font-size: 15px; }
.drift .sp { flex: 1; } .drift button { color: var(--lit); }

.meta { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: clamp(18px, 5vh, 40px); }
.meta .where { font-size: 14px; letter-spacing: .15em; text-transform: uppercase; color: var(--lane-c); font-weight: 600; }
.meta .where b { color: var(--ink); font-weight: 600; }
.ladder { text-align: right; font-size: 14px; color: var(--ink-2); }
.ticks { display: inline-flex; gap: 3px; vertical-align: -1px; margin-right: 8px; }
.ticks i { width: 7px; height: 14px; border-radius: 2px; background: var(--line); }
.ticks i.f { background: var(--ink-2); }
.worked { color: var(--ink-3); }
.now { font-size: clamp(34px, 4.6vw, 64px); line-height: 1.07; letter-spacing: -.022em; font-weight: 640; margin: 0 0 18px; max-width: 16em; animation: rise .22s var(--ease); }
.why { font-size: 18px; line-height: 1.5; color: var(--ink-2); max-width: 44em; margin: 0 0 clamp(20px, 4.4vh, 36px); animation: rise .28s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.acts { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 48px; padding: 0 20px; border-radius: 10px; font-weight: 600; white-space: nowrap; box-shadow: inset 0 0 0 1px var(--line); transition: transform .08s, background .15s, box-shadow .15s; }
.btn:hover { background: var(--bg-3); }
.btn:active { transform: translateY(1px); }
.btn.pri { background: var(--lane-c); color: #04121C; box-shadow: inset 0 0 0 1px rgba(255,255,255,.14), 0 10px 32px -12px var(--lane-c); }
.btn.pri:hover { filter: brightness(1.08); }
.btn.txt { box-shadow: none; color: var(--ink-2); font-weight: 500; padding: 0 12px; }
.btn.sm { height: 38px; padding: 0 13px; font-size: 15px; }
.key { font-size: 14px; opacity: .7; font-weight: 500; }

.needs { margin-top: auto; padding-top: 28px; max-width: 900px; }
.needs h4 { margin: 0 0 6px; font-size: 14px; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; color: var(--amber); }
.needs .ln { display: flex; align-items: center; gap: 12px; min-height: 42px; border-top: 1px solid var(--line-2); }
.needs .ln i { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--amber); box-shadow: 0 0 9px var(--amber); }
.needs .ln span { flex: 1; min-width: 0; }
.needs .ln button, .needs .ln a { color: var(--amber); font-size: 15px; padding: 4px 6px; white-space: nowrap; }
.needs .ln button:hover, .needs .ln a:hover { text-decoration: underline; }
.needs .more { color: var(--amber); font-size: 15px; padding-top: 6px; }

/* the Fun Timer */
.funroom { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; position: relative; }
.funroom .glow { left: 19%; width: 62%; top: 14%; opacity: .26; }
.funroom > :not(.glow) { position: relative; }
.funroom .lbl { font-size: 14px; letter-spacing: .18em; text-transform: uppercase; color: var(--fun); font-weight: 600; }
.funroom h2 { font-size: clamp(30px, 4vw, 52px); letter-spacing: -.02em; margin: 14px 0 6px; font-weight: 640; }
.funroom .goal { color: var(--ink-2); font-size: 18px; }
.funroom .clock { font-size: clamp(64px, 11vw, 136px); font-weight: 200; letter-spacing: -.02em; margin: 18px 0; color: var(--fun); text-shadow: 0 0 44px rgba(244,114,182,.45); }
.funroom .quiet { color: var(--ink-3); margin: 0 0 22px; }

/* Projects */
.projects { position: relative; height: 100%; display: grid; grid-template-columns: 1fr; transition: grid-template-columns .2s var(--ease); }
.projects.detailed { grid-template-columns: 1fr 448px; }
.bmain { min-width: 0; display: flex; flex-direction: column; min-height: 0; }
.bhead { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 14px 20px 12px; border-bottom: 1px solid var(--line-2); background: var(--bg); }
.bhead h2 { margin: 0; font-size: 20px; font-weight: 650; letter-spacing: -.01em; }
.pills { display: flex; gap: 4px; flex-wrap: wrap; }
.pill { height: 32px; padding: 0 11px; border-radius: 8px; font-size: 14px; color: var(--ink-2); transition: background .15s, color .15s; }
.pill:hover { background: var(--bg-3); color: var(--ink); }
.pill.on { background: var(--bg-3); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.pill b { font-weight: 600; margin-left: 4px; }
.pill.amb b { color: var(--ink); }
.blist { overflow: auto; flex: 1; padding: 6px 0 40px; position: relative; }
.ghead, .shead { display: flex; align-items: center; gap: 8px; user-select: none; }
.ghead { padding: 14px 20px 6px 12px; font-size: 14px; font-weight: 650; letter-spacing: .13em; text-transform: uppercase; color: var(--ink); }
.shead { padding: 7px 20px 5px 30px; font-size: 14px; color: var(--ink-2); font-weight: 550; }
.ghead .cnt, .shead .cnt { color: var(--ink-3); font-weight: 400; letter-spacing: 0; }
.caret { width: 18px; height: 18px; display: inline-grid; place-items: center; color: var(--ink-3); transition: transform .14s; flex: none; }
.caret.shut { transform: rotate(-90deg); }
.grabh { cursor: grab; flex: 1; min-width: 0; }
.ghead .add { font-size: 14px; color: var(--ink-3); letter-spacing: 0; text-transform: none; font-weight: 400; opacity: 0; transition: opacity .12s; }
.ghead:hover .add { opacity: 1; }
.ghead .add:hover { color: var(--ink); }
.strip { position: relative; display: grid; grid-template-columns: 22px 34px minmax(130px, 228px) minmax(0, 1fr) auto 84px 112px 34px; align-items: center; gap: 10px; height: 40px; padding: 0 12px 0 28px; border-bottom: 1px solid rgba(35,45,62,.38); transition: background .1s; }
.strip::before { content: ''; position: absolute; left: 20px; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: var(--lc, transparent); box-shadow: 0 0 9px var(--lc, transparent); }
.strip[data-l=money] { --lc: var(--money); } .strip[data-l=build] { --lc: var(--build); } .strip[data-l=fun] { --lc: var(--fun); }
.strip:hover { background: var(--bg-3); }
.strip.sel { background: var(--bg-3); box-shadow: inset 0 0 0 1px var(--lit); }
.strip.picked { background: rgba(191,231,255,.09); }
.strip.dim { opacity: .5; }
.grip { color: var(--ink-3); cursor: grab; display: grid; place-items: center; height: 100%; opacity: 0; touch-action: none; }
.strip:hover .grip, .strip.sel .grip { opacity: 1; }
.num { color: var(--ink-3); font-size: 14px; text-align: right; }
.nm { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.job { color: var(--ink-2); font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.marks { display: flex; gap: 6px; color: var(--ink-2); font-size: 15px; align-items: center; }
.mark.followup { color: var(--ink-2); }
.mark.followup.due { color: var(--amber); }
.needs.dot { width: 8px; height: 8px; flex: none; padding: 0; margin: 0; max-width: none; border-radius: 50%; background: var(--amber); box-shadow: 0 0 9px var(--amber); }
.marks .star { color: #fff; }
.when { text-align: right; font-size: 14px; color: var(--ink-2); white-space: nowrap; }
.when.stale { color: var(--ink-3); }
.go { width: 30px; height: 30px; border-radius: 7px; display: grid; place-items: center; color: var(--ink-3); opacity: 0; transition: background .12s, color .12s; }
.strip:hover .go, .strip.sel .go { opacity: 1; }
.go:hover { background: var(--lit); color: #04121C; }
.go svg { width: 16px; height: 16px; }
.empty { padding: 44px 20px; color: var(--ink-3); text-align: center; }

.details { min-width: 0; border-left: 1px solid var(--line); background: var(--bg-2); overflow: auto; padding: 20px 22px 40px; animation: slide .2s var(--ease); }
@keyframes slide { from { transform: translateX(24px); opacity: 0; } }
.details .x { float: right; color: var(--ink-3); font-size: 22px; line-height: 1; padding: 2px 6px; border-radius: 6px; }
.details .x:hover { color: var(--ink); background: var(--bg-3); }
.details h2 { margin: 0 34px 4px 0; font-size: 26px; letter-spacing: -.016em; font-weight: 650; line-height: 1.15; }
.details .plain { color: var(--ink-2); margin: 6px 0 12px; }
.dh { margin: 20px 0 7px; font-size: 14px; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button { height: 36px; padding: 0 12px; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--line); font-size: 15px; color: var(--ink-2); }
.seg button:hover { background: var(--bg-3); color: var(--ink); }
.seg button.on { color: #04121C; font-weight: 600; box-shadow: none; }
.seg button.on[data-to=money] { background: var(--money); } .seg button.on[data-to=build] { background: var(--build); } .seg button.on[data-to=fun] { background: var(--fun); }
.seg button.on[data-to=parked], .seg button.on[data-to=off], .seg button.on[data-to=unsorted] { background: var(--ink-2); }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 3px 14px; font-size: 15px; }
.facts dt { color: var(--ink-3); } .facts dd { margin: 0; }
.q { list-style: none; margin: 0 0 8px; padding: 0; }
.q li { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line-2); font-size: 15px; }
.q li:first-child span { font-weight: 600; }
.q li span { flex: 1; min-width: 0; }
.q li button { color: var(--ink-3); font-size: 14px; }
.q li button:hover { color: var(--ink); }
.field { width: 100%; height: 40px; padding: 0 12px; border-radius: 9px; background: var(--bg); border: 1px solid var(--line); outline: 0; }
.field:focus { border-color: var(--lit); }
.details .rowb { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }

/* the dock: what a drag can land on */
.dock { position: absolute; left: 0; right: 0; top: 0; z-index: 40; display: none; grid-template-columns: repeat(5, 1fr); gap: 8px; padding: 10px 14px; background: rgba(7,10,16,.93); border-bottom: 1px solid var(--line); }
.dock.show { display: grid; animation: drop .14s var(--ease); }
@keyframes drop { from { transform: translateY(-14px); opacity: 0; } }
.dz { height: 60px; border-radius: 10px; display: flex; flex-direction: column; justify-content: center; align-items: center; box-shadow: inset 0 0 0 1px var(--line); font-weight: 600; font-size: 15px; transition: background .1s, box-shadow .1s, transform .1s; }
.dz small { font-size: 14px; color: var(--ink-3); font-weight: 400; }
.dz[data-to=money] { color: var(--money); } .dz[data-to=build] { color: var(--build); } .dz[data-to=fun] { color: var(--fun); }
.dz.hot { background: var(--bg-3); box-shadow: inset 0 0 0 2px currentColor; transform: translateY(1px); }
.ghost { position: fixed; z-index: 90; pointer-events: none; padding: 8px 14px; border-radius: 9px; background: var(--bg-3); box-shadow: 0 14px 34px rgba(0,0,0,.6), inset 0 0 0 1px var(--lit); font-weight: 600; white-space: nowrap; transform: translate(10px, 8px) rotate(-.6deg); }
.ins { position: absolute; left: 22px; right: 12px; height: 2px; background: var(--lit); box-shadow: 0 0 10px var(--lit); pointer-events: none; z-index: 5; display: none; }
.into { background: rgba(191,231,255,.09) !important; box-shadow: inset 0 0 0 1px var(--lit); }

/* sheets, the Search Box, menus */
.veil { position: fixed; inset: 0; background: rgba(3,5,9,.62); display: grid; place-items: center; z-index: 60; animation: fade .12s; padding: 16px; }
@keyframes fade { from { opacity: 0; } }
.sheet { width: min(500px, 100%); max-height: calc(100vh - 48px); overflow: auto; padding: 24px; border-radius: 14px; background: var(--bg-2); box-shadow: 0 30px 80px rgba(0,0,0,.7), inset 0 0 0 1px var(--line); animation: pop .16s var(--ease); }
.sheet.wide { width: min(620px, 100%); }
@keyframes pop { from { transform: translateY(10px) scale(.985); opacity: 0; } }
.sheet h3 { margin: 0 0 6px; font-size: 22px; letter-spacing: -.012em; font-weight: 650; }
.sheet p { margin: 0 0 14px; color: var(--ink-2); }
.opts { display: flex; flex-direction: column; gap: 6px; margin: 12px 0; }
.opt { display: flex; justify-content: space-between; gap: 12px; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 9px; box-shadow: inset 0 0 0 1px var(--line); text-align: left; font-weight: 550; }
.opt:hover { background: var(--bg-3); }
.opt.on { box-shadow: inset 0 0 0 2px var(--lit); background: var(--bg-3); }
.opt small { color: var(--ink-3); font-size: 14px; font-weight: 400; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0 14px; }
.chipb { height: 36px; padding: 0 13px; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--line); font-size: 15px; color: var(--ink-2); }
.chipb:hover { background: var(--bg-3); color: var(--ink); }
.chipb.on { box-shadow: inset 0 0 0 2px var(--lit); color: var(--ink); }
.sheet .end { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }

#boxveil { position: fixed; inset: 0; z-index: 70; background: rgba(3,5,9,.5); padding-top: 11vh; animation: fade .1s; }
.box { width: min(760px, calc(100% - 24px)); margin: 0 auto; border-radius: 14px; overflow: hidden; background: var(--bg-2); box-shadow: 0 30px 90px rgba(0,0,0,.75), inset 0 0 0 1px var(--line), 0 0 44px -14px var(--lit); animation: pop .1s var(--ease); }
.boxrow { display: flex; align-items: center; gap: 12px; padding: 0 16px; }
.boxrow input { flex: 1; min-width: 0; height: 62px; background: none; border: 0; outline: 0; font-size: 22px; letter-spacing: -.01em; }
.dest { display: inline-flex; gap: 7px; align-items: center; padding: 6px 11px; border-radius: 8px; background: var(--bg-3); font-size: 14px; white-space: nowrap; }
.dest i { width: 8px; height: 8px; border-radius: 50%; background: var(--lit); }
.dest kbd { font: inherit; color: var(--ink-3); }
.boxhint { padding: 8px 16px; border-top: 1px solid var(--line-2); color: var(--ink-3); font-size: 14px; }
.res { max-height: 42vh; overflow: auto; }
.r { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 16px; text-align: left; font-size: 15px; }
.r i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); flex: none; }
.r span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.r small { color: var(--ink-3); font-size: 14px; white-space: nowrap; }
.r.on, .r:hover { background: var(--bg-3); }
.box.sent { animation: sent .22s var(--ease) forwards; box-shadow: 0 0 0 2px var(--gone), 0 0 60px -6px var(--gone); }
@keyframes sent { to { transform: translateY(-16px); opacity: 0; } }

.menu { position: fixed; z-index: 80; min-width: 236px; padding: 6px; border-radius: 11px; background: var(--bg-2); box-shadow: 0 18px 50px rgba(0,0,0,.65), inset 0 0 0 1px var(--line); animation: pop .1s var(--ease); }
.menu button, .menu a { display: flex; width: 100%; justify-content: space-between; gap: 18px; align-items: center; height: 34px; padding: 0 10px; border-radius: 7px; font-size: 15px; text-align: left; }
.menu button:hover, .menu a:hover { background: var(--bg-3); }
.menu hr { border: 0; border-top: 1px solid var(--line-2); margin: 5px 0; }
.paints { display: flex; gap: 7px; padding: 6px 10px; }
.paints button { width: 20px; height: 20px; padding: 0; border-radius: 50%; background: var(--c); }

/* sort day */
.sortday { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 28px; text-align: center; position: relative; }
.sortday > * { position: relative; }
.sortday .lbl { font-size: 14px; letter-spacing: .15em; text-transform: uppercase; color: var(--ink-3); }
.sortday h2 { font-size: clamp(34px, 4.6vw, 58px); letter-spacing: -.022em; margin: 12px 0 8px; font-weight: 640; animation: rise .2s var(--ease); }
.sortday .job { white-space: normal; font-size: 19px; max-width: 34em; color: var(--ink-2); }
.sortday .fx { color: var(--ink-3); margin: 10px 0 8px; }
.sortday .sug { color: var(--lit); margin-bottom: 8px; min-height: 24px; }
.sortday .acts { justify-content: center; margin-top: 20px; }

/* all sections: a plain list */
#sections { position: fixed; inset: 0; z-index: 50; background: #05080D; display: flex; flex-direction: column; overflow-y: auto; animation: fade .22s; }
.chead { position: absolute; left: 24px; top: 16px; font-size: 14px; letter-spacing: .26em; color: var(--ink-2); z-index: 2; }
.cclose { position: absolute; right: 18px; top: 12px; z-index: 2; }
.slist { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; max-width: 1100px; width: 100%; margin: 64px auto 24px; padding: 0 24px; }
.sec { text-align: left; display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border: 0; border-radius: 12px; background: rgba(15,21,31,.9); box-shadow: inset 0 0 0 1px #2C3A50; color: #6E7C92; cursor: pointer; font: inherit; transition: box-shadow .15s, background .15s; }
.sec b { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 650; color: #8B98AC; }
.sec span { font-size: 15px; }
.sec small { margin-top: 4px; font-size: 14px; }
.sec.walk { grid-column: 1 / -1; }
.sec.lit { box-shadow: inset 0 0 0 1px var(--lit); background: rgba(191,231,255,.07); color: var(--ink-2); }
.sec.lit b { color: var(--ink); }
.sec.lit small { color: var(--lit); }
.sec:hover { box-shadow: inset 0 0 0 1px #fff; }
.sections .dot.needs { width: 10px; height: 10px; border-radius: 50%; background: var(--amber); box-shadow: none; animation: pulse 2.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .55; } }
.ccap { text-align: center; color: var(--ink-2); font-size: 16px; padding: 0 24px 24px; }

/* the flourish */
.prize { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; background: rgba(5,3,8,.55); pointer-events: none; animation: fade .2s; }
.prize div { font-size: clamp(48px, 9vw, 110px); font-weight: 700; letter-spacing: -.03em; color: #fff; text-shadow: 0 0 40px var(--fun), 0 0 90px var(--fun); animation: pz .5s var(--ease); }
@keyframes pz { from { transform: scale(.7); opacity: 0; } }
.spark { position: fixed; width: 3px; height: 18px; border-radius: 2px; pointer-events: none; z-index: 96; animation: fly 1.5s ease-out forwards; }
@keyframes fly { to { transform: translate(var(--dx), var(--dy)) rotate(var(--r)); opacity: 0; } }

/* mid size: the rail lies down */
@media (max-width: 1100px) {
  .nowview { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .rail { flex-direction: row; gap: 18px; border-right: 0; border-bottom: 1px solid var(--line-2); overflow-x: auto; padding: 10px 12px; }
  .lane { min-width: 190px; } .unfiled { display: none; }
  .projects.detailed { grid-template-columns: 1fr; }
  .details { position: absolute; right: 0; top: 0; bottom: 0; width: min(448px, 100%); z-index: 30; box-shadow: -30px 0 60px rgba(0,0,0,.6); }
  .tool .lb { display: none; }
  .strip { grid-template-columns: 22px 34px minmax(120px, 200px) minmax(0, 1fr) auto 112px 34px; }
  .strip .ticks { display: none; }
}
/* the strip size: beside Claude, and the phone */
@media (max-width: 720px) {
  #app { grid-template-rows: 48px 1fr 34px; }
  .top { padding: 0 10px; gap: 8px; }
  .mark span { display: none; }
  .tools .opt2 { display: none; }
  .nav button { padding: 6px 9px; }
  .rail { display: grid; grid-template-columns: 1fr; padding: 8px 10px; gap: 6px; overflow: visible; }
  .lane { display: flex; align-items: center; gap: 6px; min-width: 0; overflow-x: auto; }
  .lane h3 { margin: 0 4px 0 0; min-width: 72px; display: block; font-size: 14px; letter-spacing: .08em; }
  .lane h3 span { display: none; }
  .slot { min-height: 36px; width: auto; flex: none; padding: 0 10px 0 14px; font-size: 15px; }
  .slot .nm { max-width: 150px; } .slot.open { display: none; } .funbtn { margin: 0; white-space: nowrap; }
  .stage { padding: 18px 16px 88px; }
  .go { opacity: .7; }
  .now { font-size: clamp(28px, 8.4vw, 38px); }
  .why { font-size: 16px; }
  .btn.pri { width: 100%; }
  .ladder { text-align: left; }
  .strip { grid-template-columns: 30px minmax(0, 1fr) auto 34px; padding: 0 8px 0 16px; height: 44px; gap: 8px; }
  .strip::before { left: 8px; }
  .strip .grip, .strip .job, .strip .ticks, .strip .marks { display: none; }
  .bhead { padding: 10px 12px; gap: 8px; }
  .ghead { padding-left: 6px; } .shead { padding-left: 14px; }
  .dock { grid-template-columns: repeat(3, 1fr); } .dz { height: 46px; font-size: 14px; } .dz small { display: none; }
  .bar .mid, .bar .hint { display: none; }
  .plus { display: grid !important; }
  .needs { padding-top: 18px; }
  .needs .ln { flex-wrap: wrap; padding: 6px 0; }
}
.plus { display: none; position: fixed; right: 16px; bottom: 46px; width: 56px; height: 56px; border-radius: 50%; place-items: center; background: var(--lit); color: #04121C; font-size: 30px; z-index: 30; box-shadow: 0 10px 30px rgba(0,0,0,.6); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .12s !important; animation-iteration-count: 1 !important; transition-duration: .12s !important; } }

/* Homestead additions (M1) */
.scanner-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--lit); box-shadow: 0 0 8px var(--lit); margin: 0 8px 0 6px; }
.scanner-dot.hollow { background: none; box-shadow: inset 0 0 0 1.5px var(--lit); }
.scanner-dot.stale { background: var(--amber); box-shadow: 0 0 8px var(--amber); }
.rp { font-size: 14px; color: var(--ink-3); white-space: nowrap; }
.tk { display: inline-flex; }
.details .sub { color: var(--ink-2); font-size: 15px; }
.details .why-line { color: var(--ink-3); font-size: 14px; margin-top: 6px; }
.aliases { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.field.words { flex-basis: 100%; height: 36px; }
.say { min-height: 1em; }
.door { min-height: 100vh; display: grid; place-content: center; gap: 18px; padding: 24px; text-align: center; }
.door-mark { display: inline-flex; align-items: center; justify-content: center; gap: 12px; font-size: 16px; letter-spacing: .3em; font-weight: 600; }
.door-mark svg { width: 34px; height: 34px; filter: drop-shadow(0 0 10px rgba(191,231,255,.5)); }
.door-p { color: var(--ink-2); margin: 0; max-width: 28em; }
.door-form { display: grid; gap: 12px; width: min(380px, 92vw); margin: 0 auto; text-align: left; }
.door-f { display: grid; gap: 4px; font-size: 14px; color: var(--ink-2); }
.door-err { color: var(--stop); min-height: 1.4em; font-size: 15px; }
body.at-door { overflow: auto; }
body.at-door #app { display: block; }

/* M2 */
.dest i.l-money { background: var(--money); } .dest i.l-build { background: var(--build); } .dest i.l-fun { background: var(--fun); }
.goal-line { color: var(--fun); font-size: 15px; margin: -10px 0 14px; }
.weekline { color: var(--ink-3); font-size: 15px; margin-top: 14px; }
.funbtn { text-align: left; }

/* M3: Notes */
.notes { height: 100%; display: grid; grid-template-columns: 284px 1fr; }
.qlist { background: linear-gradient(180deg, rgba(13,18,27,.96), rgba(9,13,20,.96)); border-right: 1px solid var(--line-2); padding: 14px 12px; overflow: auto; display: flex; flex-direction: column; gap: 4px; }
.qlist .dh { margin: 14px 8px 4px; }
.qb { display: flex; justify-content: space-between; align-items: center; min-height: 40px; padding: 0 12px; border-radius: 9px; text-align: left; font-weight: 550; color: var(--ink-2); }
.qb:hover { background: var(--bg-3); color: var(--ink); }
.qb.on { background: var(--bg-3); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.qb small { color: var(--ink-3); font-weight: 400; font-size: 14px; }
.qb.l-money { box-shadow: inset 3px 0 0 var(--money); } .qb.l-build { box-shadow: inset 3px 0 0 var(--build); } .qb.l-fun { box-shadow: inset 3px 0 0 var(--fun); }
.nmain { overflow: auto; padding: 22px clamp(18px, 4vw, 48px) 60px; display: flex; flex-direction: column; gap: 22px; }
.nqh, .nph { display: flex; align-items: center; gap: 12px; }
.nqh h3, .nph h3 { margin: 0; font-size: 20px; font-weight: 650; }
.nph .sp { flex: 1; }
.empty.small { padding: 14px 0; text-align: left; }
.npage { border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); padding: 16px 18px; background: rgba(13,18,27,.6); min-height: 260px; display: flex; flex-direction: column; gap: 12px; }
.npage.drop { box-shadow: inset 0 0 0 2px var(--lit); }
.blocks { display: flex; flex-direction: column; gap: 10px; }
.block { white-space: pre-wrap; padding: 10px 12px; border-radius: 9px; cursor: pointer; line-height: 1.55; box-shadow: inset 0 0 0 1px transparent; }
.block:hover { background: var(--bg-3); }
.block.lit { background: rgba(191,231,255,.08); box-shadow: inset 0 0 0 1px var(--lit); }
.block.sent { color: var(--gone); background: rgba(52,211,153,.06); cursor: help; }
.block .tick { margin-right: 8px; font-weight: 700; }
.pagetext { width: 100%; min-height: 420px; resize: vertical; background: var(--bg); color: var(--ink); border: 1px solid var(--line); border-radius: 9px; padding: 14px; font: 16px/1.55 var(--ui); outline: 0; white-space: pre-wrap; }
.pagetext:focus { border-color: var(--lit); }
.filechip { display: inline-flex; padding: 2px 10px; border-radius: 7px; background: var(--bg-3); box-shadow: inset 0 0 0 1px var(--line); color: var(--lit); }
.btn.pri-l { color: var(--lit); box-shadow: inset 0 0 0 1px var(--lit); }
.sheet .passage { white-space: pre-wrap; color: var(--ink); background: var(--bg); padding: 10px 12px; border-radius: 9px; }
.sheet h3.big { font-size: clamp(24px, 3vw, 34px); margin: 8px 0 14px; }
.sheet .lbl { font-size: 14px; letter-spacing: .15em; text-transform: uppercase; color: var(--ink-3); }
.caps { display: flex; gap: 12px; margin-bottom: 8px; }
.field.tall { height: auto; min-height: 110px; padding: 10px 12px; resize: vertical; font: 15px/1.5 var(--ui); }
.key-once { display: block; padding: 10px 12px; margin: 8px 0; border-radius: 9px; background: var(--bg); color: var(--lit); word-break: break-all; }
@media (max-width: 1100px) { .notes { grid-template-columns: 1fr; grid-template-rows: auto 1fr; } .qlist { flex-direction: row; flex-wrap: wrap; border-right: 0; border-bottom: 1px solid var(--line-2); max-height: 34vh; } .qlist .dh, .qlist .field { flex-basis: 100%; } }

/* M4: Status */
.ticks i.hollow { background: none; box-shadow: inset 0 0 0 1.5px var(--ink-2); }
.ticks i.fl { outline: 1px solid var(--lit); outline-offset: 1px; }
.status { height: 100%; display: flex; flex-direction: column; min-height: 0; }
.stbody { flex: 1; overflow: auto; position: relative; }
.sortday.loose .proj { color: var(--lit); font-size: 15px; letter-spacing: .08em; text-transform: uppercase; margin-top: 10px; }
.sortday h2.le { font-size: clamp(26px, 3.2vw, 42px); max-width: 26em; line-height: 1.2; }
.btn.txt.on { color: var(--ink); box-shadow: inset 0 0 0 1px var(--lit); }
.withheld { color: var(--ink-3); font-size: 14px; margin-top: 18px; }
.ladders { display: flex; flex-direction: column; gap: 10px; padding: 16px 20px 40px; max-width: 1100px; }
.lad { padding: 14px 16px; border-radius: 12px; background: rgba(13,18,27,.7); box-shadow: inset 0 0 0 1px var(--line); }
.lad[data-l=money] { box-shadow: inset 3px 0 0 var(--money), inset 0 0 0 1px var(--line); } .lad[data-l=build] { box-shadow: inset 3px 0 0 var(--build), inset 0 0 0 1px var(--line); } .lad[data-l=fun] { box-shadow: inset 3px 0 0 var(--fun), inset 0 0 0 1px var(--line); }
.ladh { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ladh b { font-size: 17px; }
.ladh .sp { flex: 1; }
.lane-word { color: var(--ink-3); font-size: 14px; }
.stepw { color: var(--ink-2); font-size: 15px; } .stepw.claimed { color: var(--ink-3); }
.rulel { color: var(--ink-2); font-size: 15px; margin: 8px 0; }
.slip { color: var(--ink); font-size: 15px; margin: 8px 0; }
.finished { color: var(--gone); font-size: 17px; font-weight: 600; margin: 8px 0; }
.lad .acts { margin-top: 6px; }
.btn.lit { box-shadow: inset 0 0 0 1px var(--lit); color: var(--lit); }
.btn:disabled { opacity: .45; cursor: default; }

/* M5: Health, Demo Check, Deploy Tracks */
.pad { padding: 14px 20px 0; }
.note { color: var(--ink-3); font-size: 14px; }
.sheet p.note { margin-top: 14px; }
.hs { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.hs li { font-size: 15px; color: var(--ink-2); padding-left: 22px; position: relative; }
.hs li::before { content: '·'; position: absolute; left: 6px; color: var(--ink-3); }
.hs li.ok::before { content: '✓'; color: var(--ink-2); }
.hs li.bad { color: var(--ink); font-weight: 600; } .hs li.bad::before { content: '✗'; color: var(--ink); }
details.tail { margin-top: 8px; font-size: 14px; color: var(--ink-3); }
details.tail pre { white-space: pre-wrap; background: var(--bg); padding: 8px 10px; border-radius: 8px; color: var(--ink-2); font-size: 14px; max-height: 260px; overflow: auto; }
details.tail .cmd { color: var(--ink-2); margin-top: 6px; }
.sheet h3.verdict { font-size: clamp(32px, 4.4vw, 52px); letter-spacing: -.02em; margin: 6px 0 12px; }
.verdict.v-ok { color: var(--lit); } .verdict.v-care { color: var(--ink); } .verdict.v-no { color: var(--ink); text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 8px; }
.track { display: flex; gap: 6px; margin: 10px 0 4px; flex-wrap: wrap; }
.tstep { padding: 4px 10px; border-radius: 7px; font-size: 14px; color: var(--ink-3); box-shadow: inset 0 0 0 1px var(--line); }
.tstep.on { color: var(--ink-2); } .tstep.here { color: var(--ink); box-shadow: inset 0 0 0 1px var(--lit); }
#print { display: none; }
@media print {
  body { overflow: visible; background: #fff; }
  body > :not(#print) { display: none !important; }
  #print { display: block; color: #000; font: 12pt/1.5 -apple-system, 'Helvetica Neue', sans-serif; padding: 0.4in; }
  #print .p-head { letter-spacing: .2em; text-transform: uppercase; font-size: 10pt; color: #444; }
  #print h1 { font-size: 24pt; margin: 4pt 0; } #print h2 { font-size: 20pt; margin: 14pt 0 6pt; } #print h3 { font-size: 13pt; margin: 14pt 0 4pt; }
  #print .p-when { color: #444; }
}

/* M6: Sales */
.lad.offer { width: 100%; text-align: left; cursor: pointer; }
.lad.offer:hover { background: var(--bg-3); }
.meter { display: inline-flex; gap: 2px; vertical-align: -2px; margin-right: 6px; }
.meter i { width: 6px; height: 14px; border-radius: 2px; background: var(--line); }
.meter i.f { background: var(--lit); } .meter i.r { background: rgba(191,231,255,.35); }
.meterline { display: flex; align-items: center; gap: 10px; margin: 6px 0; }
.guide { padding: 6px 20px 60px; max-width: 920px; }
.gsec { margin: 18px 0; }
.gsec h3 { font-size: 15px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 6px; }
.gsec p { margin: 4px 0; color: var(--ink); }
.gsec.step0 { padding: 12px 14px; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--line); }
ol.steps { margin: 4px 0; padding-left: 22px; } ol.steps li { margin: 6px 0; }
table.gt { border-collapse: collapse; width: 100%; font-size: 15px; } table.gt th, table.gt td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line-2); } table.gt th { color: var(--ink-3); font-weight: 600; }
.job.lens { color: var(--ink); }
@media print { #print.guide-print .gsec h3 { color: #444; } #print.guide-print table.gt th, #print.guide-print table.gt td { border-color: #ccc; } #print .meter i { background: #ddd; } #print .meter i.f { background: #333; } }

/* the top bar carries every lit section: it scrolls sideways rather than push the page wide */
.nav { min-width: 0; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav button { flex: none; }
@media (max-width: 720px) { .top .sp { display: none; } .nav { flex: 1; } }

@media print {
  #print, #print * { color: #000 !important; background: transparent !important; box-shadow: none !important; }
  #print .gsec h3, #print .p-head, #print .p-when, #print table.gt th { color: #444 !important; }
  #print .gsec.step0 { border: 1px solid #999; border-radius: 8px; }
  #print .hs li::before { color: #000 !important; }
}

/* M7: the Campus Walk layer */
#campus3d { position: fixed; inset: 0 0 36px 0; z-index: 55; background: #04070c; }
#campus3d canvas { width: 100%; height: 100%; display: block; outline: 0; touch-action: none; }
.c3d-still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .9s var(--ease); }
.c3d-still.gone { opacity: 0; pointer-events: none; }
.c3d-still:not([src]), .c3d-still[src=""] { display: none; }
.c3d-hud { position: absolute; right: 16px; bottom: 16px; display: flex; gap: 8px; }
.c3d-hud .btn { background: rgba(9,13,20,.78); backdrop-filter: blur(6px); }
.c3d-card { position: absolute; max-width: 280px; padding: 10px 14px; border-radius: 10px; background: rgba(9,13,20,.88); box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-direction: column; gap: 2px; pointer-events: none; }
.c3d-card b { font-size: 17px; } .c3d-card span { color: var(--ink-2); font-size: 15px; } .c3d-card small { color: var(--lit); font-size: 14px; }
.c3d-load { position: absolute; left: 50%; bottom: 60px; transform: translateX(-50%); width: min(360px, 70vw); }
.c3d-bar { height: 3px; border-radius: 3px; background: rgba(191,231,255,.15); overflow: hidden; }
.c3d-bar i { display: block; height: 100%; width: 0; background: var(--lit); transition: width .2s; }
.c3d-fade { position: absolute; inset: 0; background: #000; opacity: 0; pointer-events: none; transition: opacity .25s; }
.c3d-fade.on { opacity: 1; } .c3d-fade.ice { background: #dff3ff; }
