/* Shell and shared components. Phone layout below 640px matches M*.dc.html. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-sans);
  background-color: var(--sheet);
}
a { color: var(--ink); }
a:hover { color: #000; }
img { image-rendering: pixelated; }
button, input, textarea, select { font: inherit; color: inherit; }
textarea::placeholder, input::placeholder { color: var(--placeholder); }
:focus-visible { outline: 2px solid var(--sealed); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Desktop/phone variants of the same thing. */
.m-only, .m-only-block, .m-only-flex, .m-only-inline { display: none !important; }
@media (max-width: 640px) {
  .m-only { display: revert !important; }
  .m-only-block { display: block !important; }
  .m-only-flex { display: flex !important; }
  .m-only-inline { display: inline !important; }
  .d-only, .d-only-inline { display: none !important; }
}

/* ---------- sheet ---------- */
.sheet {
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  background-color: var(--sheet);
  background-image: radial-gradient(var(--sheet-dot) 1px, transparent 1.2px);
  background-size: var(--dot-size) var(--dot-size);
  border-radius: 0;
  position: relative;
  overflow: clip;
  display: flex;
}
.column {
  width: 100%;
  max-width: var(--column-max);
  margin: 0 auto;

  position: relative;
  display: flex;
  flex-direction: column;
}
@media (max-width: 640px) {
  .column { border: 0; }
}

/* ---------- header ---------- */
.header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 26px var(--gutter);
  position: relative;
  z-index: 2;
}
.header--centered { display: flex; justify-content: center; }
.header-slot { display: flex; align-items: center; gap: 10px; min-width: 0; }
.header-slot--left { justify-self: start; }
.header-slot--right { justify-self: end; }
.header-slot > span { display: contents; }
@media (max-width: 640px) { .header-slot > .m-only { display: contents !important; } }
.logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--ink);
  font-weight: 700; font-size: 22px; letter-spacing: -0.02em;
  min-height: 44px; margin: -10px 0;
}
.hlink {
  display: inline-flex; align-items: center; min-height: 44px; margin: -10px 0;
  color: var(--muted); text-decoration: none; font-size: 15px;
}
.hlink:hover { color: var(--ink); }
.icon-link {
  width: 44px; height: 44px; border: 0; background: transparent; padding: 0;
  display: flex; align-items: center; justify-content: flex-start; cursor: pointer; color: var(--ink);
}
.avatar {
  width: 38px; height: 38px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--soft); border: 1px solid var(--border-soft);
  position: relative;
}
.site-menu {
  margin: 0; inset: 70px auto auto 12px; padding: 8px; border: 1px solid var(--border-soft); border-radius: var(--r-panel);
  background: #fff; box-shadow: var(--shadow-float); min-width: 200px;
}
.site-menu a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 10px; text-decoration: none; font-size: 16px; }
.site-menu a:hover { background: var(--soft); }
@media (max-width: 640px) {
  .header { padding: 16px 18px; }
  .header--centered { padding: 22px 18px; }
  .logo { font-size: 20px; gap: 8px; }
  .logo-ghost { width: 20px; height: 22px; }
  .header-slot--right .hlink { width: 44px; justify-content: flex-end; white-space: nowrap; }
  .avatar { width: 40px; height: 40px; }
}

/* ---------- type ---------- */
.display {
  margin: 0;
  font-family: var(--font-display);
  font-stretch: 62%;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.035em;
}
.display i { font-weight: 700; }
.mono {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--dim);
  text-transform: uppercase;
}
.mono--sm { font-size: 11px; letter-spacing: 0.2em; }
.mono--xs { font-size: 10px; letter-spacing: 0.18em; }
.lede { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.5; }
.quiet-link { color: var(--ink); text-underline-offset: 5px; }
@media (max-width: 640px) {
  .mono { font-size: 11px; letter-spacing: 0.2em; }
  .mono--xs { font-size: 10px; }
}

