/* ══ Fundy · Angelic Bundler ══ */
.bnd .page-bar-title { display: inline-flex; align-items: center; gap: 8px; }
.bnd-tabs { margin-left: 14px; }
.bnd-tabs .seg-btn { display: inline-flex; align-items: center; gap: 6px; }
.bnd-body { padding: 16px 20px 40px; }
.bnd-wrap { max-width: 1320px; margin: 0 auto; animation: xPop .22s var(--ease-out, ease); }
@media (max-width: 1100px) { .bnd-tabs .seg-btn .ic { display: none; } }

/* builder */
.bnd-builder { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; max-width: 1320px; margin: 0 auto; align-items: start; }
@media (max-width: 1000px) { .bnd-builder { grid-template-columns: 1fr; } }
.bnd-form { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.bnd-namebar { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.bnd-name { flex: 1; min-width: 200px; background: transparent; border: 0; border-bottom: 1px solid transparent; outline: 0; color: var(--text); font-size: 22px; font-weight: 650; letter-spacing: -.01em; padding: 2px 0; transition: border-color .12s; }
.bnd-name:hover, .bnd-name:focus { border-bottom-color: var(--border-3); }
html[data-display="gothic"] .bnd-name { font-family: var(--font-display); font-size: 27px; font-weight: 600; }
.bnd-edit { font-size: 11px; color: var(--text-3); }
.bnd-edit b { color: var(--yellow); font-weight: 600; }
.bnd-desc { margin-bottom: 4px; }
.bnd-sec { background: var(--surface); border: 1px solid var(--border); position: relative; }
.bnd-sec::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--chrome-line); opacity: .5; }
.bnd-sec > header { display: flex; align-items: center; gap: 10px; padding: 12px 14px; cursor: pointer; user-select: none; }
.bnd-sec > header:hover { background: var(--row-hover); }
.bnd-sec > header > .ic { color: var(--text-2); flex-shrink: 0; }
.bnd-sec > header b { display: block; font-size: 13px; }
.bnd-sec > header .grow span { display: block; font-size: 11px; color: var(--text-3); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bnd-chev { color: var(--text-3); transition: transform .2s var(--ease-out, ease); display: inline-flex; }
.bnd-sec.open .bnd-chev { transform: rotate(180deg); }
.bnd-sec-body { padding: 4px 14px 14px; border-top: 1px solid var(--border-dim); animation: xPop .18s var(--ease-out, ease); }
.bnd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(170px, 100%), 1fr)); gap: 0 12px; padding-top: 10px; }
.bnd-chks { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 2px 0 6px; }
.bnd-chks.col { flex-direction: column; padding-top: 10px; }
.bnd-chk { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--text-2); cursor: pointer; }
.bnd-chk:hover { color: var(--text); }
.bnd-dist { margin-top: 8px; }
.bnd-bars { display: flex; align-items: flex-end; gap: 2px; height: 56px; padding: 4px; background: var(--surface-2); border: 1px solid var(--border-dim); }
.bnd-bars i { flex: 1; background: var(--chrome-v, var(--accent)); min-width: 2px; opacity: .85; transition: height .25s var(--ease-out, ease); }
.bnd-bars i:hover { opacity: 1; outline: 1px solid var(--text-2); }
.bnd-rules { display: flex; flex-direction: column; gap: 6px; padding-top: 10px; }
.bnd-rule { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 6px 8px; background: var(--surface-2); border: 1px solid var(--border-2); transition: opacity .15s; }
.bnd-rule.off { opacity: .5; }
.bnd-rule select.inp { width: 170px; height: 30px; }
.bnd-rule .inp-wrap { height: 30px; }
.bnd-rv { width: 130px; }
.bnd-rs { width: 78px; }
.bnd-rule .inp-wrap input { min-width: 0; }
.bnd-arrow { color: var(--text-4); font-size: 12px; }
.bnd-rule .icon-btn { margin-left: auto; }

