/* The app pages, in the same hand as the landing: paper, ink, white cards, pills. */
html, body { margin: 0; background: var(--paper); }
body.ps { min-height: 100vh; display: flex; flex-direction: column; font-size: 16px; }
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; height: 64px; padding: 0 28px; background: rgba(246, 247, 248, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.top .brand { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 21px; letter-spacing: -.04em; text-transform: lowercase; }
.top .brand img { height: 22px; width: auto; display: block; }
.top nav { position: absolute; left: 50%; transform: translateX(-50%); display: flex; gap: 30px; font-size: 15px; font-weight: 500; }
.top nav a.on { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1.5px; }
.top .right { display: flex; align-items: center; gap: 18px; font-size: 15px; font-weight: 500; }
main#view { flex: 1; width: 100%; max-width: 1236px; margin: 0 auto; padding: 56px 28px 90px; }
.foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px 28px; border-top: 1px solid var(--line); color: var(--mute); font-size: 13.5px; }
.foot a { margin-left: 18px; } .foot a:first-child { margin-left: 0; } .foot a:hover, .top a:hover { color: var(--ink); }
.hide { display: none !important; }
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: rgba(14, 26, 36, .4); padding: 20px; }
.modal .ps-card { width: 100%; max-width: 380px; } .modal .wl { display: grid; gap: 8px; margin: 16px 0; }
.modal .wl button { display: flex; align-items: center; gap: 12px; height: 52px; padding: 0 14px; border-radius: 12px; box-shadow: var(--ring); font-weight: 600; } .modal .wl img { width: 26px; height: 26px; border-radius: 6px; }

