/* Additions for the live app on top of style.css (kept separate so the design file stays GPT's). */
.detail-tabs button.selected{color:#793098;text-decoration:underline;text-underline-offset:10px;font-weight:600}
.asset-picker{display:grid;gap:6px;margin-top:8px}
.asset-picker .asset-row{width:100%;text-align:left;cursor:pointer}
.online{color:#17b8a6;font-style:normal;font-size:9px;vertical-align:middle}
.load-more{display:block;margin:16px auto}
.inline-editor.has-intent .inline-transfer{display:block}
a.token-card{display:block;color:inherit;text-decoration:none}
.avatar.large{width:64px;height:64px;font-size:18px}
.avatar.profile-photo{width:96px;height:96px;font-size:28px}
.conversation-row .unread{margin-left:auto}
#your-communities .community-short small{display:none}
.review-card{margin:10px 0}


/* ---- lists: 10-15 rows visible, then internal scroll with a design-coloured thin scrollbar that never covers buttons ---- */
.scroll-panel{overflow-y:auto;scrollbar-width:thin;scrollbar-color:#d9cfe3 transparent;scrollbar-gutter:stable;padding-right:10px;margin-right:-4px}
.scroll-panel::-webkit-scrollbar{width:6px}
.scroll-panel::-webkit-scrollbar-track{background:transparent}
.scroll-panel::-webkit-scrollbar-thumb{background:#d9cfe3;border-radius:6px}
.scroll-panel::-webkit-scrollbar-thumb:hover{background:var(--purple)}
.community-list{max-height:640px;padding-left:6px;margin-left:-6px}
.directory-list{max-height:min(1000px,calc(100vh - 240px));padding-left:8px;margin-left:-8px}
.directory-list .trending-row:last-child{border-bottom:0}
#community-tab-content .members-list,#profile-tab-content .members-list{max-height:720px}
#conversation-rows{max-height:calc(100vh - 320px)}
#chat-history{scrollbar-width:thin;scrollbar-color:#d9cfe3 transparent}
#notification-list{max-height:calc(100vh - 160px)}
.trending-row:hover{box-shadow:0 0 0 6px #f2edf5}

/* ---- stock next to the coin: a real badge, not a 12px speck ---- */
.pair-mark{position:relative;display:inline-block;flex-shrink:0;width:34px;height:34px}
.pair-mark .coin{width:100%;height:100%}
.pair-mark .stock-badge{position:absolute;right:-6px;bottom:-5px;width:19px;height:19px;padding:2px;background:#fff;border:1px solid var(--line);border-radius:50%;object-fit:contain;box-shadow:0 1px 2px #0000000f}
.post-context .pair-mark{width:22px;height:22px}
.post-context .pair-mark .stock-badge{width:13px;height:13px;right:-5px;bottom:-4px;padding:1px}
.stock-inline .stock-logo,.stock-tag .stock-logo,.token-pair .stock-logo{width:18px;height:18px;padding:2px;background:#fff;border:1px solid var(--line);border-radius:5px}
.stock-tag{padding:3px 8px 3px 4px}
.trending-row small.stock-inline{margin-top:6px;flex-wrap:wrap;row-gap:2px}
.trending-row .name{padding-right:6px}
.community-list .stock-inline .stock-logo{display:none}
.community-list .trending-row small{margin-top:5px}

/* bigger stock marks next to memes (user request): badges and pair labels */
.pair-mark .stock-badge{width:24px;height:24px;right:-9px;bottom:-7px;padding:3px}
.post-context .pair-mark .stock-badge{width:16px;height:16px;right:-7px;bottom:-5px;padding:2px}
.stock-inline .stock-logo,.stock-tag .stock-logo,.token-pair .stock-logo{width:22px;height:22px;padding:3px}
.machine-pair>.stock-logo{width:28px!important;height:28px!important;padding:3px;background:#fff;border:1px solid var(--line);border-radius:7px}
.token-card .token-pair .stock-logo{width:24px;height:24px}
.trending-row{gap:14px}
.directory .trending-row .pair-mark{width:40px;height:40px}
.directory .trending-row .pair-mark .stock-badge{width:26px;height:26px}

/* even bigger stock marks (user: "ЕЩЁ УВЕЛИЧЬ") */
.pair-mark{width:42px;height:42px}
.pair-mark .stock-badge{width:30px;height:30px;right:-12px;bottom:-9px;padding:3px}
.post-context .pair-mark{width:26px;height:26px}
.post-context .pair-mark .stock-badge{width:20px;height:20px;right:-9px;bottom:-7px;padding:2px}
.directory .trending-row .pair-mark{width:48px;height:48px}
.directory .trending-row .pair-mark .stock-badge{width:34px;height:34px;right:-14px;bottom:-10px}
.trending-row{gap:20px}
.trending-row .name{padding-left:4px}
.stock-inline .stock-logo,.stock-tag .stock-logo,.token-pair .stock-logo{width:28px;height:28px;padding:3px}
.stock-tag{padding:4px 10px 4px 5px;font-size:10px}
.machine-pair>.stock-logo{width:36px!important;height:36px!important;padding:4px}
.token-card .token-pair .stock-logo{width:30px;height:30px}
.token-card-top .coin{width:42px;height:42px}
.asset-row>.stock-logo{width:32px;height:32px;padding:3px;background:#fff;border:1px solid var(--line)}
.community-list .trending-row{gap:14px}
.community-list .trending-row .pair-mark{width:38px;height:38px}
.community-list .trending-row .pair-mark .stock-badge{width:26px;height:26px;right:-10px;bottom:-8px}
.community-list .trending-row .market-links{flex-wrap:nowrap;white-space:nowrap}
.community-list .trending-row .name{min-width:0;padding-left:2px}

/* uniform row heights so scroll areas end exactly on a row edge (no half-cut rows) */
.directory .trending-row{height:88px;box-sizing:border-box;padding:14px 0;margin:0;overflow:hidden}
.directory .trending-row .name{display:flex;flex-direction:column;justify-content:center;min-width:0}
.directory .trending-row small.stock-inline{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block!important;line-height:22px}
.directory .trending-row small.stock-inline .stock-logo{vertical-align:middle;margin-right:4px}
.directory .trending-row .market-links{margin-top:2px}
.directory-list{max-height:calc(88px * 12);overflow-y:scroll;border-bottom:1px solid var(--line)}
.directory-list::after{content:"";display:block;height:1px}
.community-list .trending-row{height:92px;box-sizing:border-box;padding:8px 0;margin:0;overflow:hidden}
.community-list .trending-row .name{display:flex;flex-direction:column;justify-content:center;min-width:0}
.community-list .trending-row small{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;line-height:14px}
.community-list{max-height:calc(92px * 10);overflow-y:scroll}
.directory-footer{display:flex;justify-content:space-between;align-items:center;font-size:11px;color:var(--muted);padding:10px 0}

/* Stockbook launch creative, shown until the first paid placement. */
.advertise-vacancy{display:block;padding:0;overflow:hidden;text-align:left;background:#e9d7f1;transition:box-shadow .2s ease,filter .2s ease}
.advertise-vacancy img{display:block;width:100%;height:100%;object-fit:contain}
.advertise-vacancy:hover{filter:brightness(1.025);box-shadow:inset 0 0 0 2px #a64ac9}
.advertise-vacancy:focus-visible{outline:3px solid #a64ac9;outline-offset:-3px}

/* carousel: empty slots and our own card */
.slot-empty{cursor:pointer}
.slot-empty .plus-coin{background:#fff;color:var(--purple)}
.slot-empty .plus-coin svg,.slot-empty .token-watermark svg{width:22px;height:22px;stroke:currentColor;stroke-width:2.2;fill:none}
.slot-empty .token-watermark{color:#a64ac9;opacity:.18}
.slot-empty .token-watermark svg{width:130px;height:130px;stroke-width:1.6}
.slot-empty .token-pair{color:var(--muted)}
.slot-price{display:flex;justify-content:space-between;align-items:center;font-weight:700;font-size:14px;margin-top:6px}
.own-card .coin{background:#fff}
.own-card .token-logo{object-fit:contain;padding:4px}
.own-card .token-watermark .token-logo{padding:0;opacity:.6}
.side-bottom .copyline{white-space:nowrap}
.side-bottom .copyline a{color:inherit;text-decoration:none;font:inherit;display:inline-flex;align-items:center;gap:4px;vertical-align:baseline}
.side-bottom .copyline a:hover{color:var(--ink)}
.side-bottom .copyline .x-logo{width:10px;height:10px;fill:currentColor;position:relative;top:.5px}
.entrance-header .x-link{margin-left:auto;margin-right:14px;display:inline-flex;align-items:center;gap:6px;font-size:12px;color:var(--ink);text-decoration:none}
.entrance-header .x-link svg{width:13px;height:13px;fill:currentColor}

/* custom file picker + validation highlight */
.file-pick{display:flex;align-items:center;gap:10px;margin:10px 0 4px}
.file-pick input[type=file]{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.file-pick .file-name{font-size:11px;color:var(--muted)}
.field-error{border-color:#c7384f!important;box-shadow:0 0 0 3px #c7384f22}

/* PnL */
.pnl-tokens .asset-row b{margin-left:auto;font-size:13px}
.gain{color:#1d7a54}.loss{color:#c7384f}
.lb-rank{width:26px;font-size:12px;font-weight:700;color:var(--muted)}
.member-row b{margin-left:auto;font-size:14px;font-weight:700}