/* summary side */
.bnd-side { position: sticky; top: 0; display: flex; flex-direction: column; gap: 12px; padding: 14px; background: var(--surface); border: 1px solid var(--border); }
.bnd-side::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--chrome-line); }
.bnd-halo { display: flex; align-items: center; gap: 12px; }
.bnd-est { border-top: 1px solid var(--border-dim); }
.bnd-warns { display: flex; flex-direction: column; gap: 5px; }
.bnd-warns > div { display: flex; gap: 6px; font-size: 11.5px; color: var(--yellow); line-height: 1.4; padding: 6px 8px; background: rgba(245, 184, 61, .07); border: 1px solid rgba(245, 184, 61, .2); }
.bnd-warns .ic { flex-shrink: 0; margin-top: 2px; }
.bnd-ok { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--green); padding: 6px 8px; background: rgba(var(--green-rgb), .07); border: 1px solid rgba(var(--green-rgb), .2); }
.bnd-acts { display: flex; flex-direction: column; gap: 6px; }
.bnd-acts .row .btn { justify-content: center; }
.bnd-sum-list { display: flex; flex-direction: column; gap: 6px; }
.bnd-sum-list > div { font-size: 11.5px; color: var(--text-2); line-height: 1.5; padding-left: 12px; position: relative; }
.bnd-sum-list > div::before { content: ''; position: absolute; left: 0; top: 7px; width: 5px; height: 5px; background: var(--text-3); transform: rotate(45deg); }
.bnd-sum-list b { color: var(--text); }

/* configs */
.bnd-import { display: flex; gap: 6px; align-items: center; margin-bottom: 14px; }
.bnd-import .inp { flex: 1; }
.bnd-earn { display: flex; align-items: center; gap: 10px; padding: 10px 14px; margin-bottom: 14px; font-size: 12px; background: var(--surface); border: 1px solid var(--border-2); }
.bnd-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 10px; }
.bnd-card { display: flex; flex-direction: column; gap: 8px; padding: 14px; background: var(--surface); border: 1px solid var(--border); transition: border-color .12s, transform .12s var(--ease-out, ease); }
.bnd-card:hover { border-color: var(--border-3); transform: translateY(-1px); }
.bnd-card.editing { border-color: var(--text-3); }
.bnd-card-sum { display: flex; flex-direction: column; gap: 3px; font-size: 11px; color: var(--text-3); line-height: 1.45; }
.bnd-card-sum b { color: var(--text-2); }
.bnd-halo-chip { display: inline-flex; align-items: center; gap: 3px; padding: 1px 6px; font: 600 10.5px var(--mono); border: 1px solid currentColor; flex-shrink: 0; }
.bnd-halo-chip.green { color: var(--green); } .bnd-halo-chip.yellow { color: var(--yellow); } .bnd-halo-chip.red { color: var(--red); }
.bnd-share { display: flex; gap: 14px; align-items: flex-start; }
.bnd-share .qr-frame { flex-shrink: 0; padding: 6px; }