.pg-head { margin-bottom: 34px; max-width: 760px; }
.pg-head h1 { font-size: 56px; line-height: 1; letter-spacing: -.045em; font-weight: 500; margin: 0; } .pg-head h1 span { color: var(--mute); }
.pg-head p { font-size: 19px; line-height: 1.45; color: var(--mute); margin: 16px 0 0; }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 28px; align-items: start; }
.stack { display: grid; gap: 20px; } .sticky { position: sticky; top: 88px; }
.sec { font-size: 19px; font-weight: 600; letter-spacing: -.025em; margin: 0 0 4px; } .sec + .ps-note { margin: 0 0 16px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; } .rowimg { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 18px; align-items: start; }
.imgpick { position: relative; width: 132px; height: 132px; border-radius: 18px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); display: grid; place-items: center; text-align: center; color: var(--mute); font-size: 13px; cursor: pointer; overflow: hidden; line-height: 1.35; }
.imgpick img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; } .imgpick input { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.chip { height: 36px; padding: 0 14px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); font-weight: 600; font-size: 14px; background: #fff; }
.chip.on { background: var(--ink); color: #fff; box-shadow: none; }

/* the mix */
.mix { display: grid; gap: 8px; }
.mix-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) 92px 34px; gap: 12px; align-items: center; height: 54px; padding: 0 8px 0 14px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.mix-row b { font-weight: 600; } .mix-row .ps-mute { font-size: 13px; margin-left: 8px; font-weight: 400; }
.mix-row .pct { display: flex; align-items: center; gap: 4px; font-weight: 600; } .mix-row .pct input { width: 62px; height: 36px; margin: 0; padding: 0 8px; text-align: right; font-size: 16px; border-radius: 9px; }
.mix-row .x { width: 30px; height: 30px; border-radius: 50%; color: var(--soft); font-size: 18px; line-height: 1; } .mix-row .x:hover { background: rgba(17, 19, 22, .06); color: var(--ink); }
.mix-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 4px; font-size: 14px; }
.mix-foot .tot { font-weight: 600; } .mix-foot .tot.bad { color: #c63a1e; }
.adder { position: relative; } .adder .ps-in { margin-top: 0; }
.adder .list { position: absolute; z-index: 5; left: 0; right: 0; top: 54px; max-height: 300px; overflow: auto; background: #fff; border-radius: 14px; box-shadow: var(--ring), 0 20px 50px rgba(14, 26, 36, .18); padding: 6px; }
.adder .list button { display: flex; align-items: center; gap: 10px; width: 100%; height: 44px; padding: 0 10px; border-radius: 10px; font-weight: 600; text-align: left; }
.adder .list button:hover { background: rgba(17, 19, 22, .05); } .adder .list button .ps-mute { margin-left: auto; font-weight: 400; font-size: 13px; }
.bars { display: flex; height: 12px; border-radius: 12px; overflow: hidden; background: rgba(17, 19, 22, .06); margin: 14px 0 10px; } .bars i { display: block; height: 100%; }
.legend { display: grid; gap: 8px; } .legend div { display: flex; align-items: center; gap: 10px; font-weight: 600; } .legend div span:last-child { margin-left: auto; color: var(--mute); font-weight: 500; }
.legend i { width: 8px; height: 8px; border-radius: 50%; flex: none; }

/* preview and facts */
.coinhead { display: flex; align-items: center; gap: 16px; } .coinhead .ps-coin { width: 64px; height: 64px; border-radius: 16px; }
.coinhead h2 { margin: 0; font-size: 26px; letter-spacing: -.035em; font-weight: 600; } .coinhead p { margin: 2px 0 0; color: var(--mute); }
.kv { display: grid; gap: 0; margin-top: 6px; } .kv div { display: flex; justify-content: space-between; gap: 14px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 15px; } .kv div span:first-child { color: var(--mute); } .kv div span:last-child { font-weight: 600; text-align: right; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.tile { background: #fff; border-radius: 18px; padding: 22px; box-shadow: var(--ring); }
.steps { display: grid; gap: 10px; margin-top: 16px; } .steps div { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-weight: 600; }
.steps div.done { color: var(--green); } .steps div.now { box-shadow: inset 0 0 0 2px var(--ink); } .steps div span { margin-left: auto; font-weight: 400; color: var(--mute); font-size: 14px; }
.done-card { text-align: center; padding: 48px 30px; } .done-card .ps-coin { width: 96px; height: 96px; border-radius: 24px; margin: 0 auto 20px; } .done-card .ps-h { font-size: 40px; }
.done-card .ps-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }
.addr { font-family: var(--mono); font-size: 13px; color: var(--mute); word-break: break-all; }
.tablewrap { background: #fff; border-radius: 18px; box-shadow: var(--ring); overflow: hidden; } .tablewrap .ps-table td { height: 56px; } .tablewrap .ps-table th { padding-top: 14px; padding-bottom: 12px; }
.tablewrap .ps-table th:first-child, .tablewrap .ps-table td:first-child { padding-left: 22px; } .tablewrap .ps-table th:last-child, .tablewrap .ps-table td:last-child { padding-right: 22px; }
.lookup { display: flex; gap: 10px; max-width: 640px; } .lookup .ps-in { margin-top: 0; } .lookup .ps-btn { height: 48px; flex: none; }
pre.code { background: var(--deep); color: #e8ecef; border-radius: 14px; padding: 18px 20px; overflow: auto; font: 13px/1.6 var(--mono); margin: 12px 0 0; }
.prose { max-width: 720px; } .prose h2 { font-size: 22px; letter-spacing: -.03em; margin: 34px 0 8px; } .prose p, .prose li { color: var(--mute); line-height: 1.6; font-size: 16px; } .prose ul { padding-left: 20px; }

@media (max-width: 1000px) { .cols { grid-template-columns: minmax(0, 1fr); } .sticky { position: static; } .tiles { grid-template-columns: 1fr 1fr; } .top nav { display: none; } }
@media (max-width: 640px) {
  main#view { padding: 34px 16px 70px; } .top { padding: 0 16px; } .top .right { gap: 12px; } .top .right a:not(.ps-btn) { display: none; }
  .pg-head h1 { font-size: 38px; } .pg-head p { font-size: 17px; } .ps .ps-card { padding: 20px; } .rowimg { grid-template-columns: 1fr; } .row2 { grid-template-columns: 1fr; }
  .mix-row { grid-template-columns: 26px minmax(0, 1fr) 84px 30px; gap: 8px; padding-left: 10px; } .mix-row .ps-mute { display: none; }
  .tablewrap .ps-table th, .tablewrap .ps-table td { padding-left: 8px; padding-right: 8px; } .tablewrap .ps-table th:first-child, .tablewrap .ps-table td:first-child { padding-left: 14px; } .tablewrap .ps-table th:last-child, .tablewrap .ps-table td:last-child { padding-right: 12px; }
  .tablewrap .ps-btn.sm { height: 30px; padding: 0 10px; font-size: 12.5px; } .tablewrap .ps-cell { gap: 8px; }
  /* in a table on a phone, a mix is its logos only */
  .tablewrap .ps-mixtxt { flex-wrap: nowrap; gap: 0; } .tablewrap .ps-mixtxt span { font-size: 0; gap: 0; } .tablewrap .ps-mixtxt span + span .ps-coin { margin-left: -5px; } .tablewrap .ps-mixtxt .ps-coin { width: 20px; height: 20px; }
  .hide-sm { display: none !important; } .tile { padding: 16px; } .lookup { flex-direction: column; } .foot { padding: 18px 16px; }
}
