:root {
  color-scheme: light dark;
  --tint: #ED1E9C;
  --bg: #f6f7f9; --fg: #14161a; --muted: rgba(20,22,26,.62);
  --card: #ffffff; --line: rgba(20,22,26,.12);
  --code: rgba(20,22,26,.06);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1014; --fg: #e9ebee; --muted: rgba(233,235,238,.60);
    --card: #171a20; --line: rgba(233,235,238,.12);
    --code: rgba(233,235,238,.08);
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); line-height: 1.55;
       font-family: -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", sans-serif;
       -webkit-font-smoothing: antialiased; }
.wrap { max-width: 620px; margin: 0 auto; padding: 56px 20px 80px; }

header { display: flex; align-items: center; gap: 16px; margin-bottom: 8px; }
header img { width: 68px; height: 68px; border-radius: 16px; flex: none;
             box-shadow: 0 6px 20px rgba(0,0,0,.18); }
h1 { font-size: 1.6rem; margin: 0; letter-spacing: -.02em; }
.tagline { color: var(--muted); margin: 2px 0 0; font-size: .95rem; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px;
        padding: 20px; margin: 28px 0 0; }
.card h2 { margin: 0 0 4px; font-size: 1.05rem; letter-spacing: -.01em; }
.card p { margin: 0 0 16px; color: var(--muted); font-size: .9rem; }

.row { display: flex; gap: 8px; flex-wrap: wrap; }
.btn { display: inline-block; text-decoration: none; cursor: pointer; border: 0;
       font: inherit; font-weight: 600; font-size: .88rem; padding: 10px 15px;
       border-radius: 10px; background: var(--tint); color: #fff;
       transition: opacity .15s ease; }
.btn:hover { opacity: .85; }
.btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--fg); }

/* --- add-to-manager buttons -------------------------------------------
   Each carries its own app's icon and brand colour, sampled from the icons
   themselves: Sileo's teal gradient, Zebra's monochrome. Zebra is inverted to
   dark rather than matching its light grey icon, which would vanish against
   the card in light mode. */
.stores { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 4px; }
@media (max-width: 460px) { .stores { grid-template-columns: 1fr; } }

.store { display: flex; align-items: center; gap: 12px; text-decoration: none;
         padding: 11px 14px; border-radius: 14px; color: #fff;
         transition: transform .15s ease, filter .15s ease; }
.store:hover { transform: translateY(-1px); filter: brightness(1.06); }
.store:active { transform: translateY(0); filter: brightness(.96); }
.store img { width: 44px; height: 44px; border-radius: 11px; flex: none;
             box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.store span { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.store small { font-size: .7rem; opacity: .8; letter-spacing: .01em; }
.store strong { font-size: 1.08rem; font-weight: 650; letter-spacing: -.01em; }

.store-sileo { background: linear-gradient(160deg, #36E1CF, #04A5AB); }
.store-zebra { background: linear-gradient(160deg, #3A3A3C, #1C1C1E); }

.hint { font-size: .82rem; color: var(--muted); margin: 16px 0 8px; }

.url { display: flex; align-items: center; gap: 10px; margin: 0 0 16px;
       background: var(--code); border-radius: 10px; padding: 11px 13px; }
.url code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
            font-size: .82rem; word-break: break-all; flex: 1; }
.url button { flex: none; border: 0; background: transparent; color: var(--tint);
              font: inherit; font-weight: 600; font-size: .82rem; cursor: pointer; }

table { width: 100%; border-collapse: collapse; font-size: .88rem; }
td { padding: 9px 0; border-top: 1px solid var(--line); }
td:first-child { color: var(--muted); width: 40%; }
tr:first-child td { border-top: 0; }

footer { color: var(--muted); font-size: .8rem; margin-top: 40px; text-align: center; }
footer a { color: inherit; }

/* --- changelog / depiction --- */
.rel { margin: 28px 0 0; }
.rel-head { display: flex; align-items: baseline; gap: 10px; margin: 0 0 10px;
            padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.rel-head h2 { margin: 0; font-size: 1.15rem; letter-spacing: -.01em; }
.rel-head .date { color: var(--muted); font-size: .82rem; }
.rel-head .pill { margin-left: auto; font-size: .72rem; font-weight: 600;
                  color: #fff; background: var(--tint); border-radius: 999px;
                  padding: 3px 9px; }

/* GitHub-rendered release bodies land here */
.notes h1, .notes h2 { font-size: 1rem; margin: 20px 0 8px; letter-spacing: -.01em; }
.notes h1:first-child, .notes h2:first-child { margin-top: 0; }
.notes h3, .notes h4 { font-size: .92rem; margin: 16px 0 6px; }
.notes p { margin: 0 0 10px; font-size: .9rem; }
.notes ul, .notes ol { margin: 0 0 12px; padding-left: 20px; }
.notes li { margin: 0 0 5px; font-size: .9rem; }
.notes strong { font-weight: 650; }
.notes code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
              font-size: .82rem; background: var(--code); padding: 2px 5px;
              border-radius: 5px; }
.notes a { color: var(--tint); }
.notes img { max-width: 100%; height: auto; border-radius: 8px; }
.notes hr { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }
.notes blockquote { margin: 0 0 12px; padding-left: 12px; color: var(--muted);
                    border-left: 3px solid var(--line); }
