/* Agentry: the roster (browse), your reports, creator profile, standings, earnings, account.
   Prefixes: pg- shared, br- browse, rp- reports, cr- creator, st- standings, ea- earnings, ac- account. */

/* ---------- shared ---------- */
.pg-head { position: relative; margin: 10px 0 30px; }
.pg-head h1, .br-head h1 { font-size: clamp(2rem, 5.6vw, 3.4rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.02; }
.pg-head .lede { margin: 14px 0 0; }
.pg-section { margin: 48px 0 0; }
.pg-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.pg-section-head h2 { font-size: clamp(1.25rem, 3vw, 1.65rem); font-weight: 800; letter-spacing: -0.025em; }
.pg-small { font: 500 0.72rem/1.2 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-2, #3d3c57); margin: 0 0 10px; }

/* the node: a citron dot with an ink ring, marks live and top places */
.pg-node { position: relative; display: inline-block; flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--citron, #d8f34a); box-shadow: 0 0 0 1.5px var(--ink, #15142b); }

/* square portrait tile: the agent's emblem on its category colour */
.pg-tile { flex: none; width: 52px; height: 52px; border-radius: 13px; background: var(--cat, #4b3af0); color: #fff; display: grid; place-items: center; position: relative; overflow: hidden; }
.pg-tile svg { width: 78%; height: 78%; }
.pg-tile .glyph { width: 58%; height: 58%; }
.pg-tile-s { width: 40px; height: 40px; border-radius: 10px; }
.pg-tile-l { width: 68px; height: 68px; border-radius: 17px; }
.pg-tile-person { background: var(--violet, #4b3af0); font: 800 1.05rem var(--sans); }

.pg-pill { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; height: 26px; padding: 0 11px; border-radius: 999px; font: 500 0.68rem/1 var(--mono); text-transform: uppercase; letter-spacing: 0.07em; background: var(--bg-2, #eaeaf1); color: var(--ink-2, #3d3c57); }
.pg-pill.pg-done { background: #e1f4ec; color: #0b6b4a; }
.pg-pill.pg-failed { background: #fbe6e3; color: #a8322a; }
.pg-pill.pg-running { background: var(--ink, #15142b); color: #fff; }
.pg-pill.pg-draft { background: var(--bg-2, #eaeaf1); color: var(--muted, #6c6b85); }
.pg-running .pg-node { box-shadow: none; }
.pg-running .pg-node::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid var(--citron, #d8f34a); opacity: 0; }
.js .pg-running .pg-node::after { animation: pg-ping 1.8s var(--ease, ease-out) infinite; }
@keyframes pg-ping { 0% { transform: scale(1); opacity: 0.9; } 100% { transform: scale(2.6); opacity: 0; } }

/* folder tab on a card's top edge */
.cr-tab, .ea-tab { position: absolute; top: -23px; left: 18px; height: 24px; padding: 0 12px; display: inline-flex; align-items: center; border-radius: 9px 9px 0 0; background: var(--surface, #fff); border: 1px solid var(--line, #dcdce7); border-bottom: 0; font: 500 0.66rem/1 var(--mono); text-transform: uppercase; letter-spacing: 0.09em; color: var(--ink-2, #3d3c57); transition: transform 0.25s var(--ease, ease); }
.cr-tab::before, .ea-tab::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--citron, #d8f34a); box-shadow: 0 0 0 1px var(--ink, #15142b); margin-right: 7px; }

/* tables */
.pg-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; background: var(--surface, #fff); border: 1px solid var(--line, #dcdce7); border-radius: 14px; box-shadow: 0 1px 2px rgba(21, 20, 43, 0.06); }
.pg-table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
.pg-table th, .pg-table td { text-align: left; padding: 13px 18px; border-bottom: 1px solid var(--line, #dcdce7); vertical-align: top; }
.pg-table thead th { font: 500 0.66rem var(--mono); text-transform: uppercase; letter-spacing: 0.09em; color: var(--muted, #6c6b85); background: var(--bg, #f4f4f8); border-bottom: 1px solid var(--line, #dcdce7); padding-top: 11px; padding-bottom: 11px; }
.pg-table tbody tr:last-child td { border-bottom: 0; }
.pg-table tbody tr { transition: background-color 0.15s; }
.pg-table tbody tr:hover { background: #fafaff; }
.pg-table td small { display: block; color: var(--muted, #6c6b85); font-size: 0.78rem; line-height: 1.4; margin-top: 2px; }
.pg-table td a { font-weight: 650; text-decoration: none; color: var(--violet-ink, #3527c4); }
.pg-table td a:hover { text-decoration: underline; text-underline-offset: 3px; }
.pg-table .num { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pg-table .neg { color: #a8322a; }
.pg-table .pos { color: #0b6b4a; }
.pg-table tfoot td { border-top: 1px solid var(--line-2, #c9c9d8); border-bottom: 0; background: var(--bg, #f4f4f8); font: 500 0.78rem var(--mono); text-transform: uppercase; letter-spacing: 0.06em; }
.pg-table tfoot .num { text-transform: none; font-size: 0.92rem; color: var(--ink, #15142b); }
.show-s { display: none !important; }

/* ---------- browse: the roster ---------- */
.br-head { margin: 10px 0 26px; max-width: 46rem; }
.br-head h1 em { font-style: italic; font-weight: 700; color: var(--violet, #4b3af0); }
.br-head .lede { margin: 14px 0 0; }
.br-bar { display: flex; gap: 10px; align-items: stretch; flex-wrap: wrap; }
.br-find { position: relative; flex: 1 1 260px; min-width: 0; }
.br-find svg { position: absolute; left: 15px; top: 50%; width: 19px; height: 19px; margin-top: -9.5px; color: var(--muted, #6c6b85); pointer-events: none; }
.br-find input { width: 100%; height: 48px; padding: 0 16px 0 44px; border-radius: 999px; border: 1px solid var(--line-2, #c9c9d8); background: var(--surface, #fff); font-size: 1rem; transition: border-color 0.15s, box-shadow 0.15s; }
.br-find input:focus { outline: none; border-color: var(--violet, #4b3af0); box-shadow: 0 0 0 3px var(--violet-soft, #e9e6ff); }
.br-bar select { flex: 0 0 auto; width: auto; height: 48px; padding: 0 38px 0 16px; border-radius: 999px; border: 1px solid var(--line-2, #c9c9d8); background: var(--surface, #fff) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%2315142b' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 16px center; -webkit-appearance: none; appearance: none; font-weight: 600; cursor: pointer; }
.br-bar select:focus { outline: none; border-color: var(--violet, #4b3af0); box-shadow: 0 0 0 3px var(--violet-soft, #e9e6ff); }
.br-bar .btn { flex: 0 0 auto; width: auto; height: 48px; }
.br-pills { display: flex; gap: 8px; margin: 18px 0 6px; flex-wrap: wrap; }
.br-pill { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px 0 12px; border-radius: 999px; border: 1px solid var(--line, #dcdce7); background: var(--surface, #fff); text-decoration: none; font-weight: 650; font-size: 0.9rem; transition: transform 0.2s var(--ease, ease), border-color 0.15s, background-color 0.15s; }
.br-pill i { width: 10px; height: 10px; border-radius: 50%; background: var(--cat); flex: none; }
.br-pill span { font: 500 0.72rem var(--mono); color: var(--muted, #6c6b85); font-variant-numeric: tabular-nums; }
.br-pill:hover { transform: translateY(-2px); border-color: var(--cat); }
.br-pill.on { background: var(--ink, #15142b); border-color: var(--ink, #15142b); color: #fff; }
.br-pill.on i { box-shadow: 0 0 0 2px #fff; }
.br-pill.on span { color: var(--citron, #d8f34a); }
.br-count { margin: 14px 0 18px; min-height: 1.5em; color: var(--muted, #6c6b85); font-size: 0.9rem; }
.br-count strong { color: var(--ink, #15142b); font-family: var(--mono); }
.br-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 22px 18px; padding-top: 12px; }

/* ---------- your reports ---------- */
.rp-tally { display: flex; gap: 12px; margin: 22px 0 0; flex-wrap: wrap; }
.rp-tally > div { min-width: 116px; padding: 12px 18px; background: var(--surface, #fff); border: 1px solid var(--line, #dcdce7); border-radius: 14px; }
.rp-tally dt { font: 500 0.64rem var(--mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted, #6c6b85); }
.rp-tally dd { margin: 3px 0 0; font: 600 1.5rem/1.1 var(--mono); font-variant-numeric: tabular-nums; }
.rp-tally dd small { font-size: 0.7rem; color: var(--muted, #6c6b85); }
.rp-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.rp-row { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto auto; gap: 4px 16px; align-items: center; padding: 12px 18px 12px 12px; background: var(--surface, #fff); border: 1px solid var(--line, #dcdce7); border-radius: 14px; text-decoration: none; box-shadow: 0 1px 2px rgba(21, 20, 43, 0.05); transition: transform 0.2s var(--ease, ease), border-color 0.15s, box-shadow 0.2s; }
.rp-row:hover { transform: translateY(-2px); border-color: var(--violet, #4b3af0); box-shadow: 0 12px 28px -18px rgba(21, 20, 43, 0.35); }
.rp-name { min-width: 0; display: grid; gap: 2px; }
.rp-name strong { font-weight: 700; letter-spacing: -0.01em; }
.rp-name small { color: var(--muted, #6c6b85); font-size: 0.85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp-meta { display: grid; justify-items: end; gap: 2px; min-width: 76px; text-align: right; }
.rp-cost { font: 600 0.92rem var(--mono); font-variant-numeric: tabular-nums; }
.rp-when, .rp-shared { font: 500 0.7rem var(--mono); color: var(--muted, #6c6b85); }
.rp-shared { color: var(--violet-ink, #3527c4); text-transform: uppercase; letter-spacing: 0.06em; }

/* ---------- creator profile ---------- */
.cr-card { position: relative; margin: 34px 0 0; padding: 28px; background: var(--surface, #fff); border: 1px solid var(--line, #dcdce7); border-radius: 0 14px 14px 14px; box-shadow: 0 1px 2px rgba(21, 20, 43, 0.06), 0 12px 32px -18px rgba(21, 20, 43, 0.28); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 40px; align-items: center; }
.cr-main { display: flex; gap: 22px; align-items: center; min-width: 0; }
.cr-avatar, .cr-main .avatar { flex: none; width: 92px; height: 92px; border-radius: 24px; display: grid; place-items: center; background: var(--violet, #4b3af0); color: #fff; font: 800 2.3rem var(--sans); }
.cr-main svg.cr-avatar { display: block; }
.cr-who { min-width: 0; }
.cr-who h1 { font-weight: 800; letter-spacing: -0.03em; overflow-wrap: anywhere; }
.cr-handle { margin: 6px 0 0; font: 500 0.82rem var(--mono); color: var(--muted, #6c6b85); }
.cr-who .bio { margin: 10px 0 0; max-width: 34rem; color: var(--ink-2, #3d3c57); }
.bio-form { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.bio-form input { flex: 1 1 220px; min-width: 0; height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-2, #c9c9d8); background: var(--bg, #f4f4f8); }
.bio-form input:focus { outline: none; border-color: var(--violet, #4b3af0); box-shadow: 0 0 0 3px var(--violet-soft, #e9e6ff); }
.cr-stats { display: flex; gap: 10px; margin: 0; }
.cr-stats > div { min-width: 92px; padding: 12px 16px; border-radius: 12px; background: var(--bg, #f4f4f8); border: 1px solid var(--line, #dcdce7); }
.cr-stats dt { font: 500 0.62rem var(--mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted, #6c6b85); }
.cr-stats dd { margin: 3px 0 0; font: 600 1.6rem/1.1 var(--mono); font-variant-numeric: tabular-nums; }
.cr-card:hover .cr-tab { transform: translateY(-2px); }

/* ---------- standings ---------- */
.st-podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: end; margin: 0 0 34px; }
.st-pod { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 22px 14px 18px; text-align: center; text-decoration: none; background: var(--surface, #fff); border: 1px solid var(--line, #dcdce7); border-radius: 16px; box-shadow: 0 1px 2px rgba(21, 20, 43, 0.06); transition: transform 0.25s var(--ease, ease), box-shadow 0.25s; }
.st-pod:hover { transform: translateY(-3px); box-shadow: 0 16px 34px -20px rgba(21, 20, 43, 0.4); }
.st-pod strong { font-size: 1.05rem; letter-spacing: -0.015em; line-height: 1.2; overflow-wrap: anywhere; }
.st-pod-no { display: inline-flex; align-items: center; gap: 7px; font: 500 0.7rem var(--mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted, #6c6b85); }
.st-pod-val { font: 600 1.3rem var(--mono); font-variant-numeric: tabular-nums; }
.st-pod-val small { font-size: 0.68rem; color: var(--muted, #6c6b85); font-weight: 500; }
.pod-1 { padding-top: 32px; padding-bottom: 26px; background: var(--ink, #15142b); border-color: var(--ink, #15142b); color: #fff; }
.pod-1 .st-pod-no, .pod-1 .st-pod-val small { color: rgba(255, 255, 255, 0.65); }
.pod-1 .st-cat { color: rgba(255, 255, 255, 0.82); }
.pod-1 .pg-node { box-shadow: 0 0 0 1.5px #fff; }
.pod-1::before { content: ""; position: absolute; left: 50%; top: -1px; width: 56px; height: 4px; margin-left: -28px; border-radius: 0 0 4px 4px; background: var(--citron, #d8f34a); }
.pod-1 .pg-tile { box-shadow: 0 0 0 3px var(--citron, #d8f34a); }

.st-cat { display: inline-flex; align-items: center; gap: 6px; font: 500 0.64rem/1 var(--mono); text-transform: uppercase; letter-spacing: 0.07em; color: var(--ink-2, #3d3c57); }
.st-cat i { width: 8px; height: 8px; border-radius: 50%; background: var(--cat); }

.st-seg { display: none; }
.st-boards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; align-items: start; }
.st-board { background: var(--surface, #fff); border: 1px solid var(--line, #dcdce7); border-radius: 16px; box-shadow: 0 1px 2px rgba(21, 20, 43, 0.06); overflow: hidden; }
.st-top-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 18px 20px 14px; border-bottom: 1px solid var(--line, #dcdce7); }
.st-top-row h2 { font-size: 1.1rem; font-weight: 800; letter-spacing: -0.02em; }
.st-col { font: 500 0.64rem var(--mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted, #6c6b85); }
.st-rows { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.st-rows li { display: grid; grid-template-columns: 38px 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 20px; border-bottom: 1px solid var(--line, #dcdce7); transition: background-color 0.15s; }
.st-rows li:last-child { border-bottom: 0; }
.st-rows li:hover { background: #fafaff; }
.st-rows li.is-top { background: linear-gradient(90deg, rgba(216, 243, 74, 0.2), transparent 55%); }
.st-rank { display: inline-flex; align-items: center; gap: 5px; font: 600 0.88rem var(--mono); font-variant-numeric: tabular-nums; color: var(--muted, #6c6b85); }
.st-rank.st-top { color: var(--ink, #15142b); }
.st-rank .pg-node { width: 7px; height: 7px; box-shadow: 0 0 0 1.2px var(--ink, #15142b); }
.st-name { min-width: 0; display: grid; gap: 3px; }
.st-name a { text-decoration: none; }
.st-name strong { display: block; font-weight: 700; letter-spacing: -0.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-name a:hover strong { color: var(--violet-ink, #3527c4); }
.st-name small { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; min-width: 0; }
.st-by { font: 500 0.7rem var(--mono); color: var(--muted, #6c6b85); text-decoration: none; }
a.st-by:hover { color: var(--violet-ink, #3527c4); }
.st-val { display: grid; justify-items: end; font: 600 1.05rem/1.1 var(--mono); font-variant-numeric: tabular-nums; }
.st-val small { font: 500 0.66rem var(--mono); color: var(--muted, #6c6b85); }
.st-empty { margin: 0; padding: 26px 20px 30px; color: var(--muted, #6c6b85); }
.st-fresh-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 12px; }
.st-fresh-list a { display: flex; gap: 12px; align-items: center; padding: 12px; background: var(--surface, #fff); border: 1px solid var(--line, #dcdce7); border-radius: 14px; text-decoration: none; transition: transform 0.2s var(--ease, ease), border-color 0.15s; }
.st-fresh-list a:hover { transform: translateY(-2px); border-color: var(--violet, #4b3af0); }
.st-fresh-list strong { display: block; font-weight: 700; }
.st-fresh-list small { color: var(--muted, #6c6b85); font-size: 0.8rem; }

/* ---------- earnings ---------- */
.ea-stats { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 16px; margin-top: 46px; }
.ea-stat, .ac-bal { position: relative; padding: 24px 24px 20px; background: var(--surface, #fff); border: 1px solid var(--line, #dcdce7); border-radius: 0 14px 14px 14px; box-shadow: 0 1px 2px rgba(21, 20, 43, 0.06); }
.ea-stat p, .ac-bal p { margin: 0; }
.ea-stat .muted, .ac-bal .muted { font-size: 0.86rem; margin-top: 8px; }
.ea-big, .ac-big { font: 600 clamp(2.1rem, 5vw, 3rem)/1 var(--mono); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.ea-big small, .ac-big small { font-size: 0.4em; color: var(--muted, #6c6b85); margin-left: 6px; letter-spacing: 0; }
.ea-main, .ac-main { background: var(--ink, #15142b); border-color: var(--ink, #15142b); color: #fff; }
.ea-main .ea-tab, .ac-main .ea-tab { background: var(--ink, #15142b); border-color: var(--ink, #15142b); color: #fff; }
.ea-main .muted, .ac-main .muted, .ea-main .ea-big small, .ac-main .ac-big small { color: rgba(255, 255, 255, 0.66); }
.ea-main .ea-big, .ac-main .ac-big { color: var(--citron, #d8f34a); }
.ea-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 16px; margin-top: 16px; align-items: stretch; }
.ea-chart { margin: 0; padding: 22px 22px 16px; background: var(--surface, #fff); border: 1px solid var(--line, #dcdce7); border-radius: 14px; box-shadow: 0 1px 2px rgba(21, 20, 43, 0.06); position: relative; }
.ea-chart figcaption { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; font-weight: 700; }
.ea-chart figcaption .muted { font: 500 0.7rem var(--mono); text-transform: uppercase; letter-spacing: 0.08em; }
.ea-chart svg { width: 100%; height: auto; overflow: visible; }
.ea-base { stroke: var(--line-2, #c9c9d8); stroke-width: 1.5; }
.ea-bar rect { fill: var(--violet, #4b3af0); }
.ea-bar:hover rect { fill: var(--violet-ink, #3527c4); }
.ea-zero { fill: var(--line-2, #c9c9d8); }
.ea-node { fill: var(--citron, #d8f34a); stroke: var(--ink, #15142b); stroke-width: 2; }
.ea-val { font: 600 14px var(--mono); fill: var(--ink, #15142b); }
.ea-axis { display: flex; justify-content: space-between; margin-top: 8px; font: 500 0.68rem var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted, #6c6b85); }
.ea-chart-empty { margin: 0; color: var(--muted, #6c6b85); font-size: 0.9rem; }
.ea-chart:has(.ea-chart-empty) { padding-block: 16px; align-self: start; }
.ea-chart:has(.ea-chart-empty) figcaption { margin-bottom: 8px; }
.js .ea-chart.reveal .ea-bar { transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(0); transition: transform 0.6s var(--ease, ease); transition-delay: calc(var(--k, 0) * 35ms + 150ms); }
.js .ea-chart.reveal.in .ea-bar { transform: none; }
.ea-move { position: relative; margin-top: 23px; padding: 26px 22px 20px; background: var(--surface, #fff); border: 1px solid var(--line, #dcdce7); border-radius: 0 14px 14px 14px; box-shadow: 0 1px 2px rgba(21, 20, 43, 0.06); align-self: start; }
.ea-move label { display: block; font-weight: 700; margin-bottom: 10px; }
.ea-move .row { display: flex; gap: 8px; }
.ea-move input { flex: 1; min-width: 0; height: 46px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-2, #c9c9d8); background: var(--bg, #f4f4f8); font: 500 1.05rem var(--mono); }
.ea-move input:focus { outline: none; border-color: var(--violet, #4b3af0); box-shadow: 0 0 0 3px var(--violet-soft, #e9e6ff); }
.ea-move .btn { height: 46px; }
.ea-hint, .ea-move .note { margin: 10px 0 0; font-size: 0.84rem; color: var(--muted, #6c6b85); }
.ea-move .form-error { margin-top: 10px; }

/* ---------- account ---------- */
.ac-top { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 46px; }
.ac-note { margin: 22px 0 0; padding: 14px 18px; border-radius: 12px; background: var(--violet-soft, #e9e6ff); color: var(--ink-2, #3d3c57); font-size: 0.92rem; }
.ac-note strong { color: var(--violet-ink, #3527c4); margin-right: 8px; }
.ac-kind { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; font: 500 0.68rem/1 var(--mono); text-transform: uppercase; letter-spacing: 0.06em; background: var(--bg-2, #eaeaf1); color: var(--ink-2, #3d3c57); }
.ac-grant, .ac-admin_grant, .ac-refund { background: #e1f4ec; color: #0b6b4a; }
.ac-run_charge { background: var(--violet-soft, #e9e6ff); color: var(--violet-ink, #3527c4); }
.ac-creator_share, .ac-transfer_in { background: #f1f9c8; color: #4a5a00; }
.ac-ledger td small { margin-top: 5px; }
.ac-signout { padding-top: 28px; border-top: 1px solid var(--line, #dcdce7); }

/* ---------- motion ---------- */
.rp-row:hover, .st-pod:hover { will-change: transform; }
@media (prefers-reduced-motion: reduce) {
  .rp-row, .st-pod, .br-pill, .st-fresh-list a, .cr-tab, .ea-tab { transition: none; }
  .rp-row:hover, .st-pod:hover, .br-pill:hover, .st-fresh-list a:hover { transform: none; }
  .js .pg-running .pg-node::after { animation: none; }
  .js .ea-chart.reveal .ea-bar { transform: none; transition: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .ea-stats { grid-template-columns: 1fr 1fr; }
  .ea-main { grid-column: 1 / -1; }
  .ea-grid { grid-template-columns: 1fr; }
  .cr-card { grid-template-columns: 1fr; }
  .cr-stats > div { flex: 1; }
}
@media (max-width: 760px) {
  .hide-s { display: none !important; }
  .show-s { display: block !important; }
  .st-boards { grid-template-columns: 1fr; }
  .js .st-seg { display: flex; gap: 4px; padding: 4px; margin: 0 0 16px; background: var(--bg-2, #eaeaf1); border-radius: 999px; }
  .js .st-seg button { flex: 1; min-height: 40px; padding: 0 4px; border: 0; border-radius: 999px; background: transparent; font-weight: 650; font-size: 0.82rem; cursor: pointer; color: var(--ink-2, #3d3c57); transition: background-color 0.2s, color 0.2s; }
  .js .st-seg button[aria-selected="true"] { background: var(--ink, #15142b); color: #fff; }
  .js .st-board { display: none; }
  .js .st-board.on { display: block; }
  .st-podium { grid-template-columns: 1fr; gap: 10px; }
  .pod-1 { order: 1; } .pod-2 { order: 2; } .pod-3 { order: 3; }
  .st-pod, .pod-1 { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; grid-template-areas: "tile name val" "tile cat val"; column-gap: 14px; row-gap: 2px; align-items: center; text-align: left; padding: 14px 16px; }
  .pod-1 { padding: 16px; }
  .st-pod .pg-tile { grid-area: tile; width: 52px; height: 52px; border-radius: 13px; }
  .st-pod strong { grid-area: name; }
  .st-pod .st-cat { grid-area: cat; }
  .st-pod-val { grid-area: val; }
  .st-pod-no { position: absolute; top: 8px; right: 14px; font-size: 0.62rem; display: none; }
  .pod-1::before { left: 26px; top: -1px; margin: 0; }
  .ac-top { grid-template-columns: 1fr; gap: 36px; }
  .rp-row { grid-template-columns: 44px minmax(0, 1fr) auto; gap: 2px 12px; padding: 12px; }
  .rp-row .pg-tile { width: 44px; height: 44px; border-radius: 11px; grid-row: 1 / 3; }
  .rp-name { grid-column: 2; }
  .rp-row .pg-pill { grid-column: 3; grid-row: 1; }
  .rp-meta { grid-column: 2 / -1; grid-row: 2; display: flex; gap: 12px; justify-content: flex-start; align-items: baseline; text-align: left; min-width: 0; }
  .rp-meta .rp-when { order: 3; margin-left: auto; }
  .pg-table th, .pg-table td { padding: 11px 12px; }
}
@media (max-width: 560px) {
  .rp-tally { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .rp-tally > div { min-width: 0; padding: 10px 12px; }
  .br-bar .btn { display: none; }
  .br-bar select { flex: 1 1 100%; }
  .br-pills { flex-wrap: nowrap; overflow-x: auto; margin-inline: -20px; padding: 2px 20px 6px; scrollbar-width: none; }
  .br-pills::-webkit-scrollbar { display: none; }
  .br-pill { flex: none; }
  .br-grid { gap: 18px; }
  .cr-card { padding: 22px 18px; }
  .cr-main { gap: 16px; }
  .cr-avatar, .cr-main .avatar { width: 68px; height: 68px; border-radius: 18px; font-size: 1.7rem; }
  .cr-stats > div { min-width: 0; padding: 10px 12px; }
  .ea-stats { grid-template-columns: 1fr; gap: 36px; }
  .ac-top { gap: 36px; }
  .ea-big, .ac-big { font-size: 2.3rem; }
  .st-rows li { grid-template-columns: 30px 36px minmax(0, 1fr) auto; gap: 10px; padding: 11px 14px; }
  .st-top-row { padding: 16px 14px 12px; }
  .ea-chart { padding: 18px 14px 12px; }
}
@media (max-width: 340px) {
  .rp-tally > div { min-width: 0; flex: 1; padding: 10px 12px; }
  .st-rows li { grid-template-columns: 26px 32px minmax(0, 1fr) auto; gap: 8px; }
}

@media (max-width: 560px) {
  .cr-main { flex-direction: column; align-items: flex-start; gap: 14px; }
  .cr-who { width: 100%; }
}
