/* ---------- watchlist star ---------- */
.wstar{display:inline-grid;place-items:center;width:30px;height:30px;padding:0;line-height:0;border-radius:999px;color:var(--muted);flex:none;
  background:transparent;border:1px solid transparent;transition:color .15s,border-color .15s,background .15s}
/* A star's points carry its weight low: lifted by a pixel so it reads centred in its circle. */
.wstar svg{width:17px;height:17px;display:block;transform:translateY(-1px)}
.wstar:hover{color:var(--accent);border-color:var(--line)}
.wstar.on{color:var(--warn)}
.wstar:focus-visible{outline:2px solid var(--accent);outline-offset:2px}

/* On a token card: over the thumbnail's top right corner (the badge sits top left). */
.tcardwrap{position:relative;display:flex;min-width:0}
.tcardwrap > .tcard{flex:1;min-width:0}
.tcardwrap:hover > .tcard{border-color:var(--accent)}
.wstar.oncard{position:absolute;top:16px;right:16px;background:rgba(0,0,0,.45);color:#fff;border-color:transparent}
.wstar.oncard.on{color:var(--warn)}
.wstar.oncard:hover{background:rgba(0,0,0,.6)}
@media(max-width:620px){.wstar.oncard{top:12px;right:12px;width:26px;height:26px}.wstar.oncard svg{width:15px;height:15px}}

/* In the token page title and in search results. */
.thero-title .wstar{width:34px;height:34px;border-color:var(--line)}
.srch-opt .wstar{margin-left:auto}

/* Watchlist panels (Portfolio). */
.wlsync{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;font-size:12.5px;color:var(--muted);margin:4px 0 14px}
.wlsync label{display:inline-flex;align-items:center;gap:6px;cursor:pointer}
.wlsync .warntext{color:var(--warn)}
.wlsync button{font-size:12.5px;font-weight:600;color:var(--accent)}
.ptable .wstar{width:28px;height:28px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
/*
 * Creator rewards: the Portfolio's Creator tab (summary tiles, the per-token table that becomes cards under 640 px
 * through the shared `.ptable` rules), the detail drawer, the claim sheet's list (inside `tx.css`'s sheet) and the
 * token page's creator chip. Colours are the tokens of tokens.css; nothing scrolls sideways at 375 px.
 */
.crtab{display:grid;gap:16px}
.tiles.crtiles{margin-bottom:2px;grid-template-columns:repeat(4,minmax(0,1fr))}
.crtiles .tile{position:relative;min-width:0}
.crtiles .tile .v{font-size:34px;overflow-wrap:anywhere}
.crtiles .tile .v .u{font-size:15px;font-weight:500;color:var(--muted);margin-left:7px;letter-spacing:0}
@media(max-width:1100px){
  .tiles.crtiles{grid-template-columns:repeat(2,minmax(0,1fr))}
  .crtiles .tile:nth-child(3){border-left:none}
  .crtiles .tile:nth-child(n+3){border-top:1px solid var(--line)}
}
@media(max-width:760px){.tiles.crtiles{grid-template-columns:1fr}.crtiles .tile{border-left:none}}
@media(max-width:560px){.crtiles .tile .v{font-size:30px}}
.crclaimall{height:36px;margin-top:12px;padding:0 18px}
.crclaimall:disabled{opacity:.45;cursor:not-allowed}
.crtable .crrow{cursor:pointer}
.crtable .pairsub .chip2{padding:0 5px;font-size:11px}
.crtable td:first-child{min-width:240px}
.crpos{color:var(--accent)}
.crrate{font-size:12px}
.crnote{margin:8px 0 0;font-size:12px;line-height:1.45;color:var(--muted);max-width:420px;white-space:normal}
.crnote.placeholder,.crnote.awaiting-graduation{color:var(--warn)}
.crprog{margin-top:6px;display:grid;gap:4px;justify-items:end}
.crprog-bar{width:120px;max-width:100%;height:6px;border-radius:999px;background:var(--surface-3);overflow:hidden}
.crprog-bar i{display:block;height:100%;background:var(--accent);border-radius:999px}
.crfoot{margin-top:4px}
@media(max-width:640px){
  .crtable td:first-child{min-width:0}
  .crprog{justify-items:start}
  .crnote{max-width:none}
}

/* ---------- detail drawer: from the right on desktop, a bottom sheet on phones ---------- */
.crdrawer-ovl{place-items:stretch end;padding:0}
.crdrawer{position:relative;background:var(--raise);border-left:1px solid var(--line);width:min(520px,100%);height:100%;overflow-y:auto;
  padding:22px 24px 32px;outline:none;box-sizing:border-box}
.crdrawer .txgrab{display:none}
.crd-head{display:flex;align-items:center;gap:12px;margin-bottom:16px}
.crd-name{flex:1;min-width:0}
.crd-name h2{font-size:20px;margin:0;overflow-wrap:anywhere}
.crd-figs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:6px 0 10px}
.crd-figs > div{background:var(--surface-2);border-radius:12px;padding:10px 12px;min-width:0}
.crd-figs .k{font-size:11.5px;color:var(--muted)}
.crd-figs .v{font-size:15px;margin-top:2px;overflow-wrap:anywhere}
.crd-claim{height:40px;width:100%;margin:6px 0 4px}
.crd-open{height:40px;width:100%;margin-top:12px}
.crd-sub{font-size:15px;margin:22px 0 10px}
.creatorchart{height:200px}
.crd-legend{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;font-size:12px;color:var(--ink-2);margin-top:8px}
.crd-legend .lg{display:inline-block;width:10px;height:10px;border-radius:3px;margin-right:-4px}
.crd-legend .lg.curve{background:var(--accent)}
.crd-legend .lg.pool{background:var(--muted)}
.crd-payouts{list-style:none;margin:0;padding:0;border:1px solid var(--line);border-radius:12px;overflow:hidden}
.crd-payouts li{display:grid;grid-template-columns:auto 1fr auto auto;gap:10px;align-items:center;padding:10px 12px;border-top:1px solid var(--line-soft);font-size:13px}
.crd-payouts li:first-child{border-top:none}
.crd-payouts .when{color:var(--muted);white-space:nowrap}
.crd-payouts .amt{color:var(--accent);white-space:nowrap}
@media(max-width:900px){
  .crdrawer-ovl{place-items:end stretch}
  .crdrawer{width:100%;height:auto;max-height:88vh;border-left:none;border-top:1px solid var(--line);border-radius:24px 24px 0 0;padding:14px 16px 28px}
  .crdrawer .txgrab{display:block}
}
@media(max-width:420px){
  .crd-payouts li{grid-template-columns:1fr auto;row-gap:2px}
  .crd-payouts .src{grid-column:1}
}

/* ---------- claim sheet: one line per claim ---------- */
.claimlist{list-style:none;margin:12px 0 4px;padding:0;display:grid;gap:8px}
.claimlist li{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:10px;align-items:center;background:var(--surface-2);border-radius:14px;padding:10px 12px}
.claimlist .cl-main{min-width:0}
.claimlist .cl-a{font-size:13.5px}
.claimlist .cl-src{color:var(--muted);font-size:12px}
.claimlist .cl-b{font-size:12px;color:var(--muted);overflow-wrap:anywhere}
.claimlist .cl-v{font-size:13px;white-space:nowrap}
.claimlist li[data-state="accepted"] .cl-v{color:var(--accent)}
.claimlist li[data-state="failed"] .cl-b,.claimlist li[data-state="skipped"] .cl-b{color:var(--warn)}

/* ---------- token page: the creator's chip under the header ---------- */
.crchip{display:inline-flex;align-items:center;gap:8px;flex-wrap:wrap;margin:10px 0 0;padding:6px 8px 6px 12px;border-radius:999px;
  background:var(--accent-dim);color:var(--ink);font-size:13px;max-width:100%;box-sizing:border-box}
.crchip b{color:var(--accent);font-weight:600}
.crchip button{height:28px;padding:0 12px;border-radius:999px}

/* ---------- the account menu's link to the Creator tab ---------- */
.acctlink{display:block;margin:0 20px 12px;padding:10px 12px;border-radius:12px;background:var(--surface-2);color:var(--ink);font-size:13.5px;text-decoration:none}
.acctlink:hover{color:var(--accent)}
.actmenu .acctlink{margin:0 6px 10px}
/* stacked account links (My profile, Creator rewards) sit closer together */
.acctlink + .acctlink{margin-top:-6px}
.walletpick .acctlink{margin:0 16px 12px}

/* ---------- creator identity: avatar, the token page's byline, the public creator page ---------- */
.crav{display:inline-block;flex:none;border-radius:50%;overflow:hidden;vertical-align:middle}
.crav img{width:100%;height:100%;object-fit:cover;display:block}
.crby{display:inline-flex;align-items:center;gap:6px;color:inherit;text-decoration:none}
.crby:hover{color:var(--accent)}
.crby-name{font-weight:500;max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.crprofile{display:grid;gap:18px}
.crp-head{display:flex;gap:18px;align-items:center;min-width:0}
.crp-id{min-width:0}
.crp-id h1{margin:0;font-size:28px;overflow-wrap:anywhere}
.crp-addr{font-size:12px;color:var(--muted);overflow-wrap:anywhere;margin-top:4px}
.crp-x{margin-top:8px;font-size:13.5px}
.crp-x a{color:var(--accent);text-decoration:none}
.crp-record{grid-template-columns:repeat(3,minmax(0,1fr))}
.crp-record .tile .v{font-size:32px}
.crp-record .tile .v .u{font-size:15px;font-weight:500;color:var(--muted);margin-left:7px}
.crp-tokens{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:10px}
.crp-token{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:12px;align-items:center;width:100%;text-align:left;padding:12px 14px;
  border:1px solid var(--line);border-radius:14px;background:var(--raise);color:inherit;cursor:pointer}
.crp-token:hover{border-color:var(--accent)}
.crp-tname{display:grid;min-width:0}
.crp-tname b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.crp-tfig{display:grid;justify-items:end}
@media(max-width:560px){
  .crp-head{flex-direction:column;align-items:flex-start}
  .crp-record{grid-template-columns:1fr}
  .crp-record .tile{border-left:none;border-top:1px solid var(--line)}
  .crp-record .tile:first-child{border-top:none}
  .crp-tokens{grid-template-columns:1fr}
}

/* ---------- the Creator tab's profile strip and editor ---------- */
.crme{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:12px 14px;border:1px solid var(--line);border-radius:16px;background:var(--raise)}
.crme-id{flex:1;min-width:0}
.crme-id b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.crme .ghost{height:36px;padding:0 14px}
.crme-link{display:inline-flex;align-items:center;border:1px solid var(--line);border-radius:999px;color:var(--ink);text-decoration:none;font-size:13.5px;background:none}
.crme-link:hover{border-color:var(--accent);color:var(--accent)}
@media(max-width:560px){
  .crme-id{flex:1 1 calc(100% - 56px)}
  .crme .ghost,.crme .crme-link{flex:1;justify-content:center}
}
.prform{display:grid;gap:12px;margin-top:8px}
.prform label{display:grid;gap:6px;font-size:13px;color:var(--ink-2)}
.prform input[type=text]{height:40px;border-radius:12px;border:1px solid var(--line);background:var(--surface-2);color:var(--ink);padding:0 12px;font:inherit}
.prform .prpic{display:flex;align-items:center;gap:12px}
.prform .hint{margin:0}
.prform .prmode{display:grid;gap:6px;font-size:13px;color:var(--ink-2)}
.prform .prkns{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0;padding:10px 12px;border-radius:12px;background:var(--surface-2);border:1px solid var(--line)}
.prform .prkns .hint{flex-basis:100%}
