/* The launcher (build item: launcher-page). Dark like To-Do; no inline style, no outside font, no script-driven layout. */
:root { --bg: #0c0c11; --ink: #ecebf5; --body: #b9b8c8; --quiet: #8a89a0; --line: #2c2c3a; --panel: #16161f; --accent: #9aa2ff; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--body); font: 400 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 8px; }

.band { display: flex; align-items: center; gap: 16px; height: 120px; padding: 0 24px; background: #16161f; color: var(--ink); }
.band .mark { width: 56px; height: 56px; flex: none; }
.band .word { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.band .tag { margin: 0; font-size: 14px; color: var(--quiet); }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.trail { background: #111118; border-bottom: 1px solid var(--line); padding: 16px 24px 12px; }
.trail[hidden], .muse-status[hidden] { display: none; }
.crumbs { list-style: none; margin: 0 auto; padding: 0; display: flex; max-width: 760px; overflow-x: auto; scrollbar-width: none; }
.crumbs::-webkit-scrollbar { display: none; }
.crumb { position: relative; flex: 1 0 128px; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 4px; }
.crumb::before { content: ""; position: absolute; top: 7px; left: -50%; width: 100%; height: 2px; background: #3a3a4a; }
.crumb:first-child::before { display: none; }
.crumb.done::before, .crumb.now::before { background: var(--accent); }
.crumb .dot-mark { position: relative; z-index: 1; width: 16px; height: 16px; border-radius: 50%; background: #111118; border: 2px solid #4a4a5c; box-sizing: border-box; }
.crumb.done .dot-mark { background: var(--accent); border-color: var(--accent); }
.crumb.now .dot-mark { border-color: var(--accent); box-shadow: inset 0 0 0 3px #111118, inset 0 0 0 8px var(--accent); }
.crumb .label { margin-top: 8px; font-size: 12.5px; color: var(--quiet); }
.crumb.done .label { color: var(--body); }
.crumb.now .label { color: var(--ink); font-weight: 600; }
.crumb .caption { margin-top: 2px; font-size: 11.5px; color: var(--accent); }
.attn { margin: 10px 0 0; text-align: center; font-size: 12.5px; color: #f4a261; }
.attn:empty { display: none; }
.muse-status { margin: 0; padding: 14px 24px; text-align: center; color: var(--quiet); font-size: 13px; border-bottom: 1px solid var(--line); }
.page { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 0; width: 100%; }
.stage { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 32px; padding: 32px 24px; }
.status { max-width: 36em; text-align: center; color: var(--body); }
.status p { margin: 0; }
.tiles { display: flex; gap: 28px; justify-content: center; }
.tile { display: flex; flex-direction: column; align-items: center; gap: 12px; width: 128px; text-decoration: none; color: var(--ink); }
.tile .art { width: 128px; height: 128px; display: block; }
.tile .name { font-weight: 600; font-size: 15px; }
.tile .note { font-size: 12px; color: var(--quiet); min-height: 1em; }
.tile[aria-disabled="true"] { cursor: default; opacity: 0.7; }

.feed { border-left: 1px solid var(--line); padding: 24px 20px; display: flex; flex-direction: column; overflow-y: auto; max-height: calc(100vh - 120px); }
.feed-head { display: flex; align-items: baseline; justify-content: space-between; margin: 0 0 12px; }
.feed h2 { margin: 0; font-size: 13px; font-weight: 600; color: var(--body); letter-spacing: 0.04em; }
.feed .newest { display: none; font-size: 12px; color: var(--accent); text-decoration: none; }
.feed .empty { margin: 0; font-size: 14px; color: var(--quiet); }
.feed .empty[hidden] { display: none; }
.posts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.post { background: var(--panel); border-radius: 8px; padding: 12px 14px; }
.post.unread { box-shadow: inset 0 0 0 1px rgba(154, 162, 255, 0.5); }
.post-open { all: unset; display: block; width: 100%; cursor: pointer; }
.post-open:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 8px; }
.post-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.post-title { color: var(--ink); font-size: 14px; font-weight: 600; }
.post-when { color: var(--quiet); font-size: 11.5px; white-space: nowrap; }
.post-summary { margin: 4px 0 0; color: var(--body); font-size: 13px; }
.dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-right: 6px; vertical-align: middle; }
.new-rule { display: flex; align-items: center; gap: 8px; color: var(--accent); font-size: 11px; font-weight: 600; }
.new-rule::after { content: ""; flex: 1; height: 1px; background: var(--accent); opacity: 0.5; }
.post-body { margin-top: 10px; color: var(--body); font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; }
.post-body[hidden] { display: none; }
.post-body h2, .post-body h3, .post-body h4 { color: var(--ink); margin: 12px 0 4px; font-size: 15px; }
.post-body p { margin: 0 0 8px; }
.post-body a { color: var(--accent); }
.post-body code { background: #0c0c11; padding: 1px 4px; border-radius: 4px; font-size: 12.5px; }
.post-body pre { background: #0c0c11; padding: 8px 10px; border-radius: 6px; overflow-x: auto; }
.feed-note { margin: 10px 0 0; font-size: 12px; color: var(--quiet); }

@media (max-width: 760px) {
  .band { height: 120px; padding: 0 16px; }
  .trail { padding: 14px 16px 10px; }
  .crumb { flex: 0 0 120px; }
  .page { grid-template-columns: minmax(0, 1fr); }
  .stage { padding: 24px 16px; }
  .tiles { gap: 16px; }
  .tile, .tile .art { width: 96px; }
  .tile .art { height: 96px; }
  .feed { border-left: 0; border-top: 1px solid var(--line); padding: 20px 16px; max-height: none; }
  .feed .newest { display: inline; }
}
