[hidden] { display: none !important; }
/* Launch wizard + agent directory (extends launchpad.css tokens) */
body.app { min-height: 100vh; }
.app-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.app-bg canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
#dots { opacity: .32; }
.app .top { z-index: 5; }
.app .top::before { display: none; }
.links a.on { color: #fff; }
.links a.on::after { content: ''; display: block; height: 1px; background: #fff; margin-top: 4px; }
.kicker { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.muted { color: var(--muted); }
.link-btn { background: none; border: 0; padding: 0; color: var(--ink-2); font-family: var(--mono); font-size: 12.5px; cursor: pointer; border-bottom: 1px solid var(--line-2); }
.link-btn:hover { color: #fff; border-color: #fff; }
.btn-out { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 18px; border: 1px solid var(--line-2); border-radius: 12px; background: rgba(255,255,255,.03); font-family: var(--mono); font-size: 13px; color: var(--ink); cursor: pointer; transition: border-color .2s, background .2s; }
.btn-out:hover { border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.06); }
.btn-next { position: relative; overflow: hidden; height: 46px; min-width: 128px; padding: 0 22px; border: 0; border-radius: 999px; color: #0a0a0b; font-family: var(--mono); font-size: 13.5px; font-weight: 500; cursor: pointer;
  background: linear-gradient(180deg, #fff, #d4d4da 55%, #a3a3ac); box-shadow: 0 10px 30px -12px rgba(255,255,255,.4); transition: opacity .2s, transform .15s; }
.btn-next:disabled { opacity: .28; cursor: not-allowed; box-shadow: none; }
.btn-next:not(:disabled):active { transform: translateY(1px); }
.btn-next.busy { pointer-events: none; }
.btn-next.busy::after { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.9) 50%, transparent 70%); animation: sheen 1.1s linear infinite; }
@keyframes sheen { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.hint { color: var(--ink-2); font-size: 14px; margin: 0 0 14px; }
.hint.muted { color: var(--muted); margin-top: 14px; }
.hint code { font-family: var(--mono); color: #fff; }
.hint-err { color: #ff8a7e; font-size: 13px; min-height: 18px; margin: 12px 0 0; }
.check { display: flex; align-items: center; gap: 10px; margin-top: 18px; font-size: 13.5px; color: var(--ink-2); cursor: pointer; }
.check input { appearance: none; width: 18px; height: 18px; margin: 0; border: 1px solid var(--line-2); border-radius: 5px; background: rgba(0,0,0,.4); display: grid; place-items: center; cursor: pointer; }
.check input:checked { background: #fff; border-color: #fff; }
.check input:checked::after { content: ''; width: 9px; height: 5px; border: 2px solid #0a0a0b; border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg); }

/* ---------- wizard ---------- */
.wiz { position: relative; z-index: 1; display: grid; grid-template-columns: 250px 1fr; max-width: 1120px; margin: 72px auto 96px; border: 1px solid var(--line-2); border-radius: 26px; overflow: hidden;
  background: rgba(10,10,12,.82); backdrop-filter: blur(16px); box-shadow: 0 60px 140px -50px #000, inset 0 1px 0 rgba(255,255,255,.05); animation: copy-arrive .8s cubic-bezier(.2,.8,.2,1) both; }
.wiz-side { padding: 30px 26px; border-right: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,255,255,.035), transparent 70%); }
.wiz-title { font-family: var(--mono); font-size: 15px; margin: 0 0 30px; color: #fff; }
.steps { list-style: none; margin: 0; padding: 0; position: relative; }
.steps li { position: relative; padding-bottom: 26px; }
.steps li:not(:last-child)::before { content: ''; position: absolute; left: 17px; top: 38px; bottom: 4px; width: 1px; background: var(--line-2); }
.steps li.done:not(:last-child)::before { background: rgba(255,255,255,.55); }
.steps button { display: flex; gap: 14px; align-items: flex-start; background: none; border: 0; padding: 0; text-align: left; cursor: pointer; color: inherit; }
.steps button:disabled { cursor: default; }
.num { flex: none; width: 35px; height: 35px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; font-family: var(--mono); font-size: 13px; color: var(--muted); background: #0b0b0d; transition: .25s; }
.steps strong { display: block; font-family: var(--mono); font-weight: 400; font-size: 14px; color: var(--muted); margin-top: 2px; }
.steps small { display: block; font-size: 12px; color: var(--faint); margin-top: 3px; }
.steps li.on .num { background: linear-gradient(180deg, #fff, #c9c9cf); color: #0a0a0b; border-color: #fff; box-shadow: 0 0 0 5px rgba(255,255,255,.08); }
.steps li.on strong, .steps li.done strong { color: #fff; }
.steps li.on small { color: var(--ink-2); }
.steps li.done .num { color: #fff; border-color: rgba(255,255,255,.5); }
.wiz-note { margin: 24px 0 0; font-size: 13px; color: var(--muted); line-height: 1.6; }
.wiz-body { padding: 38px 46px 34px; min-height: 520px; }
.pane { animation: copy-arrive .5s cubic-bezier(.2,.8,.2,1) both; }
.pane h1 { font-family: var(--mono); font-size: 40px; letter-spacing: -.04em; font-weight: 400; line-height: 1.1; margin: 0 0 14px; background: var(--chrome); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pane-sub { color: var(--ink-2); font-size: 14.5px; margin: 0 0 28px; max-width: 560px; line-height: 1.6; }
.pane-foot { display: flex; justify-content: flex-end; align-items: center; gap: 22px; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); }

.w-list { display: grid; gap: 8px; max-width: 360px; margin-top: 14px; }
.w-list button { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 12px; background: rgba(255,255,255,.03); color: var(--ink); font-size: 14px; cursor: pointer; text-align: left; }
.w-list button:hover { border-color: rgba(255,255,255,.35); }
.w-list img, .w-list .wi { width: 26px; height: 26px; border-radius: 7px; background: #1a1a1f; }
.w-list .none { color: var(--muted); font-size: 13.5px; line-height: 1.6; }
.w-list .none a { color: #fff; border-bottom: 1px solid #fff; }
.w-card { max-width: 460px; border: 1px solid var(--line-2); border-radius: 16px; padding: 18px; background: rgba(0,0,0,.35); }
.w-row { display: flex; align-items: center; gap: 12px; }
.w-row > div { flex: 1; }
.w-row b { display: block; font-family: var(--mono); font-weight: 400; font-size: 15px; color: #fff; }
.w-row small { color: var(--muted); font-size: 12px; }
.w-ava { width: 38px; height: 38px; border-radius: 50%; overflow: hidden; flex: none; }
.w-ava svg { width: 100%; height: 100%; display: block; }
.w-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.w-grid div { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.w-grid span { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.w-grid b { font-family: var(--mono); font-weight: 400; font-size: 14px; color: #fff; }
.w-grid b.bad { color: #ff8a7e; } .w-grid b.ok { color: #7ee2a8; }
#w-switch { margin-top: 14px; }

/* step 3 form */
.lf-grid { display: grid; grid-template-columns: 1fr 250px; gap: 28px; }
.drop { display: flex; gap: 16px; align-items: center; padding: 14px; border: 1px dashed var(--line-2); border-radius: 14px; margin-bottom: 16px; transition: border-color .2s, background .2s; }
.drop.over { border-color: #fff; background: rgba(255,255,255,.04); }
.drop-prev { flex: none; width: 72px; height: 72px; border-radius: 14px; overflow: hidden; display: grid; place-items: center; background: #0b0b0d; border: 1px solid var(--line); color: var(--muted); }
.drop-prev img { width: 100%; height: 100%; object-fit: cover; }
.drop b { display: block; font-size: 14px; font-weight: 500; }
.drop small { display: block; color: var(--muted); font-size: 12px; margin: 2px 0 8px; }
.fld { display: block; position: relative; margin-bottom: 14px; }
.fld > span { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 7px; }
.fld > span small { text-transform: none; letter-spacing: 0; color: var(--faint); margin-left: 6px; }
.fld input, .fld textarea, .eth-in { width: 100%; border: 1px solid var(--line-2); border-radius: 12px; background: rgba(0,0,0,.4); color: #fff; font: 14px var(--sans); padding: 11px 13px; outline: none; transition: border-color .2s; resize: vertical; }
.fld input:focus, .fld textarea:focus, .eth-in:focus-within { border-color: rgba(255,255,255,.45); }
.fld.bad input, .fld.bad textarea { border-color: #ff8a7e; }
.fld em { position: absolute; right: 10px; bottom: 9px; font-style: normal; font-family: var(--mono); font-size: 10.5px; color: var(--faint); }
#f-ticker { text-transform: uppercase; font-family: var(--mono); }
.eth-in { display: flex; align-items: center; padding: 0 13px 0 0; }
.eth-in input { border: 0; background: none; font-family: var(--mono); }
.eth-in b { font-family: var(--mono); font-weight: 400; font-size: 12.5px; color: var(--muted); }
.row2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; }
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.lf-side .kicker { margin-bottom: 10px; }
.pcard { border: 1px solid var(--line-2); border-radius: 16px; overflow: hidden; background: #0b0b0d; }
.terms { margin-top: 18px; border: 1px solid var(--line); border-radius: 14px; padding: 14px 14px 10px; }
.terms dl { margin: 0; display: grid; gap: 7px; font-size: 12.5px; }
.terms dl div { display: flex; justify-content: space-between; color: var(--muted); }
.terms dd { margin: 0; font-family: var(--mono); color: var(--ink-2); }
.terms .tot { border-top: 1px dashed var(--line-2); padding-top: 8px; margin-top: 2px; }
.terms .tot dd, .terms .tot dt { color: #fff; }
.done-card { border: 1px solid rgba(126,226,168,.3); background: rgba(126,226,168,.05); border-radius: 14px; padding: 16px; margin-top: 18px; font-size: 14px; color: var(--ink-2); line-height: 1.6; }
.done-card b { color: #fff; font-weight: 500; }
.done-card code { font-family: var(--mono); font-size: 12.5px; color: #fff; word-break: break-all; }

/* ---------- shared card ---------- */
.pc-img { aspect-ratio: 1; margin: 6px; border-radius: 11px; overflow: hidden; background: #060607; }
.pc-img svg, .pc-img img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.pc-body { padding: 8px 12px 12px; }
.pc-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.pc-top b { font-weight: 500; font-size: 14.5px; color: #fff; line-height: 1.25; }
.pc-soc { display: flex; gap: 6px; color: var(--muted); padding-top: 2px; }
.pc-soc i { width: 13px; height: 13px; display: block; }
.pc-soc svg { width: 100%; height: 100%; display: block; }
.pc-body > small { display: block; font-family: var(--mono); font-size: 11px; color: var(--faint); margin-top: 2px; }
.pc-cap { display: flex; align-items: baseline; gap: 8px; margin: 10px 0 8px; }
.pc-cap strong { font-family: var(--mono); font-weight: 500; font-size: 18px; color: #fff; letter-spacing: -.02em; }
.pc-cap span { font-size: 11px; color: var(--muted); }
.pc-ath { display: flex; align-items: baseline; gap: 6px; margin: -4px 0 8px; font-size: 11px; color: var(--muted); }
.pc-ath b { font-family: var(--mono); font-weight: 500; font-size: 12.5px; color: #e9e9ee; letter-spacing: -.01em; }
.pc-badges { display: inline-flex; gap: 4px; align-self: flex-start; }
.tk-badge.grad { background: linear-gradient(180deg, #d6f8e4, #7ee2a8); color: #06210f; }
.pc-foot { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 10.5px; color: var(--faint); }
.st { color: var(--muted); }
.st.grad { color: #7ee2a8; }

/* ---------- directory ---------- */
.dash { position: relative; z-index: 1; max-width: 1440px; margin: 0 auto; padding: 40px 80px 120px; }
.dash-bar { display: flex; align-items: center; gap: 18px; margin-bottom: 24px; flex-wrap: wrap; }
.dash-bar h1 { font-family: var(--mono); font-weight: 400; font-size: 28px; letter-spacing: -.03em; margin: 0; display: flex; align-items: baseline; gap: 10px; margin-right: auto; color: #fff; }
.dash-bar h1 > span { font-size: 13px; color: var(--muted); letter-spacing: 0; }
.prev-tag { font-style: normal; font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line-2); border-radius: 999px; padding: 3px 9px; align-self: center; }
.search-btn { display: flex; align-items: center; gap: 10px; width: 360px; height: 40px; padding: 0 8px 0 14px; border: 1px solid var(--line-2); border-radius: 12px; background: rgba(10,10,12,.8); color: var(--muted); font-family: var(--mono); font-size: 12.5px; cursor: pointer; transition: border-color .2s; }
.search-btn:hover { border-color: rgba(255,255,255,.3); color: var(--ink-2); }
.search-btn span { flex: 1; text-align: left; }
kbd { font-family: var(--mono); font-size: 10.5px; color: var(--muted); border: 1px solid var(--line-2); border-radius: 6px; padding: 2px 6px; }
.seg2 { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--line-2); border-radius: 12px; background: rgba(10,10,12,.8); }
.seg2 button { border: 0; background: none; color: var(--muted); font-family: var(--mono); font-size: 12px; padding: 7px 12px; border-radius: 8px; cursor: pointer; }
.seg2 button.on { background: linear-gradient(180deg, #fff, #c9c9cf); color: #0a0a0b; }
.pill-btn.sm { height: 42px; gap: 16px; padding: 0 5px 0 18px; font-size: 12.5px; }
.pill-btn.sm .pill-ic { width: 32px; height: 32px; }
.grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.grid .agent { display: block; color: inherit;  border: 1px solid var(--line-2); border-radius: 16px; overflow: hidden; background: rgba(12,12,15,.85); cursor: pointer; transition: border-color .25s, transform .25s, box-shadow .25s; animation: copy-arrive .5s cubic-bezier(.2,.8,.2,1) both; }
.grid .agent:hover { border-color: rgba(255,255,255,.3); transform: translateY(-3px); box-shadow: 0 30px 60px -30px #000; }
.grid .agent:hover .pc-img svg, .grid .agent:hover .pc-img img { transform: scale(1.04); }
.grid-empty { color: var(--muted); text-align: center; padding: 80px 0; }
.grid-empty a { color: #fff; border-bottom: 1px solid #fff; }

/* command palette */
.kpal { position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,.6); backdrop-filter: blur(6px); display: flex; justify-content: center; align-items: flex-start; padding: 12vh 16px 16px; }
.kpal[hidden] { display: none; }
.kpal-card { width: 100%; max-width: 560px; border: 1px solid var(--line-2); border-radius: 18px; background: #0e0e11; box-shadow: 0 50px 100px -30px #000; overflow: hidden; animation: copy-arrive .25s ease-out both; }
.kpal-in { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); color: var(--muted); }
.kpal-in input { flex: 1; border: 0; background: none; outline: none; color: #fff; font: 15px var(--sans); }
.kpal ul { list-style: none; margin: 0; padding: 6px; max-height: 50vh; overflow: auto; }
.kpal li { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 10px; cursor: pointer; }
.kpal li.on { background: rgba(255,255,255,.07); }
.kpal li .kav { width: 30px; height: 30px; border-radius: 8px; overflow: hidden; flex: none; }
.kpal li .kav svg, .kpal li .kav img { width: 100%; height: 100%; display: block; object-fit: cover; }
.kpal li b { font-weight: 500; font-size: 14px; color: #fff; }
.kpal li small { font-family: var(--mono); font-size: 11px; color: var(--faint); margin-left: 8px; }
.kpal li span:last-child { margin-left: auto; font-family: var(--mono); font-size: 12px; color: var(--ink-2); }
.kpal .k-empty { color: var(--muted); font-size: 13px; padding: 18px 12px; cursor: default; }

/* detail drawer */
.drawer { position: fixed; inset: 0; z-index: 45; background: rgba(0,0,0,.55); backdrop-filter: blur(4px); }
.drawer[hidden] { display: none; }
.drawer-card { position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100%); overflow: auto; background: #0c0c0f; border-left: 1px solid var(--line-2); padding: 26px; animation: slide-in .35s cubic-bezier(.2,.8,.2,1) both; }
@keyframes slide-in { from { transform: translateX(40px); opacity: 0; } }
.drawer-x { position: absolute; top: 14px; right: 16px; border: 0; background: none; color: var(--muted); font-size: 26px; cursor: pointer; line-height: 1; }
.d-head { display: flex; gap: 16px; align-items: center; margin-bottom: 18px; }
.d-ava { width: 84px; height: 84px; border-radius: 18px; overflow: hidden; flex: none; border: 1px solid var(--line-2); }
.d-ava svg { width: 100%; height: 100%; display: block; }
.d-head h2 { font-family: var(--mono); font-weight: 400; font-size: 24px; letter-spacing: -.03em; margin: 0; color: #fff; }
.d-head small { font-family: var(--mono); color: var(--muted); font-size: 12.5px; }
.d-desc { color: var(--ink-2); font-size: 14px; line-height: 1.6; margin: 0 0 18px; }
.d-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.d-stats div { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.d-stats span { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.d-stats b { font-family: var(--mono); font-weight: 400; font-size: 16px; color: #fff; }
.d-curve { margin-bottom: 18px; }
.d-curve .bar { height: 6px; border-radius: 6px; background: rgba(255,255,255,.07); overflow: hidden; margin-top: 8px; }
.d-curve .bar i { display: block; height: 100%; background: linear-gradient(90deg, #6b6b73, #fff); }
.d-curve p { display: flex; justify-content: space-between; margin: 0; font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.d-ca { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-family: var(--mono); font-size: 12px; color: var(--ink-2); margin-bottom: 14px; }
.d-ca code { flex: 1; overflow: hidden; text-overflow: ellipsis; }
.d-links { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.d-links a { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 12px; font-size: 12.5px; color: var(--ink-2); }
.d-links a:hover { color: #fff; border-color: rgba(255,255,255,.35); }
.d-links svg { width: 13px; height: 13px; }
.d-actions { display: flex; gap: 10px; }
.d-actions .btn-next { flex: 1; }
.d-note { font-size: 12px; color: var(--faint); margin-top: 12px; line-height: 1.5; }

@media (max-width: 1200px) { .grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 980px) {
  .wiz { grid-template-columns: 1fr; margin: 32px 16px 64px; }
  .wiz-side { border-right: 0; border-bottom: 1px solid var(--line); padding: 22px; }
  .steps { display: flex; gap: 18px; }
  .steps li { padding-bottom: 0; }
  .steps li::before { display: none; }
  .steps small, .wiz-note { display: none; }
  .wiz-title { margin-bottom: 16px; }
  .wiz-body { padding: 26px 22px; }
  .lf-grid { grid-template-columns: 1fr; }
  .lf-side { max-width: 280px; }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .dash { padding: 28px 24px 90px; }
  .search-btn { width: auto; flex: 1; min-width: 200px; }
}
@media (max-width: 600px) {
  .pane h1 { font-size: 30px; }
  .row2, .row3 { grid-template-columns: 1fr; }
  .steps { gap: 10px; }
  .steps strong { font-size: 12.5px; }
  .num { width: 30px; height: 30px; font-size: 12px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .dash { padding: 22px 16px 80px; }
  .dash-bar h1 { width: 100%; }
  .seg2 { order: 3; }
  .pill-btn.sm { order: 4; }
  .pc-cap strong { font-size: 15px; }
  .pc-foot span:first-child { display: none; }
}

/* ---------- agent project page ---------- */
.proj { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; padding: 34px 80px 120px; }
.proj-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; position: relative; z-index: 40; }
.back { font-family: var(--mono); font-size: 13.5px; color: var(--ink-2); border-bottom: 1px solid var(--line-2); padding-bottom: 2px; }
.back:hover { color: #fff; border-color: #fff; }
.wallet-box { position: relative; }
.w-list.pop { position: absolute; right: 0; top: calc(100% + 8px); z-index: 10; width: 240px; padding: 6px; margin: 0; background: #0e0e11; border: 1px solid var(--line-2); border-radius: 14px; box-shadow: 0 30px 60px -20px #000; }
.proj-card { border: 1px solid var(--line-2); border-radius: 22px; background: rgba(10,10,12,.86); backdrop-filter: blur(14px); padding: 26px 28px; margin-bottom: 18px; box-shadow: 0 40px 100px -50px #000; animation: copy-arrive .6s cubic-bezier(.2,.8,.2,1) both; }
.proj-card.nf h1 { font-family: var(--mono); font-weight: 400; font-size: 32px; margin: 0 0 10px; color: #fff; }
.ph-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.ph-id { display: flex; align-items: center; gap: 16px; }
.ph-ava { width: 60px; height: 60px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line-2); flex: none; }
.ph-ava svg, .ph-ava img { width: 100%; height: 100%; display: block; object-fit: cover; }
.ph-id h1 { display: inline; font-family: var(--mono); font-weight: 500; font-size: 26px; letter-spacing: -.03em; margin: 0 10px 0 0; background: var(--chrome); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ph-id span { color: var(--muted); font-size: 15px; }
.ph-cap { text-align: right; }
.ph-cap .kicker { margin-bottom: 4px; }
.ph-cap-row { display: flex; align-items: center; gap: 6px; justify-content: flex-end; }
.ph-cap strong { font-family: var(--mono); font-weight: 500; font-size: 32px; letter-spacing: -.03em; color: #fff; }
.ph-ca-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 18px 0 14px; }
.ph-ca { display: flex; align-items: center; gap: 4px; border: 1px solid var(--line-2); border-radius: 10px; padding: 5px 6px 5px 12px; background: rgba(0,0,0,.35); max-width: 100%; }
.ph-ca code { font-size: 12.5px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-right: 4px; }
.ph-ca .icon-btn { display: inline-grid; place-items: center; }
.soc { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 10px; color: var(--ink-2); }
.soc:hover { color: #fff; border-color: rgba(255,255,255,.35); }
.soc svg { width: 15px; height: 15px; }
.ph-desc { color: var(--ink-2); font-size: 14.5px; line-height: 1.6; margin: 0 0 22px; max-width: 640px; }
.ph-desc code { font-family: var(--mono); color: #fff; word-break: break-all; }
.rewards { border-top: 1px solid var(--line); padding-top: 18px; }
.rewards .kicker { margin-bottom: 8px; }
.rw-sub { color: var(--muted); font-size: 13.5px; margin: 0 0 16px; line-height: 1.6; }
.rw-sub b { color: #fff; font-weight: 500; }
.rw-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.rw { border: 1px solid var(--line-2); border-radius: 14px; padding: 14px 16px 16px; background: linear-gradient(180deg, rgba(255,255,255,.035), transparent); min-height: 104px; }
.rw span { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin-bottom: 6px; }
.rw b { font-family: var(--mono); font-weight: 400; font-size: 24px; letter-spacing: -.02em; color: #fff; }
.rw small { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-left: 8px; }
.rw small.rw-note { display: block; margin: 8px 0 0; font-family: var(--sans); font-size: 12.5px; line-height: 1.5; }
.inline-link { background: none; border: 0; padding: 0; color: #fff; font: inherit; border-bottom: 1px solid #fff; cursor: pointer; }
.chart-card { padding-bottom: 18px; }
.ch-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; }
.ch-head .kicker { margin-bottom: 4px; }
.ch-head strong { display: block; font-family: var(--mono); font-weight: 500; font-size: 24px; color: #fff; letter-spacing: -.02em; }
.ch-chg { font-family: var(--mono); font-size: 12.5px; }
.ch-chg.up { color: #7ee2a8; } .ch-chg.down { color: #ff6b5e; }
.ch-wrap { position: relative; height: 260px; }
#chart { width: 100%; height: 100%; display: block; cursor: crosshair; touch-action: pan-y; }
.ch-tip { position: absolute; top: 0; width: 120px; padding: 6px 9px; border: 1px solid var(--line-2); border-radius: 9px; background: #0e0e11; pointer-events: none; text-align: center; }
.ch-tip b { display: block; font-family: var(--mono); font-weight: 500; font-size: 13px; color: #fff; }
.ch-tip span { font-family: var(--mono); font-size: 10.5px; color: var(--muted); }
.ch-axis { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 10.5px; color: var(--faint); margin-top: 8px; }
.contracts { padding: 26px 4px 0; }
.contracts h2 { font-family: var(--mono); font-size: 22px; letter-spacing: -.03em; margin: 0 0 18px; }
.contracts dl { margin: 0; display: grid; gap: 14px; }
.contracts dt { font-size: 12.5px; color: var(--muted); margin-bottom: 4px; }
.contracts dd { margin: 0; }
.addr { font-family: var(--mono); font-size: 13px; color: var(--ink-2); word-break: break-all; }
.addr:hover { color: #fff; }
.addr span { font-size: 10px; }
@media (max-width: 900px) {
  .proj { padding: 24px 20px 90px; }
  .rw-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .proj { padding: 20px 16px 80px; }
  .proj-card { padding: 20px 18px; border-radius: 18px; }
  .ph-top { flex-direction: column; }
  .ph-cap { text-align: left; }
  .ph-cap-row { justify-content: flex-start; }
  .ph-cap strong { font-size: 26px; }
  .ph-ca { flex: 1 1 100%; }
  .ch-wrap { height: 200px; }
}

/* ---------- paper ---------- */
.paper { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; padding: 56px 80px 120px; display: grid; grid-template-columns: 220px 1fr; gap: 64px; align-items: start; }
.toc { position: sticky; top: 28px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.toc a { display: block; padding: 7px 12px; font-size: 13px; color: var(--muted); border-left: 1px solid var(--line-2); transition: color .15s, border-color .15s; }
.toc a:hover { color: #fff; }
.toc a.on { color: #fff; border-left-color: #fff; background: rgba(255,255,255,.035); }
.doc { max-width: 720px; min-width: 0; }
.doc h1 { font-family: var(--mono); font-weight: 400; font-size: 56px; letter-spacing: -.045em; line-height: 1.05; margin: 0 0 22px; color: #fff; }
.doc h1 .dim { color: #6f6f78; }
.doc .lede { font-size: 18px; color: var(--ink-2); line-height: 1.65; margin: 0 0 40px; }
.doc section { padding: 34px 0; border-top: 1px solid var(--line); scroll-margin-top: 20px; }
.doc h2 { display: flex; gap: 14px; align-items: baseline; font-family: var(--mono); font-weight: 400; font-size: 26px; letter-spacing: -.03em; margin: 0 0 18px; color: #fff; }
.doc h2 .n { font-size: 13px; color: var(--faint); letter-spacing: .1em; flex: none; }
.doc h2 .t { min-width: 0; }
.doc p, .doc li { color: var(--ink-2); font-size: 15.5px; line-height: 1.75; }
.doc p { margin: 0 0 14px; }
.doc p b, .doc li b { color: #fff; font-weight: 500; }
.doc ul { padding-left: 18px; margin: 0; }
.doc li { margin-bottom: 10px; }
.tbl { overflow-x: auto; margin: 6px 0 18px; border: 1px solid var(--line-2); border-radius: 14px; background: rgba(10,10,12,.6); }
.tbl table { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-family: var(--mono); font-weight: 400; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); padding: 12px 16px; border-bottom: 1px solid var(--line-2); }
.tbl td { padding: 13px 16px; border-bottom: 1px solid var(--line); color: var(--ink-2); vertical-align: top; line-height: 1.55; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td b { color: #fff; font-weight: 500; font-family: var(--mono); white-space: nowrap; }
.split-bar { display: flex; height: 46px; border-radius: 12px; overflow: hidden; margin: 8px 0 16px; border: 1px solid var(--line-2); }
.split-bar i { flex: var(--w) 0 0; display: flex; align-items: center; justify-content: center; font-style: normal; font-family: var(--mono); font-size: 12.5px; min-width: 0; white-space: nowrap; }
.split-bar i:nth-child(1) { background: linear-gradient(180deg, #fff, #cfcfd6); color: #0a0a0b; }
.split-bar i:nth-child(2) { background: linear-gradient(180deg, #c4c4cc, #9a9aa3); color: #0a0a0b; }
.split-bar i:nth-child(3) { background: #5d5d66; color: #fff; }
.split-bar i:nth-child(4) { background: #2e2e35; color: #fff; }
.split-bar b { font-weight: 500; }
.example { border: 1px solid var(--line-2); border-radius: 14px; padding: 16px 18px; margin: 6px 0 18px; background: rgba(0,0,0,.4); }
.example .kicker { margin-bottom: 12px; }
.example dl { margin: 0; display: grid; gap: 7px; }
.example dl div { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); }
.example dd { margin: 0; font-family: var(--mono); color: var(--ink-2); }
.example .tot { border-top: 1px dashed var(--line-2); padding-top: 8px; }
.example .tot dt, .example .tot dd { color: #fff; }
.doc-foot { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; padding-top: 30px; border-top: 1px solid var(--line); margin-top: 6px; }
@media (max-width: 980px) {
  .paper { grid-template-columns: 1fr; padding: 32px 24px 90px; gap: 18px; }
  .toc { position: static; }
  .toc ol { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .paper { padding: 24px 16px 80px; }
  .doc h1 { font-size: 38px; }
  .doc h2 { font-size: 21px; }
  .doc .lede { font-size: 16px; }
  .toc ol { grid-template-columns: 1fr; }
  .split-bar i { font-size: 10.5px; }
}

/* live agent: harvest panel, harvest log, owner tools */
.harvest-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) auto; gap: 14px; align-items: end; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.harvest-row > div { display: grid; gap: 4px; }
.harvest-row span { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.harvest-row b { font-family: var(--mono); font-weight: 400; font-size: 18px; color: #fff; }
.harvest-row small { color: var(--muted); font-size: 12px; }
.harvest-row .btn-out { height: 40px; padding: 0 18px; }
.hv-log { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 2px; font-family: var(--mono); font-size: 12px; color: var(--ink-2); }
.hv-log li { display: grid; grid-template-columns: 1fr auto auto auto; gap: 16px; padding: 7px 0; border-top: 1px dashed var(--line); }
.hv-log a { color: var(--muted); text-decoration: none; } .hv-log a:hover { color: #fff; }
.owner-tools { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.ot-row { display: flex; gap: 10px; margin-top: 8px; }
.ot-row input { flex: 1; min-width: 0; height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(255,255,255,.03); color: #fff; font-family: var(--mono); font-size: 12.5px; }
@media (max-width: 640px) {
  .harvest-row { grid-template-columns: 1fr 1fr; } .harvest-row .btn-out { grid-column: 1 / -1; }
  .hv-log li { grid-template-columns: 1fr auto; } .ot-row { flex-direction: column; }
}

/* launch form: AI picture generator + creator tax */
.drop-acts { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.drop-acts .or { color: var(--muted); font-size: 12px; }
.gen { margin: -4px 0 16px; padding: 16px; border: 1px solid var(--line-2); border-radius: 14px; background: rgba(255,255,255,.02); }
.gen-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.gen-head b { font-size: 14px; font-weight: 500; }
.gen textarea { width: 100%; box-sizing: border-box; min-height: 74px; padding: 12px; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(0,0,0,.35); color: #fff; font: inherit; font-size: 16px; line-height: 1.45; resize: vertical; }
.gen-styles { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.gen-styles button, .gen-q button { min-height: 34px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--line-2); background: none; color: var(--ink-2); font: inherit; font-size: 12.5px; cursor: pointer; }
.gen-styles button:hover, .gen-q button:hover { color: #fff; border-color: rgba(255,255,255,.35); }
.gen-styles button.on, .gen-q button.on { color: #08080a; background: #e9e9ee; border-color: #e9e9ee; }
.gen-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.gen-q { display: flex; gap: 6px; flex-wrap: wrap; }
.gen-out { display: flex; gap: 16px; align-items: center; margin-top: 14px; }
.gen-out img { width: 132px; height: 132px; border-radius: 14px; object-fit: cover; border: 1px solid var(--line-2); }
.gen-out .gen-acts { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.gen-out small { color: var(--muted); font-size: 12px; }
.gen-note { margin: 12px 0 0; color: var(--muted); font-size: 12px; }
.gen.busy #gen-go { opacity: .6; pointer-events: none; }
.tax-fld select { width: 100%; height: 46px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(0,0,0,.35); color: #fff; font: inherit; font-size: 16px; }
.t-note { margin: 10px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }

/* ---------- where to trade + the buy / sell panel ---------- */
.venues { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; margin-top: 10px; }
.venue { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 11px 0 6px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(255,255,255,.03); font-family: var(--mono); font-size: 12px; color: var(--ink-2); transition: border-color .2s, color .2s, background .2s; }
.venue img { width: 18px; height: 18px; border-radius: 5px; display: block; }
.venue:hover { color: #fff; border-color: rgba(255,255,255,.38); background: rgba(255,255,255,.07); }
.venue.sm { height: 26px; padding: 0 9px 0 5px; gap: 5px; font-size: 11px; }
.venue.sm img { width: 15px; height: 15px; border-radius: 4px; }
.venues.big { justify-content: flex-start; margin-top: 14px; }
.venues.big .venue { height: 40px; padding: 0 16px 0 9px; font-size: 13px; }
.venues.big .venue img { width: 22px; height: 22px; }

.grid .agent .agent-link { display: block; color: inherit; }
.grid .agent .agent-link:focus-visible { outline: 2px solid #fff; outline-offset: -2px; border-radius: 16px; }
.pc-trade { display: flex; gap: 5px; padding: 0 12px 12px; flex-wrap: wrap; }

.trade-row { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: start; }
.trade-row.solo { grid-template-columns: 1fr; }
.trade-row > .proj-card { margin-bottom: 18px; }
.trade-card { padding: 18px 18px 16px; }
.tr-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border: 1px solid var(--line-2); border-radius: 12px; background: rgba(0,0,0,.35); margin-bottom: 16px; }
.tr-tabs button { height: 36px; border: 0; border-radius: 9px; background: none; font-family: var(--mono); font-size: 13px; color: var(--muted); cursor: pointer; transition: background .2s, color .2s; }
.tr-tabs button:hover:not(:disabled) { color: #fff; }
.tr-tabs button.on[data-side="buy"] { background: rgba(126,226,168,.13); color: #7ee2a8; }
.tr-tabs button.on[data-side="sell"] { background: rgba(255,107,94,.13); color: #ff6b5e; }
.tr-tabs button:disabled { cursor: default; opacity: .5; }
.tr-bal { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 7px; font-size: 12px; color: var(--muted); }
.tr-bal button { background: none; border: 0; padding: 0; font-family: var(--mono); font-size: 11.5px; color: var(--ink-2); cursor: pointer; }
.tr-bal button:hover { color: #fff; text-decoration: underline; }
.tr-in { display: flex; align-items: center; gap: 10px; height: 54px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 14px; background: rgba(0,0,0,.4); transition: border-color .2s; }
.tr-in:focus-within { border-color: rgba(255,255,255,.4); }
.tr-in input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; font-family: var(--mono); font-size: 20px; color: #fff; }
.tr-in input::placeholder { color: var(--faint); }
.tr-in span { font-family: var(--mono); font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.tr-chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 10px 0 14px; }
.tr-chips button { height: 32px; border: 1px solid var(--line-2); border-radius: 9px; background: rgba(255,255,255,.03); font-family: var(--mono); font-size: 12px; color: var(--ink-2); cursor: pointer; transition: border-color .2s, color .2s, background .2s; }
.tr-chips button:hover { color: #fff; border-color: rgba(255,255,255,.35); }
.tr-chips button.max { color: #fff; border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.08); font-weight: 500; }
.tr-quote { margin: 0 0 12px; display: grid; gap: 7px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tr-quote div { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; }
.tr-quote dt { color: var(--muted); }
.tr-quote dd { margin: 0; font-family: var(--mono); color: var(--ink-2); text-align: right; }
.tr-quote dd.warn { color: #ffb35e; }
.tr-slip { display: flex; align-items: center; gap: 6px; margin-bottom: 14px; font-size: 12px; color: var(--muted); }
.tr-slip span { margin-right: auto; }
.tr-slip button { height: 26px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 999px; background: none; font-family: var(--mono); font-size: 11.5px; color: var(--muted); cursor: pointer; }
.tr-slip button.on { color: #0a0a0b; background: var(--chrome); border-color: transparent; }
.tr-go { width: 100%; height: 48px; border: 0; border-radius: 999px; background: var(--chrome); color: #0a0a0b; font-family: var(--mono); font-size: 14px; font-weight: 500; cursor: pointer; box-shadow: 0 0 0 1px rgba(126,226,168,.35), 0 10px 30px -12px rgba(126,226,168,.45); transition: transform .15s, box-shadow .2s, opacity .2s; }
.tr-go.sell { box-shadow: 0 0 0 1px rgba(255,107,94,.35), 0 10px 30px -12px rgba(255,107,94,.45); }
.tr-go:hover:not(:disabled) { transform: translateY(-1px); }
.tr-go:disabled { opacity: .45; cursor: default; box-shadow: none; }
.tr-note { margin: 10px 2px 0; font-size: 11.5px; line-height: 1.5; color: var(--faint); }
.tr-grad { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--ink-2); }
.tr-grad b { color: #fff; font-weight: 500; }
@media (max-width: 980px) {
  .trade-row { grid-template-columns: 1fr; }
  .trade-row .trade-card { order: -1; }
}
@media (max-width: 600px) {
  .venues { justify-content: flex-start; }
  .tr-in input { font-size: 18px; }
}

.pair-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; height: 46px; border: 1px solid var(--line-2); border-radius: 12px; background: rgba(0,0,0,.35); }
.pair-seg button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 0; border-radius: 9px; background: none; font-family: var(--mono); font-size: 13px; color: var(--muted); cursor: pointer; transition: background .2s, color .2s; }
.pair-seg button img { width: 16px; height: 16px; }
.pair-seg button:hover { color: #fff; }
.pair-seg button.on { background: linear-gradient(180deg, #fff, #c9c9cf); color: #0a0a0b; }
.pair-seg button.off { opacity: .55; }
.pair-note { display: block; font-style: normal; font-size: 11.5px; line-height: 1.45; color: var(--faint); margin-top: 6px; min-height: 1em; }
.tax-fld select:disabled { opacity: .5; }
.venue-seg button { font-size: 12.5px; }
@media (max-width: 600px) { .venue-seg { height: auto; grid-template-columns: 1fr; } .venue-seg button { height: 38px; } }
.tr-wl.pop { position: static; width: 100%; margin-top: 8px; }
.tr-wl button { display: flex; align-items: center; gap: 10px; width: 100%; height: 40px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 10px; background: rgba(255,255,255,.03); color: #fff; font: 500 13px var(--sans); cursor: pointer; }
.tr-wl button + button { margin-top: 6px; }
.tr-wl img, .tr-wl .wi { width: 20px; height: 20px; border-radius: 5px; }

/* ---------- $DAZZ page + owner page ---------- */
.dz-page .dz-strip { max-width: none; margin: 0 0 18px; }
.dz-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 18px; align-items: start; }
.dz-grid > .proj-card { margin-bottom: 18px; }
.dz-chart .ch-head strong { font-size: 18px; }
.dz-embed { position: relative; height: 420px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #0a0a0c; }
.dz-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
.st-stats { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 0 0 16px; }
.st-stats .rw { min-height: 0; padding: 12px 14px; }
.st-stats .rw b { font-size: 20px; }
.dz-buys .rw b { font-size: 20px; }
.st-row { display: flex; gap: 8px; margin-top: 10px; }
.st-row .btn-out { flex: 1; justify-content: center; height: 40px; }
.pc-rank { font-style: normal; font-family: var(--mono); font-size: 11px; color: var(--faint); margin-left: auto; }
.own-h1 { font-family: var(--mono); font-weight: 400; font-size: 28px; letter-spacing: -.03em; margin: 0 0 10px; color: #fff; }
.own-row { display: grid; grid-template-columns: 1fr auto auto; gap: 16px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.own-row b { display: block; font-weight: 500; color: #fff; }
.own-row small { display: block; font-family: var(--mono); font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.own-row small a { color: var(--ink-2); }
.own-row .btn-out { height: 38px; }
.own-row .btn-out:disabled { opacity: .4; cursor: not-allowed; }
@media (max-width: 980px) { .dz-grid { grid-template-columns: 1fr; } .own-row { grid-template-columns: 1fr; gap: 8px; } }

/* ---- launch form: "Suggest with AI" ---- */
.sug { margin: 0 0 14px; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: 14px; background: rgba(255,255,255,.02); }
.sug-row { display: flex; gap: 10px; align-items: stretch; }
.sug-row input { flex: 1; min-width: 0; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(0,0,0,.35); color: #fff; font: inherit; font-size: 15px; }
.sug-row .btn-out { white-space: nowrap; }
.sug .hint.muted { margin: 10px 0 0; font-size: 12.5px; }
.sug .hint-err { margin-top: 6px; min-height: 0; }
.sug-alts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.sug-alts button { min-height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); background: none; color: var(--ink-2); font: inherit; font-size: 12.5px; cursor: pointer; }
.sug-alts button:hover { color: #fff; border-color: rgba(255,255,255,.35); }
#soc-note { margin: -4px 0 14px; font-size: 12.5px; }
@media (max-width: 640px) { .sug-row { flex-direction: column; } .sug-row input { min-height: 44px; } }

/* ---- transparency page ---- */
.tp-page .tp-title { font-size: clamp(26px, 4vw, 40px); letter-spacing: -.03em; margin: 6px 0 10px; line-height: 1.08; }
.tp-grid { grid-template-columns: repeat(4, 1fr); margin-top: 18px; }
.tp-rules { grid-template-columns: repeat(3, 1fr); }
.tp-log li { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
.tp-page .contracts dt small { color: var(--muted); font-weight: 400; }
.tp-page .contracts dd { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; }
.tp-bal { color: var(--muted); font-family: var(--mono); font-size: 12px; }
.rw b .ok { color: #7ee2a8; } .rw b .bad { color: #ff8a7e; }
@media (max-width: 1000px) { .tp-grid { grid-template-columns: repeat(2, 1fr); } .tp-rules { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .tp-grid, .tp-rules { grid-template-columns: 1fr; } .tp-log li { grid-template-columns: 1fr auto; } }

.tp-jump { display: inline-block; margin-top: 18px; font-family: var(--mono); font-size: 13px; color: var(--ink-2); border-bottom: 1px solid var(--line-2); padding-bottom: 2px; }
.tp-jump:hover { color: #fff; border-color: #fff; }
#verify { scroll-margin-top: 90px; }
.tp-verify { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.tp-verify li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 18px 0; border-top: 1px solid var(--line); }
.tp-verify li:first-child { border-top: 0; padding-top: 4px; }
.tv-n { font-family: var(--mono); font-size: 12px; color: var(--muted); padding-top: 3px; }
.tp-verify b { display: block; font-size: 15.5px; font-weight: 600; color: #fff; letter-spacing: -.01em; }
.tp-verify p { margin: 6px 0 10px; color: var(--muted); font-size: 13.5px; line-height: 1.6; max-width: 760px; }
.tv-links { display: flex; flex-wrap: wrap; gap: 8px; }
.tv-links a { font-family: var(--mono); font-size: 12px; color: var(--ink-2); border: 1px solid var(--line-2); border-radius: 999px; padding: 5px 11px; transition: .15s; }
.tv-links a:hover { color: #fff; border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.04); }
.tv-links a span { font-size: 10px; opacity: .7; }
.tp-log#tp-timelock li { grid-template-columns: 1.4fr 1fr 1fr auto; }
@media (max-width: 640px) { .tp-verify li { grid-template-columns: 1fr; gap: 4px; } .tp-log#tp-timelock li { grid-template-columns: 1fr auto; } }

.test-banner { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; margin: 0 0 16px; padding: 14px 18px; border: 1px solid rgba(255,255,255,.22); border-radius: 14px; background: rgba(255,255,255,.04); font-size: 13.5px; line-height: 1.55; color: var(--ink-2); }
.test-banner b { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #fff; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; padding: 3px 9px; }

/* ---- Telegram Mini App: launch with Proven ---- */
body.tgl { background: #060607; }
.tgl-main { max-width: 520px; margin: 0 auto; padding: 18px 16px calc(28px + env(safe-area-inset-bottom)); display: grid; gap: 12px; }
.tgl-head { display: flex; align-items: center; gap: 12px; padding: 4px 2px 6px; }
.tgl-head b { display: block; font-size: 17px; letter-spacing: -.01em; color: #fff; }
.tgl-head small { display: block; font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: .04em; }
.tgl-card { border: 1px solid var(--line-2); border-radius: 16px; background: #0d0d10; padding: 14px; display: grid; gap: 10px; }
.tgl-id { display: grid; grid-template-columns: 76px 1fr; gap: 12px; align-items: center; }
.tgl-img { width: 76px; height: 76px; border-radius: 14px; border: 1px dashed rgba(255,255,255,.25); display: grid; place-items: center; overflow: hidden; cursor: pointer; font-family: var(--mono); font-size: 11px; color: var(--muted); text-align: center; }
.tgl-img img { width: 100%; height: 100%; object-fit: cover; }
.tgl-names { display: grid; gap: 8px; }
.tgl input, .tgl textarea { width: 100%; box-sizing: border-box; background: #060607; border: 1px solid var(--line-2); border-radius: 10px; color: #fff; font: inherit; font-size: 16px; padding: 10px 12px; }
.tgl #f-ticker { font-family: var(--mono); letter-spacing: .06em; }
.tgl textarea { resize: vertical; min-height: 76px; }
.tgl input:focus, .tgl textarea:focus { outline: none; border-color: rgba(255,255,255,.45); }
.tgl-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; color: var(--ink-2); }
.tgl-row b { color: #fff; font-weight: 500; font-family: var(--mono); font-size: 13px; text-align: right; }
.tgl-row small { color: var(--muted); font-size: 11px; }
.tgl-row.tot { border-top: 1px dashed var(--line-2); padding-top: 10px; }
.tgl-eth { display: flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 13px; color: var(--ink-2); }
.tgl-eth input { width: 110px; text-align: right; padding: 7px 10px; font-size: 15px; }
.tgl-hint { margin: 0; font-size: 12.5px; line-height: 1.55; color: var(--muted); }
.tgl-hint a, .tgl-check a { color: #fff; border-bottom: 1px solid rgba(255,255,255,.4); }
.tgl-ghost { background: none; border: 1px solid var(--line-2); border-radius: 999px; color: var(--ink-2); font-family: var(--mono); font-size: 12px; padding: 9px 12px; cursor: pointer; }
.tgl-check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.tgl-check input { width: 18px; height: 18px; margin-top: 2px; flex: none; }
.tgl-err { margin: 0; min-height: 1em; font-size: 13px; color: #ff8a8a; }
.tgl-go { width: 100%; border: 0; border-radius: 999px; padding: 15px; font: inherit; font-size: 16px; font-weight: 600; color: #060607; background: linear-gradient(180deg, #ffffff, #c9c9d1); cursor: pointer; }
.tgl-go:disabled { opacity: .55; }
.tgl-done { border: 1px solid rgba(255,255,255,.3); border-radius: 16px; padding: 16px; display: grid; gap: 8px; background: rgba(255,255,255,.04); }
.tgl-done b { font-size: 17px; color: #fff; }
.tgl-done p { margin: 0; font-size: 13.5px; color: var(--ink-2); line-height: 1.5; }
.tgl-done code { font-family: var(--mono); font-size: 12px; color: var(--ink-2); word-break: break-all; }
.tgl-links { display: flex; flex-wrap: wrap; gap: 8px; }
.tgl-links a { font-family: var(--mono); font-size: 12px; color: #fff; border: 1px solid var(--line-2); border-radius: 999px; padding: 7px 12px; }
.tgl-foot { margin: 4px 0 0; text-align: center; font-size: 11.5px; color: var(--muted); }

.tgl select { background: #060607; border: 1px solid var(--line-2); border-radius: 10px; color: #fff; font: inherit; font-size: 15px; padding: 8px 10px; }
.tgl-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.tgl-seg button { border: 1px solid var(--line-2); background: none; color: var(--ink-2); border-radius: 10px; padding: 10px; font: inherit; font-size: 14px; cursor: pointer; }
.tgl-seg button.on { border-color: rgba(255,255,255,.55); color: #fff; background: rgba(255,255,255,.06); }
.tgl-seg button[hidden] { display: none; }
.tgl-seg:has(button[hidden]) { grid-template-columns: 1fr; }
.tgl-imgrow { display: flex; }
.tgl-gen { display: grid; gap: 8px; }
.tgl-cap { font-size: 14px; color: #fff; font-weight: 500; }
.tgl-cap small { color: var(--muted); font-weight: 400; font-size: 11px; }
.tgl-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tgl-stats div { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; display: grid; gap: 2px; }
.tgl-stats span { font-size: 11px; color: var(--muted); font-family: var(--mono); letter-spacing: .04em; }
.tgl-stats b { font-size: 15px; color: #fff; font-family: var(--mono); font-weight: 500; }
.tgl-stats small { grid-column: 1 / -1; font-size: 11.5px; color: var(--muted); }
.tgl-tx { font-family: var(--mono); font-size: 12px; color: var(--ink-2); }
.tg-note a { color: #fff; border-bottom: 1px solid rgba(255,255,255,.35); }
@media (max-width: 980px) { .wiz-note.tg-note { display: block; margin: 12px 0 0; } }

.quest-card a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.tgl-quest { margin: 12px 0 0; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 12px; font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.tgl-quest b { color: #fff; }
.tgl-quest a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
