:root {
  --paper: #eef1ec; --ink: #15201b; --muted: #55645d; --rule: #cbd3cd; --field: #ffffff;
  --signal: #1b5e52; --signal-ink: #ffffff; --ticket: #fbf1d2; --ticket-edge: #c8952b;
  --error: #9b2c1f; --error-bg: #f8e3df; --ok: #1b5e52;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #111714; --ink: #e5ece7; --muted: #96a49d; --rule: #2a3530; --field: #18201c;
    --signal: #6fc2ae; --signal-ink: #0d1512; --ticket: #29230f; --ticket-edge: #b98a2e;
    --error: #f0a093; --error-bg: #3a1c17; --ok: #6fc2ae;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 16px; border-bottom: 1px solid var(--rule); }
.site { color: var(--ink); font-weight: 650; text-decoration: none; letter-spacing: -0.01em; white-space: nowrap; flex-shrink: 0; }
.who { display: flex; gap: .6rem; align-items: center; color: var(--muted); font-size: .9rem; min-width: 0; }
.who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.who button { white-space: nowrap; flex-shrink: 0; }
main { padding: 2.5rem 16px 4rem; margin: 0 auto; }
.narrow main { max-width: 26rem; }
.wide main { max-width: 40rem; }
h1 { font-size: 1.65rem; line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 .5rem; font-weight: 650; }
h2 { font-size: 1.1rem; margin: 2.2rem 0 .5rem; font-weight: 650; }
p { margin: 0 0 1rem; }
.lede { color: var(--muted); margin-bottom: 1.6rem; }
.aside { color: var(--muted); font-size: .95rem; margin-top: 1.4rem; }
a { color: var(--signal); text-underline-offset: 2px; }
label { display: block; margin-bottom: 1.1rem; font-weight: 550; }
label small { display: block; font-weight: 400; color: var(--muted); margin-top: .3rem; }
input { display: block; width: 100%; margin-top: .35rem; padding: .65rem .75rem; font: inherit; font-weight: 400;
  color: var(--ink); background: var(--field); border: 1px solid var(--rule); border-radius: 6px; }
input:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
input.code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 1.5rem; letter-spacing: .35em; max-width: 12rem; }
button { font: inherit; font-weight: 600; padding: .65rem 1.1rem; border-radius: 6px; cursor: pointer;
  background: var(--signal); color: var(--signal-ink); border: 1px solid var(--signal); }
button.quiet { background: transparent; color: var(--signal); }
button.link { background: none; border: 0; padding: 0; color: var(--signal); font-weight: inherit; text-decoration: underline; text-underline-offset: 2px; }
form.inline { display: block; }
.alert { background: var(--error-bg); color: var(--error); padding: .7rem .9rem; border-radius: 6px; }
.notice { border-left: 3px solid var(--signal); padding: .2rem 0 .2rem .8rem; }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; }
pre.cmd { background: var(--field); border: 1px solid var(--rule); border-radius: 6px; padding: .8rem .9rem;
  overflow-x: auto; white-space: pre; margin: 0 0 1rem; }
.ticket { position: relative; background: var(--ticket); border: 1px solid var(--ticket-edge);
  border-left: 6px dashed var(--ticket-edge); border-radius: 4px 10px 10px 4px; padding: 1.2rem 1.2rem .4rem 1.4rem; margin-bottom: 2.5rem; }
.ticket h2 { margin-top: 0; }
pre.token { font-size: 1.05rem; font-weight: 600; user-select: all; -webkit-user-select: all; white-space: pre-wrap; word-break: break-all;
  background: transparent; border: 1px dashed var(--ticket-edge); border-radius: 6px; padding: .8rem; margin: 0 0 1rem; }
.ticket pre.cmd { white-space: pre-wrap; word-break: break-all; user-select: all; -webkit-user-select: all; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 1rem; margin: 1.2rem 0; }
.facts div { border-top: 1px solid var(--rule); padding-top: .6rem; }
.facts dt { color: var(--muted); font-size: .88rem; }
.facts dd { margin: .15rem 0 0; font-weight: 600; }
.on { color: var(--ok); }
.apps { list-style: none; padding: 0; margin: 0 0 1rem; }
.apps li { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; border-bottom: 1px solid var(--rule); }
.apps a { overflow-wrap: anywhere; }
.apps span { color: var(--muted); }
.affix { display: flex; align-items: stretch; margin-top: .35rem; border: 1px solid var(--rule); border-radius: 6px; background: var(--field); overflow: hidden; }
.affix span { display: flex; align-items: center; padding: 0 .6rem; color: var(--muted); font-weight: 400;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9rem; white-space: nowrap; }
.affix span:last-child { overflow: hidden; text-overflow: ellipsis; min-width: 0; flex-shrink: 1; }
.affix input { margin: 0; border: 0; border-radius: 0; min-width: 6rem; flex: 1 0 6rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.pair-label { margin-bottom: .4rem; color: var(--muted); }
.paircode { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 2rem; font-weight: 650; letter-spacing: .12em;
  background: var(--ticket); border: 1px dashed var(--ticket-edge); border-radius: 8px; padding: .5rem 1rem; display: inline-block; margin: 0 0 1.4rem; }
input.code.pair { letter-spacing: .2em; max-width: 14rem; text-transform: uppercase; }
.buttons { display: flex; gap: .7rem; flex-wrap: wrap; }
@media (max-width: 30rem) { h1 { font-size: 1.4rem; } .apps li { flex-direction: column; gap: 0; } }