.fig-row { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.dots { display: flex; gap: 7px; }
.dots > span { width: 5px; height: 5px; border-radius: 50%; background: var(--off-dot); }
.dots > span.is-on { background: var(--ink); }
@media (max-width: 640px) { .dots { gap: 6px; } }

.status {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em; color: var(--live-text);
}
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--live); }
.status--sealed { color: var(--sealed-text); } .status--sealed .status-dot { background: var(--sealed); }
.status--expired { color: var(--dim); } .status--expired .status-dot { background: var(--expired-dot); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border-radius: var(--r-btn); border: 0; cursor: pointer;
  font-family: inherit; font-weight: 600; text-decoration: none; white-space: nowrap;
  position: relative;
}
.btn:disabled, .btn[aria-disabled='true'] { cursor: not-allowed; }
.btn--primary { background: var(--ink-strong); color: #fff; }
.btn--primary:hover { background: #000; color: #fff; }
.btn--wallet { background: #000; color: #fff; }
.btn--wallet:hover { color: #fff; }
.btn--secondary, .btn--outline { background: #fff; color: var(--ink); border: 1px solid var(--ink); }
.btn--soft { background: #fff; color: var(--ink); border: 1px solid var(--border); font-weight: 400; }
.btn--danger { background: #fff; color: var(--danger); border: 1px solid var(--danger-border); font-weight: 400; }
.btn--quiet { background: transparent; color: var(--ink); text-decoration: underline; text-underline-offset: 5px; font-weight: 400; }
.btn--xs { height: 38px; padding: 0 14px; border-radius: 10px; font-size: 14px; gap: 6px; }
.btn--sm { height: 42px; padding: 0 16px; border-radius: 10px; font-size: 14px; gap: 8px; }
.btn--md { height: 48px; padding: 0 18px; font-size: 15px; gap: 8px; }
.btn--lg { height: 52px; padding: 0 22px; font-size: 17px; }
.btn--xl { height: 54px; padding: 0 22px; font-size: 16px; }
/* Visual heights under 44px keep a 44px hit area. */
.btn--xs::after, .btn--sm::after, .chip::after, .swatch::after, .switch::after, .avatar::after {
  content: ''; position: absolute; left: 50%; top: 50%;
  width: max(100%, 44px); height: max(100%, 44px); transform: translate(-50%, -50%);
}

.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- chips ---------- */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  height: 36px; padding: 0 14px; border-radius: var(--r-pill);
  border: 1px solid var(--border); background: #fff; color: var(--ink);
  font-family: inherit; font-size: 14px; cursor: pointer; position: relative; white-space: nowrap;
}
.chip[aria-pressed='true'], .chip[aria-selected='true'] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chips--sm { gap: 6px; }
.chips--sm .chip { height: 34px; padding: 0 13px; }
.chips--md { gap: 6px; }
.chips--md .chip { height: 38px; }

/* ---------- inputs ---------- */
.input {
  width: 100%; height: 48px; padding: 0 14px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-input);
  font-size: 15px; outline: none;
}
.input:focus { border-color: var(--ink); }
.input--soft { background: var(--soft); border: 0; }
.field-label { display: block; margin-bottom: 10px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em; color: var(--dim); text-transform: uppercase; }
.field-label--xs { font-size: 10px; letter-spacing: 0.18em; margin-bottom: 8px; }

/* ---------- prompt box ---------- */
.prompt {
  width: 100%; max-width: 700px; margin-top: 26px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-prompt);
  box-shadow: var(--shadow-prompt); text-align: left; padding: 20px 20px 18px;
}
.prompt textarea {
  width: 100%; background: transparent; border: 0; outline: 0; resize: none;
  font-size: 22px; line-height: 1.4; min-height: 92px; padding: 4px 6px; display: block;
}
.prompt-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.prompt-blank { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 8px; text-decoration: none; font-size: 16px; }
@media (max-width: 640px) {
  .prompt { margin-top: 18px; border-radius: 24px; padding: 16px 16px 14px; }
  .prompt textarea { font-size: 19px; min-height: 84px; padding: 2px; }
  .prompt-foot { flex-wrap: nowrap; }
  .prompt-blank { gap: 6px; padding: 0; font-size: 15px; }
  .prompt-blank svg { width: 15px; height: 15px; }
  .prompt-go { height: 50px; padding: 0 20px; font-size: 16px; gap: 8px; }
}

/* ---------- panel ---------- */
.panel { background: #fff; border: 1px solid var(--border-soft); border-radius: var(--r-panel); padding: 16px; }
.box { background: #fff; border: 1px solid var(--border); border-radius: var(--r-box); box-shadow: var(--shadow-float); }
.stage { display: flex; justify-content: center; background: var(--soft); border: 1px solid var(--border-soft); border-radius: 20px; }

/* ---------- sticker ---------- */
.sticker {
  display: block; width: 300px; transform: rotate(-5deg);
  background: var(--sticker); color: #fff; border-radius: 14px; padding: 10px;
  text-decoration: none; box-shadow: var(--shadow-sticker);
}
.sticker:hover { color: #fff; }
.sticker-inner {
  border: 1.5px solid rgba(255,255,255,.75); border-radius: 8px; padding: 18px 18px 14px;
  position: relative; display: flex; gap: 12px; align-items: center;
}
.screw { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.screw--tl { left: 6px; top: 6px; } .screw--tr { right: 6px; top: 6px; }
.screw--bl { left: 6px; bottom: 6px; } .screw--br { right: 6px; bottom: 6px; }
.sticker-text { flex: 1; display: block; }
.sticker-top, .sticker-foot { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; }
.sticker-foot { font-size: 10px; letter-spacing: 0.16em; opacity: .9; }
.sticker-line { display: block; font-family: var(--font-display); font-stretch: 62%; font-weight: 400; font-size: 34px; line-height: 1; margin: 8px 0; }
.sticker-lock { display: flex; }
/* smaller "make your own" sticker */
.sticker--small { width: 250px; padding: 9px; }
.sticker--small .sticker-inner { display: block; padding: 16px 16px 12px; }
.sticker--small .screw { width: 7px; height: 7px; }
.sticker--small .sticker-top { font-size: 10px; }
.sticker--small .sticker-line { font-size: 30px; margin: 8px 0 6px; }

/* ---------- cursor tag ---------- */
.cursor { position: absolute; display: flex; align-items: flex-start; pointer-events: none; z-index: 1; }
.cursor span { margin: 18px 0 0 2px; color: #fff; font-size: 14px; font-weight: 600; padding: 4px 10px; border-radius: 6px; white-space: nowrap; }
.cursor--green { color: var(--cursor-green); } .cursor--green span { background: var(--cursor-green); }
.cursor--blue { color: var(--cursor-blue); } .cursor--blue span { background: var(--cursor-blue); }
.cursor--orange { color: var(--cursor-orange); } .cursor--orange span { background: var(--cursor-orange); }
.cursor--amber { color: var(--cursor-amber); } .cursor--amber span { background: var(--cursor-amber); }
@media (max-width: 640px) {
  .cursor svg { width: 18px; height: 20px; }
  .cursor span { margin-top: 16px; font-size: 13px; padding: 3px 9px; }
}

/* ---------- switch ---------- */
.switch {
  width: 52px; height: 32px; border-radius: 99px; border: 0; background: var(--switch-off);
  position: relative; cursor: pointer; flex: none; padding: 0;
}
.switch-knob {
  position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%;
  background: #fff; box-shadow: 0 2px 4px rgba(0,0,0,.2); transition: left .15s ease;
}
.switch[aria-checked='true'] { background: var(--ink-strong); }
.switch[aria-checked='true'] .switch-knob { left: 23px; box-shadow: none; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; }
.switch-row b { display: block; font-size: 15px; }
.switch-row .sub { font-size: 13px; color: var(--dim); }

/* ---------- lock-screen preview ---------- */
.lockscreen { border-radius: 22px; padding: 20px 14px 16px; background: var(--lock-bg); color: var(--lock-fg); text-align: center; }
.lockscreen-date { font-size: 13px; color: var(--lock-dim); }
.lockscreen-time { font-size: 52px; font-weight: 700; letter-spacing: -0.04em; line-height: 1.05; margin-bottom: 14px; }
.lockscreen-note { display: flex; gap: 10px; text-align: left; padding: 11px 12px; border-radius: 16px; background: rgba(255,255,255,.14); }
.lockscreen-icon { width: 36px; height: 36px; border-radius: 9px; background: #fff; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.lockscreen-body { min-width: 0; flex: 1; }
.lockscreen-head { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; font-weight: 700; }
.lockscreen-head span { font-weight: 400; color: var(--lock-dim); }
.lockscreen-msg { font-size: 14px; line-height: 1.3; overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .lockscreen { border-radius: 20px; padding: 16px 12px 12px; }
  .lockscreen-date { font-size: 12px; }
  .lockscreen-time { font-size: 44px; margin-bottom: 10px; }
  .lockscreen-note { padding: 10px; border-radius: 14px; }
  .lockscreen-icon { width: 32px; height: 32px; border-radius: 8px; }
  .lockscreen-icon svg { width: 16px; height: 18px; }
  .lockscreen-head { font-size: 12px; }
  .lockscreen-msg { font-size: 13px; }
}

/* ---------- phone bars ---------- */
.bottom-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  padding: 14px 16px calc(22px + env(safe-area-inset-bottom));
  background: #fff; border-top: 1px solid var(--sheet-rule);
}
.bottom-bar .bar-row { display: flex; gap: 8px; }
.bottom-bar .note { margin: 8px 0 0; text-align: center; font-size: 13px; color: var(--dim); }
.tabbar {
  position: fixed; left: 16px; right: 16px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 20; height: 64px;
  background: var(--ink-strong); border-radius: 20px; align-items: center; justify-content: space-around;
  box-shadow: 0 18px 40px -16px rgba(31,31,36,.6);
}
.tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: #b4b4bf; text-decoration: none; font-size: 11px; min-width: 64px; min-height: 52px; }
.tab[aria-current='page'], .tab:hover { color: #fff; }
.tab-new { width: 52px; height: 52px; border-radius: 16px; background: #fff; color: var(--ink-strong); display: flex; align-items: center; justify-content: center; }
.tab-new:hover { color: var(--ink-strong); }
@media (max-width: 640px) {
  .sheet.has-bar { padding-bottom: 110px; }
  .sheet.has-tabbar { padding-bottom: 100px; }
}

/* ---------- ghost picker ---------- */
.ghost-picker { display: flex; gap: 8px; }
.ghost-pick {
  border-radius: 14px; border: 1px solid var(--border-soft); background: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; padding: 0;
}
.ghost-pick[aria-pressed='true'] { border: 1.5px solid var(--ink); }
.ghost-picker--lg .ghost-pick { flex: 1; height: 64px; }
.ghost-picker--sm { flex-wrap: wrap; }
.ghost-picker--sm .ghost-pick { width: 56px; height: 56px; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); z-index: 50;
  background: var(--ink-strong); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 15px;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; max-width: calc(100vw - 32px);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 640px) { body:has(.has-bar, .has-tabbar) .toast { bottom: 120px; } }

/* ---------- link box ---------- */
.linkbox {
  display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 16px;
  border-radius: 16px; background: #fff; border: 1px solid var(--border);
}
.linkbox code { flex: 1; min-width: 0; font-family: var(--font-mono); font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- pass (screens/Pass.dc.html) ---------- */
.pass { width: 320px; height: 440px; position: relative; perspective: 1400px; flex: none; text-align: left; }
.pass-inner { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .6s cubic-bezier(.3,.7,.2,1); }
.pass.is-flipped .pass-inner { transform: rotateY(180deg); }
.pass-face {
  position: absolute; inset: 0; border-radius: 16px; overflow: hidden;
  display: flex; flex-direction: column; padding: 14px 16px 16px;
  font-family: var(--font-sans); background: var(--pass-bg); color: var(--pass-fg);
  box-shadow: var(--shadow-pass);
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.pass-back { transform: rotateY(180deg); }
.pass.is-expired .pass-face { filter: grayscale(1) opacity(.55); }
.pass-pixels {
  position: absolute; right: 0; top: 0; width: 120px; height: 72px; opacity: .22;
  background-image: linear-gradient(90deg, var(--pass-bg) 2px, transparent 2px), linear-gradient(var(--pass-bg) 2px, transparent 2px), linear-gradient(var(--pass-fg), var(--pass-fg));
  background-size: 8px 8px, 8px 8px, 100% 100%;
}
.pass-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; position: relative; }
.pass-top--back { align-items: center; }
.pass-org { display: flex; align-items: center; gap: 7px; font-family: var(--font-pixel); font-size: 13px; min-width: 0; }
.pass-header { text-align: right; min-width: 0; }
.pass-label { font-size: 10px; letter-spacing: .09em; text-transform: uppercase; font-weight: 700; color: var(--pass-label); }
.pass-value { font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
.pass-primary { font-size: 32px; font-weight: 800; line-height: 1.04; letter-spacing: -.03em; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pass-lock { display: flex; justify-content: center; margin: 34px 0 6px; }
.pass-strip { margin: 14px -16px -12px; height: 96px; background-size: cover; background-position: center; position: relative; }
.pass-main { margin-top: 26px; position: relative; }
.pass-row { display: flex; gap: 14px; position: relative; }
.pass-row--secondary { margin-top: 16px; }
.pass-row--aux { margin-top: 14px; }
.pass-cell { flex: 1; min-width: 0; }
.pass-qr { margin-top: auto; display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; }
.pass-qr-box { background: #fff; padding: 7px; border-radius: 8px; width: 104px; height: 104px; box-shadow: inset 0 0 0 1px rgba(31,31,36,.12); }
.pass-qr-box svg { display: block; }
.pass-code { font-family: var(--font-mono); font-size: 10px; font-weight: 600; letter-spacing: .2em; opacity: .75; }
.pass-deco { position: absolute; right: 14px; bottom: 14px; opacity: .2; }
.pass-backlist { display: flex; flex-direction: column; gap: 14px; margin-top: 18px; position: relative; overflow: hidden; }
.pass-backitem { padding-bottom: 12px; border-bottom: 1px solid var(--pass-rule); }
.pass-backvalue { font-size: 14px; font-weight: 500; line-height: 1.35; overflow-wrap: anywhere; }
.pass-foot { margin-top: auto; font-size: 11px; opacity: .75; line-height: 1.5; position: relative; }
.pass-edit { border-radius: 4px; outline: 1px dashed transparent; outline-offset: 2px; cursor: text; min-width: 1ch; }
.pass-edit:hover { outline-color: color-mix(in srgb, var(--pass-fg) 45%, transparent); }
.pass-edit:focus { outline: 1.5px solid var(--pass-fg); }
.pass-edit:empty::before { content: 'tap to write'; opacity: .45; }
.pass-thumb { width: calc(320px * var(--s)); height: calc(440px * var(--s)); flex: none; }
.pass-thumb-inner { width: 320px; height: 440px; transform: scale(var(--s)); transform-origin: top left; }
.flip-button { border: 0; padding: 0; background: transparent; cursor: pointer; border-radius: 16px; }

/* Quiet motion with a clear response to touch and keyboard interaction. */
.btn, .chip, .prompt-examples button { transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease; }
.btn:active, .chip:active, .prompt-examples button:active { transform: scale(.96); }
.prompt:focus-within { border-color: var(--ink); box-shadow: 0 10px 35px -22px #1f1f2455; }
.column { min-width: 0; }
@media (prefers-reduced-motion: no-preference) {
 .hero-title, .hero-lede, .live-preview, .auth-title { animation: settle-in .55s ease both; }
 .hero-lede { animation-delay: .08s; } .live-preview { animation-delay: .14s; }
 /* Live card text stays visible while its contents change. */
 @keyframes settle-in { from { opacity: 0; translate: 0 10px; } to { opacity: 1; translate: 0 0; } }
}

/* A quiet wordmark, with a tiny Wallet-card ghost tab. */
:is(.page--home, .page--gallery, .page--inbox, .page--developers) .header {
  position: sticky; top: 0;
  width: calc(100% - 48px); margin: 0 auto; padding: 22px 8px;
  min-height: 82px; background: var(--sheet); border-bottom: 1px solid var(--sheet-rule);
  transition: transform .3s ease, padding .3s ease, width .3s ease, box-shadow .3s ease, border-radius .3s ease;
  z-index: 30;
}
:is(.page--home, .page--gallery, .page--inbox, .page--developers) .header-slot--center { justify-self: center; }
:is(.page--home, .page--gallery, .page--inbox, .page--developers) .header .logo { margin: 0; font-size: 20px; gap: 10px; letter-spacing: -.045em; }
:is(.page--home, .page--gallery, .page--inbox, .page--developers) .header .logo-ghost {
  padding: 6px 5px; width: 27px; height: 31px; box-sizing: content-box;
  background: var(--ink); color: #fff; border-radius: 6px;
  transform: rotate(-8deg); transition: transform .25s ease;
}
:is(.page--home, .page--gallery, .page--inbox, .page--developers) .header .logo:hover .logo-ghost { transform: rotate(5deg) translateY(-2px); }
:is(.page--home, .page--gallery, .page--inbox, .page--developers) .header .hlink { margin: 0; min-height: 44px; font-size: 12px; padding: 0 8px; gap: 7px; }
:is(.page--home, .page--gallery, .page--inbox, .page--developers) .header-slot--right .hlink::after { content: '↗'; font-size: 14px; transition: transform .2s ease; }
:is(.page--home, .page--gallery, .page--inbox, .page--developers) .header-slot--right .hlink:hover::after { transform: translate(2px, -2px); }
:is(.page--home, .page--gallery, .page--inbox, .page--developers) .header.is-compact { width: min(620px, calc(100% - 32px)); top: 12px; padding: 7px 14px; min-height: 58px; border: 1px solid var(--border-soft); border-radius: 14px; box-shadow: 0 8px 28px -14px #1f1f2430; }
:is(.page--home, .page--gallery, .page--inbox, .page--developers) .header.is-compact .logo { font-size: 17px; }
:is(.page--home, .page--gallery, .page--inbox, .page--developers) .header.is-compact .logo-ghost { width: 18px; height: 20px; padding: 5px; }
:is(.page--home, .page--gallery, .page--inbox, .page--developers) .header:focus-within { transform: translateY(0); pointer-events: auto; }
@media (max-width: 640px) {
 :is(.page--home, .page--gallery, .page--inbox, .page--developers) .header { width: calc(100% - 32px); padding: 14px 0; min-height: 72px; }
 :is(.page--home, .page--gallery, .page--inbox, .page--developers) .header .logo { font-size: 18px; gap: 8px; }
 :is(.page--home, .page--gallery, .page--inbox, .page--developers) .header .logo-ghost { width: 20px; height: 22px; padding: 5px; }
 :is(.page--home, .page--gallery, .page--inbox, .page--developers) .header .hlink { width: auto; font-size: 12px; padding: 0 4px; }
 :is(.page--home, .page--gallery, .page--inbox, .page--developers) .header .icon-link { width: 36px; justify-content: flex-start; }
 :is(.page--home, .page--gallery, .page--inbox, .page--developers) .header.is-compact { top: 8px; padding: 4px 10px; min-height: 54px; }
}
/* Reserve the collapsed height so scrolling never jumps with the bar. */
:is(.page--home, .page--gallery, .page--inbox, .page--developers) .header { height: 89px; flex: none; }
:is(.page--home, .page--gallery, .page--inbox, .page--developers) .header.is-compact { height: 60px; margin-bottom: 29px; }
@media (max-width: 640px) {
 :is(.page--home, .page--gallery, .page--inbox, .page--developers) .header { height: 73px; }
 :is(.page--home, .page--gallery, .page--inbox, .page--developers) .header.is-compact { height: 54px; margin-bottom: 19px; }
}

/* The thinker: glance → ponder → little idea, drawn with the original pixels. */
.thinker { position: relative; display: inline-flex; align-items: center; justify-content: center; flex: none; color: var(--ink); width: 22px; height: 24px; }
.thinker-body { width: 100%; height: 100%; overflow: visible; }
.thinker-dots { position: absolute; top: -7px; right: -8px; display: flex; gap: 2px; opacity: 0; }
.thinker-dots i { width: 3px; height: 3px; background: currentColor; border-radius: 0; }
.thinker-spark { position: absolute; right: -10px; top: -12px; font-size: 17px; color: var(--sticker); opacity: 0; }
:is(.page--home, .page--gallery, .page--inbox, .page--developers) .header .thinker { color: #fff; }
:is(.page--home, .page--gallery, .page--inbox, .page--developers) .header .thinker-dots { color: var(--ink); }
.thinker-eyes { transform-origin: 6px 5px; }
@media (prefers-reduced-motion: no-preference) {
 .thinker[data-thought='idle'] .thinker-body { animation: ghost-ponder 10s ease-in-out infinite; }
 .thinker[data-thought='idle'] .thinker-eyes { animation: ghost-glance 10s steps(1) infinite; }


 .thinker[data-thought='reading'] .thinker-eyes { animation: ghost-read .8s steps(2) infinite; }
 .thinker[data-thought='reading'] .thinker-body { animation: ghost-listen 1.2s ease-in-out infinite; }
 .thinker[data-thought='thinking'] .thinker-body { animation: ghost-listen 1.4s ease-in-out infinite; }
 .thinker[data-thought='thinking'] .thinker-dots { opacity: 1; }
 .thinker[data-thought='thinking'] .thinker-dots i { animation: ghost-dot .9s steps(2) infinite; }
 .thinker-dots i:nth-child(2) { animation-delay: .15s !important; }
 .thinker-dots i:nth-child(3) { animation-delay: .3s !important; }
 .thinker[data-thought='ready'] .thinker-body { animation: ghost-eureka .6s ease both; }
 .thinker[data-thought='ready'] .thinker-spark { animation: ghost-ready 2.4s ease both; }
 @keyframes ghost-ponder { 0%, 22%, 80%, 100% { transform: translateY(0) rotate(0); } 38%, 60% { transform: translateY(-2px) rotate(-9deg); } 72% { transform: translateY(-4px) rotate(5deg); } }
 @keyframes ghost-glance { 0%, 12%, 30%, 78%, 100% { transform: translateX(0); } 8% { transform: scaleY(.15); } 18% { transform: translateX(1px); } 38%, 60% { transform: translate(-1px,-1px); } 70% { transform: scaleY(.15); } }
 @keyframes ghost-question { 0%, 35%, 66%, 100% { opacity: 0; } 36%, 65% { opacity: 1; } }
 @keyframes ghost-idea { 0%, 67%, 85%, 100% { opacity: 0; transform: scale(.5); } 73%, 80% { opacity: 1; transform: scale(1); } }
 @keyframes ghost-read { 0%, 100% { transform: translateX(-1px); } 50% { transform: translateX(1px); } }
 @keyframes ghost-listen { 50% { transform: translateY(-2px) rotate(-6deg); } }
 @keyframes ghost-dot { 0%, 100% { opacity: .3; translate: 0 0; } 50% { opacity: 1; translate: 0 -3px; } }
 @keyframes ghost-eureka { 35% { transform: translateY(-5px) rotate(8deg); } 65% { transform: translateY(1px) rotate(-4deg); } }
 @keyframes ghost-ready { 0%, 100% { opacity: 0; transform: scale(.5); } 15%, 80% { opacity: 1; transform: scale(1); } }
}
@media (prefers-reduced-motion: reduce) {
 .thinker[data-thought='thinking'] .thinker-dots, .thinker[data-thought='ready'] .thinker-spark { opacity: 1; }
}
.logo .thinker { color: #fff; background: var(--ink); border-radius: 6px; }
.logo .thinker-dots { color: var(--ink); }

/* Match the native Wallet slots; Wallet uses the system font for its fields. */
.pass-face { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
.pass-org { font-family: inherit; font-size: 15px; font-weight: 600; }
.pass-photo { background-size: cover; background-position: center; flex: none; }
.pass-photo--thumbnail { position: absolute; top: 80px; right: 16px; width: 80px; height: 80px; border-radius: 8px; }
.pass-front:has(.pass-photo--thumbnail) .pass-main { padding-right: 94px; min-height: 80px; }
.pass-photo--strip { margin: 14px -16px -12px; height: 123px; }
.pass-lock.pass-photo--thumbnail { margin: 0; display: flex; align-items: center; justify-content: center; }
.pass-photo--strip { position: relative; margin-bottom: 0; }
.pass-photo--strip::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to right, color-mix(in srgb, var(--pass-bg) 82%, transparent), color-mix(in srgb, var(--pass-bg) 30%, transparent)); }
.pass-front:has(.pass-photo--strip) .pass-main { position: relative; margin-top: -109px; min-height: 109px; padding-top: 10px; padding-right: 8px; }

/* A compact maker's mark: one ghost, one tiny card stack, one quiet wordmark. */
.logo { gap: 11px; letter-spacing: -.055em; }
.logo-wordmark { display: inline-flex; align-items: baseline; font-weight: 750; line-height: 1; }
.logo-domain { font-weight: 450; color: #686873; letter-spacing: -.05em; }
.logo .thinker,
:is(.page--home,.page--gallery,.page--inbox,.page--developers) .header .logo .thinker {
  width: 21px; height: 24px; padding: 5px 5px 6px;
  box-sizing: content-box; border-radius: 7px;
  background: linear-gradient(145deg,#34343e,#1b1b22);
  box-shadow: 2px 2px 0 #c3caf6, 0 3px 7px -4px #1f1f2460;
  transform: rotate(-6deg); color: #fff;
  transition: transform .3s cubic-bezier(.2,.8,.3,1.3),box-shadow .3s;
}
:is(.page--home,.page--gallery,.page--inbox,.page--developers) .header .logo { gap: 11px; font-size: 21px; letter-spacing: -.055em; }
.logo:hover .thinker,
:is(.page--home,.page--gallery,.page--inbox,.page--developers) .header .logo:hover .thinker { transform: rotate(0) translateY(-1px); box-shadow: 3px 3px 0 #aab7f6,0 4px 10px -5px #1f1f2460; }
.logo .thinker-dots,
:is(.page--home,.page--gallery,.page--inbox,.page--developers) .header .logo .thinker-dots { top: auto; right: 4px; bottom: 3px; color: #c3caf6; gap: 2px; }
.logo .thinker-dots i { width: 2px; height: 2px; }
.logo .thinker-spark { top: -5px; right: -6px; background: #e2edc9; color: #36422d; border: 2px solid white; border-radius: 50%; width: 14px; height: 14px; display: grid; place-items: center; font-size: 10px; }
:is(.page--home,.page--gallery,.page--inbox,.page--developers) .header.is-compact .logo { font-size: 18px; gap: 9px; }
:is(.page--home,.page--gallery,.page--inbox,.page--developers) .header.is-compact .logo .thinker { width: 17px; height: 20px; padding: 4px; border-radius: 5px; }
@media(max-width:640px) {
 .logo { gap: 9px; }
 :is(.page--home,.page--gallery,.page--inbox,.page--developers) .header .logo { font-size: 19px; gap: 9px; }
 :is(.page--home,.page--gallery,.page--inbox,.page--developers) .header .logo .thinker { width: 18px; height: 21px; padding: 4px 4px 5px; border-radius: 6px; }
 :is(.page--home,.page--gallery,.page--inbox,.page--developers) .header.is-compact .logo { font-size: 17px; }
 :is(.page--home,.page--gallery,.page--inbox,.page--developers) .header.is-compact .logo .thinker { width: 16px; height: 18px; padding: 4px; }
}
.pass-artwork { position:absolute; inset:0; background-size:cover; background-position:center; pointer-events:none; }
.pass-artwork::after { content:''; position:absolute; inset:0; background:linear-gradient(to bottom,rgba(10,17,26,.35),rgba(10,17,26,.12) 25%,rgba(10,17,26,.6)); }
.pass--poster .pass-main { margin-top:auto; padding-top:100px; position:relative; }
.pass--poster .pass-main .pass-primary { font-size:30px; text-shadow:0 1px 8px #0003; }
.pass--poster .pass-qr { margin-top:16px; flex-direction:row; align-items:end; justify-content:space-between; }
.pass--poster .pass-qr-box { width:82px; height:82px; padding:6px; }
.pass--poster .pass-qr-box svg { width:70px; height:70px; }
.pass--poster .pass-code { padding-bottom:6px; font-size:9px; }
.pass--poster .pass-label { text-shadow:0 1px 5px #0004; }

/* Native field hierarchy, without decorative treatments on essential text. */
.pass-primary { font-size: 30px; font-weight: 650; line-height: 1.08; letter-spacing: -.025em; }
.pass-label { font-weight: 600; letter-spacing: .045em; }
.pass-value { font-weight: 500; }
.pass-code { letter-spacing: .08em; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
.pass-back .pass-pixels { display: none; }

/* Tiny directories for the places you can go. */
[data-nav-tone='violet'],[data-folder-tone='violet'] { --folder:#ad86dc; --folder-light:#d2b7f4; --folder-ink:#66418c; --folder-wash:#f6f0fc; }
[data-nav-tone='amber'],[data-folder-tone='amber'] { --folder:#d7ab53; --folder-light:#f3d894; --folder-ink:#7d591d; --folder-wash:#fcf7e9; }
[data-nav-tone='blue'],[data-folder-tone='blue'] { --folder:#69a9d8; --folder-light:#b2dcf6; --folder-ink:#2c648c; --folder-wash:#eff7fc; }
[data-nav-tone='mint'],[data-folder-tone='mint'] { --folder:#82b99c; --folder-light:#c2e4cc; --folder-ink:#38694d; --folder-wash:#f0f8f1; }
[data-nav-tone='rose'],[data-folder-tone='rose'] { --folder:#ce94ad; --folder-light:#efd0df; --folder-ink:#854c65; --folder-wash:#fcf1f6; }
[data-nav-tone='peach'],[data-folder-tone='peach'] { --folder:#d69b7a; --folder-light:#f2d1b6; --folder-ink:#8c573b; --folder-wash:#fcf4ed; }
[data-nav-tone='stone'],[data-folder-tone='stone'] { --folder:#a3a6af; --folder-light:#dcdee5; --folder-ink:#555b68; --folder-wash:#f5f5f6; }
.nav-folder-mark { display:inline-block; width:27px; height:25px; position:relative; flex:none; isolation:isolate; filter:drop-shadow(0 2px 2px #33333316); transition:transform .2s ease; }
.nav-folder-back { position:absolute; inset:4px 1px 1px; border-radius:4px; background:var(--folder); }
.nav-folder-back::before { content:''; position:absolute; left:0; top:-3px; width:11px; height:6px; background:var(--folder); border-radius:4px 4px 0 0; }
.nav-folder-paper { position:absolute; top:7px; left:3px; right:3px; bottom:3px; background:#fff; border-radius:2px; box-shadow:0 -2px 0 #ffffff85; transition:transform .2s ease; }
.nav-folder-front { position:absolute; bottom:0; left:0; right:0; height:18px; background:linear-gradient(var(--folder-light),var(--folder)); border-radius:4px; border:1px solid #ffffff50; display:grid; place-items:center; transform-origin:bottom; transition:transform .2s ease; }
.nav-folder-front svg { width:12px; height:12px; color:var(--folder-ink); }
.header .hlink.nav-folder { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:42px; padding:6px 11px; border:1px solid color-mix(in srgb,var(--folder) 22%,white); border-radius:12px; background:var(--folder-wash); text-decoration:none; font-size:12px; font-weight:500; color:#41414a; white-space:nowrap; transition:background .2s,box-shadow .2s,transform .2s; }
.header .hlink.nav-folder::after { display:none; }
.header .nav-folder:hover { box-shadow:0 4px 10px #2929300b; transform:translateY(-1px); }
.nav-folder:hover .nav-folder-paper { transform:translateY(-2px); }
.nav-folder:hover .nav-folder-front { transform:perspective(70px) rotateX(-12deg); }
.header .nav-folder:focus-visible { outline:2px solid var(--folder-ink); outline-offset:3px; }
.header-slot { gap:7px; }
.header .icon-link:has(.nav-folder-mark) { width:49px; gap:3px; justify-content:center; }
.nav-menu-chevron { font-size:11px; color:#72727c; }
.site-menu .hlink.nav-folder { display:flex; align-items:center; gap:12px; padding:10px 14px; text-decoration:none; font-size:13px; }
.site-menu .nav-folder-mark { width:27px; height:25px; }
@media(max-width:640px) {
 .header .hlink.nav-folder { padding:5px 8px; gap:6px; min-height:38px; font-size:11px; border-radius:10px; }
 .header .nav-folder-mark { width:23px; height:22px; }.header .nav-folder-front { height:16px; }.header .nav-folder-front svg { width:10px; height:10px; }
 .header .logo { min-width:0; }.header .logo-wordmark { white-space:nowrap; }
 .header-slot { gap:4px; }
}
@media(prefers-reduced-motion:reduce) { .nav-folder-mark,.nav-folder-paper,.nav-folder-front,.header .hlink.nav-folder { transition:none; } }
.header.is-compact .hlink.nav-folder { padding:5px 8px; gap:6px; min-height:36px; font-size:11px; }
.header.is-compact .nav-folder-mark { width:23px; height:21px; }
.header.is-compact .nav-folder-front { height:15px; }
@media(max-width:375px) { :is(.page--home,.page--gallery,.page--inbox,.page--developers,.page--usage) .header .logo { font-size:16px; gap:6px; } .header .hlink.nav-folder { padding:5px 6px; gap:5px; font-size:10px; } }

/* Keep the folder detail small enough to read as navigation. */
.header .hlink.nav-folder { padding:5px 9px; min-height:38px; gap:6px; }
.header .nav-folder-mark { width:20px; height:19px; }
.header .nav-folder-back { inset:3px 1px 1px; border-radius:3px; }
.header .nav-folder-back::before { width:8px; height:5px; top:-2px; border-radius:3px 3px 0 0; }
.header .nav-folder-paper { top:5px; left:2px; right:2px; bottom:2px; }
.header .nav-folder-front { height:14px; border-radius:3px; }
.header .nav-folder-front svg { width:9px; height:9px; }
.header.is-compact .nav-folder-mark { width:18px; height:17px; }
.header.is-compact .nav-folder-front { height:12px; }
.header .icon-link:has(.nav-folder-mark) { width:40px; }
@media(max-width:640px) { .header .hlink.nav-folder { min-height:36px; padding:5px 7px; font-size:11px; gap:5px; }.header .nav-folder-mark { width:18px; height:17px; }.header .nav-folder-front { height:12px; }.header .nav-folder-front svg { width:8px; height:8px; } }