/* marketplace */
.bnd-hero { display: flex; gap: 20px; align-items: center; padding: 18px 20px; margin-bottom: 14px; background: radial-gradient(600px 200px at 0% 0%, rgba(236, 236, 240, .07), transparent 70%), var(--surface); border: 1px solid var(--border-2); position: relative; overflow: hidden; }
.bnd-hero::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--chrome-line); }
.bnd-hero h3 { margin: 4px 0; font-size: 20px; }
html[data-display="gothic"] .bnd-hero h3 { font-family: var(--font-display); font-size: 26px; font-weight: 600; }
html[data-accent="chrome"] .bnd-hero h3 { background: var(--chrome-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
html[data-theme="light"][data-accent="chrome"] .bnd-hero h3 { background-image: linear-gradient(100deg, #27272a 0%, #8b8b94 24%, #18181b 44%, #6b6b74 66%, #3f3f46 84%, #71717a 100%); }
.bnd-hero p { margin: 0 0 8px; font-size: 12.5px; color: var(--text-2); max-width: 640px; line-height: 1.5; }
.bnd-hero-k { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: var(--text-3); }
.bnd-hero-eq { width: 240px; flex-shrink: 0; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
@media (max-width: 760px) { .bnd-hero { flex-direction: column; align-items: stretch; } .bnd-hero-eq { width: auto; } }
.bnd-mkbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.bnd-mk { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(290px, 100%), 1fr)); gap: 10px; }
.bnd-mkcard { display: flex; flex-direction: column; gap: 8px; padding: 14px; background: var(--surface); border: 1px solid var(--border); cursor: pointer; transition: border-color .12s, transform .12s var(--ease-out, ease), box-shadow .12s; }
.bnd-mkcard:hover { border-color: var(--border-3); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.bnd-mkcard.mine { border-color: rgba(var(--accent-rgb), .45); }
.bnd-av { width: 28px; height: 28px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; background: var(--chrome-v, var(--surface-3)); color: #0b0b0c; }
.bnd-av.lg { width: 36px; height: 36px; font-size: 15px; }
.bnd-mk-n { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bnd-ver { color: var(--green); display: inline-flex; align-items: center; gap: 3px; vertical-align: -1px; }
.bnd-price { font: 600 11px var(--mono); padding: 3px 8px; border: 1px solid var(--border-3); white-space: nowrap; }
.bnd-price.free { color: var(--green); border-color: rgba(var(--green-rgb), .35); }
.bnd-mk-desc { font-size: 11.5px; color: var(--text-3); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 33px; }
.bnd-eq { display: block; }
.bnd-mk-stats { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 11px; color: var(--text-3); }
.bnd-mk-stats > span { display: inline-flex; align-items: center; gap: 4px; }
.stars { position: relative; display: inline-flex; vertical-align: -1px; line-height: 0; }
.stars .st-bg, .stars .st-fg { display: inline-flex; gap: 1px; white-space: nowrap; }
.stars .st-bg { color: var(--surface-4); }
.stars .st-fg { position: absolute; left: 0; top: 0; overflow: hidden; color: var(--yellow); }
.stars .ic { fill: currentColor; stroke: none; flex-shrink: 0; }
.bnd-mkv-top { display: flex; gap: 18px; align-items: flex-start; }
.bnd-mkv-eq { width: 270px; flex-shrink: 0; display: flex; flex-direction: column; gap: 6px; padding: 10px; background: var(--surface-2); border: 1px solid var(--border-dim); }
@media (max-width: 700px) { .bnd-mkv-top { flex-direction: column; } .bnd-mkv-eq { width: auto; } }
.bnd-review-form { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; padding: 8px; background: var(--surface-2); border: 1px solid var(--border-2); }
.bnd-review-form .inp { flex: 1; }
.bnd-rate { display: inline-flex; gap: 1px; }
.bnd-rate button { background: none; border: 0; padding: 1px; cursor: pointer; color: var(--surface-4); }
.bnd-rate button .ic { fill: currentColor; stroke: none; }
.bnd-rate button.on { color: var(--yellow); }
.bnd-review { display: flex; gap: 10px; padding: 9px 0; border-top: 1px solid var(--border-dim); }
.bnd-review .bnd-av { width: 24px; height: 24px; font-size: 11px; }

/* monitor */
.bnd-sess { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.bnd-sess button { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; font-size: 11.5px; background: var(--surface); border: 1px solid var(--border-2); color: var(--text-2); cursor: pointer; }
.bnd-sess button.on { border-color: var(--text-3); color: var(--text); background: var(--surface-2); }
.bnd-mon-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.bnd-mon-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .bnd-mon-cards { grid-template-columns: 1fr 1fr; } }
.bnd-mon-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 10px; }
@media (max-width: 900px) { .bnd-mon-grid { grid-template-columns: 1fr; } }
.bnd-chart, .bnd-rstat { padding: 12px; background: var(--surface); border: 1px solid var(--border); min-width: 0; }
.bnd-rs-row { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: 11.5px; border-top: 1px solid var(--border-dim); }
.bnd-rs-row.done { opacity: .55; }
.bnd-rs-row .tag { font-size: 9.5px; }
.bnd-feed { max-height: 360px; overflow: auto; border: 1px solid var(--border); background: var(--surface); }
.bnd-feed-row { display: grid; grid-template-columns: 64px 54px 96px 104px 64px minmax(0, 1fr) 80px; gap: 8px; align-items: center; height: 30px; padding: 0 10px; font-size: 11.5px; border-bottom: 1px solid var(--border-dim); animation: xPop .2s var(--ease-out, ease); }
.bnd-feed-row .grow { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bnd-fside { font: 700 10px var(--mono); letter-spacing: .04em; }
.bnd-feed-row.buy { box-shadow: inset 2px 0 0 var(--green); } .bnd-feed-row.buy .bnd-fside { color: var(--green); }
.bnd-feed-row.sell { box-shadow: inset 2px 0 0 var(--red); } .bnd-feed-row.sell .bnd-fside { color: var(--red); }
.bnd-feed-row.pub .bnd-fside { color: var(--text-3); }
.bnd-feed-row.dev, .bnd-feed-row.whale { background: rgba(var(--red-rgb), .05); } .bnd-feed-row.dev .bnd-fside, .bnd-feed-row.whale .bnd-fside { color: var(--yellow); }
.bnd-feed-row.safe .bnd-fside { color: var(--yellow); }
@media (max-width: 800px) { .bnd-feed-row { grid-template-columns: 58px 46px 1fr 90px; } .bnd-feed-row > :nth-child(n+5) { display: none; } }

/* the extra Bundler nav item: keep the top nav on one line */
@media (max-width: 1760px) and (min-width: 1321px) { .tn-item .badge-new { display: none; } .tn-item { padding: 0 9px; } }
