:root{--ext-pink:var(--dd-pink);--ext-cyan:var(--dd-cyan);--ext-panel:var(--dd-bg);--ext-border:var(--dd-border);--ext-muted:var(--dd-muted)}
* { box-sizing: border-box; }
        body.external-marketplace-page {
            color: rgba(255,255,255,.94);
            background: var(--dd-surface);
            overflow-x: hidden;
        }
        .ext-shell { padding: 42px 0 90px; }
        .ext-container { width: min(1320px, calc(100% - 38px)); margin: 0 auto; }
        .ext-card {
            border: 1px solid var(--ext-border);
            border-radius: 16px;
            background: var(--ext-panel);
            box-shadow: none;
            
        }
        .ext-hero { position: relative; overflow: hidden; }
        .ext-hero::before {content:none;}
        .ext-hero-grid { position:relative; z-index:1; display:grid; grid-template-columns:1.1fr .9fr; gap:34px; align-items:center; padding:42px; }
        .ext-eyebrow { display:inline-flex; gap:8px; align-items:center; padding:7px 11px; border:1px solid var(--ext-border); border-radius: 16px; background: var(--dd-surface); color:rgba(255,255,255,.68); font-size:10px; font-weight:900; letter-spacing: 0; text-transform: none; }
        .ext-eyebrow::before { content:""; width:8px; height:8px; border-radius:50%; background:var(--ext-pink); box-shadow: none; }
        .ext-title { margin:18px 0 0; font-family: "Barlow Condensed", sans-serif; font-size:clamp(42px,5.5vw,72px); line-height:.98; letter-spacing: 0; font-weight:900; }
        .ext-title span { display:block; color: var(--dd-text); background: var(--dd-surface);   }
        .ext-copy { max-width:680px; margin:20px 0 0; color:rgba(255,255,255,.66); font-size:15px; line-height:1.72; }
        .ext-actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:25px; }
        .ext-btn, .ext-btn:visited { display:inline-flex; align-items:center; justify-content:center; min-height:45px; padding:0 17px; border:1px solid rgba(255,255,255,.11); border-radius: 8px; color:#fff; background: var(--dd-surface); font-size:14px; font-weight:600; text-decoration:none; cursor:pointer; transition:.18s ease; }
        .ext-btn:hover { color:#fff; transform:translateY(-2px); border-color:rgba(255,255,255,.22); }
        .ext-btn.primary { background:var(--dd-action); border-color:rgba(255,108,155,.25); }
        .ext-btn.danger { background: var(--dd-surface); border-color:rgba(255,110,110,.24); }
        .ext-btn:disabled { opacity:.48; cursor:not-allowed; transform:none; }
        .ext-hero-media { position:relative; overflow:hidden; min-height:320px; border:1px solid var(--ext-border); border-radius: 16px; background: var(--dd-surface); }
        .ext-hero-media img { width:100%; height:320px; object-fit:cover; display:block; }
        .ext-hero-media::after {content:none;}
        .ext-hero-caption { position:absolute; z-index:2; left:19px; right:19px; bottom:17px; display:flex; justify-content:space-between; align-items:flex-end; gap:15px; }
        .ext-hero-name { font-size:21px; font-weight:900; }
        .ext-small { color:var(--ext-muted); font-size:11px; }
        .ext-switcher { display:grid; grid-template-columns:1fr 1fr; gap:15px; margin:18px 0 25px; }
        .ext-switch { position:relative; min-height:124px; padding:20px; color:#fff; text-decoration:none; overflow:hidden; }
        .ext-switch:hover { color:#fff; transform:translateY(-2px); }
        .ext-switch.active { background: var(--dd-surface); border-color:rgba(255,108,155,.32); }
        .ext-kicker { color:rgba(255,255,255,.46); font-size:10px; font-weight:900; letter-spacing: 0; text-transform: none; }
        .ext-switch strong { display:block; margin-top:7px; font-size:19px; }
        .ext-switch p { max-width:650px; margin:7px 0 0; color:var(--ext-muted); font-size:11px; line-height:1.55; }
        .ext-board { overflow:hidden; }
        .ext-head { display:flex; justify-content:space-between; align-items:flex-end; gap:15px; flex-wrap:wrap; padding:23px; border-bottom:1px solid rgba(255,255,255,.07); }
        .ext-head h2 { margin:6px 0 0; font-size:25px; font-weight:900; }
        .ext-chip { display:inline-flex; align-items:center; gap:7px; min-height:40px; padding:6px 10px; border:1px solid var(--ext-border); border-radius:8px; background: var(--dd-surface); color:rgba(255,255,255,.75); font-size:14px; font-weight:600; }
        .ext-chip strong { color:#fff; }
        .ext-rail { padding:18px 23px 21px; border-bottom:1px solid rgba(255,255,255,.07); }
        .ext-swiper .swiper-slide { width:225px; }
        .ext-collection { display:grid; grid-template-columns:54px 1fr; gap:11px; align-items:center; min-height:76px; padding:10px; border:1px solid var(--ext-border); border-radius:16px; background: var(--dd-surface); cursor:pointer; transition:.18s ease; }
        .ext-collection:hover { transform:translateY(-2px); border-color:rgba(255,255,255,.18); }
        .ext-collection.selected { border-color:rgba(255,108,155,.42); background: var(--dd-surface); }
        .ext-collection img { width:54px; height:54px; border-radius:13px; object-fit:cover; border:1px solid var(--ext-border); }
        .ext-collection-name { overflow:hidden; font-size:13px; font-weight:900; text-overflow:ellipsis; white-space:nowrap; }
        .ext-stats { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:11px; padding:0 23px 23px; border-bottom:1px solid rgba(255,255,255,.07); }
        .ext-stat { min-width:0; min-height:108px; padding:15px; border:1px solid var(--ext-border); border-radius:16px; background: var(--dd-surface); }
        .ext-stat label { display:block; color:rgba(255,255,255,.45); font-size:9px; font-weight:900; letter-spacing: 0; text-transform: none; }
        .ext-stat strong { display:block; overflow:hidden; margin-top:7px; font-size:23px; text-overflow:ellipsis; white-space:nowrap; }
        .ext-stat span { display:block; margin-top:3px; color:rgba(255,255,255,.4); font-size:9px; }
        .ext-stat a { color:inherit; text-decoration:none; }
        .ext-stat a:hover { color:rgba(255,255,255,.72); }
        .ext-progress { overflow:hidden; width:100%; height:7px; margin-top:10px; border:1px solid rgba(255,255,255,.07); border-radius: 16px; background: var(--dd-surface); }
        .ext-progress-bar { width:0; height:100%; border-radius:inherit; background: var(--dd-surface); box-shadow: none; transition:width .35s ease; }
        .ext-toolbar { display:flex; align-items:center; justify-content:space-between; gap:13px; flex-wrap:nowrap; overflow-x:auto; padding:18px 23px; border-bottom:1px solid rgba(255,255,255,.07); scrollbar-width:none; -webkit-overflow-scrolling:touch; }
        .ext-toolbar::-webkit-scrollbar { display:none; }
        .ext-toolbar-group { display:flex; flex:0 0 auto; align-items:center; gap:8px; flex-wrap:nowrap; }
        button.ext-chip { flex:0 0 auto; cursor:pointer; transition:.18s ease; }
        button.ext-chip:hover, button.ext-chip.active { color:#fff; border-color:rgba(255,108,155,.35); background: var(--dd-surface); }
        button.ext-chip:disabled { opacity:.42; cursor:not-allowed; }
        .ext-input, .ext-select { flex:0 0 auto; min-height:40px; height:40px; border:1px solid var(--ext-border); border-radius:8px; background: var(--dd-surface); color:#fff; font-size:14px; outline:none; }
        .ext-input { width:185px; padding:0 13px; }
        .ext-input::-webkit-search-decoration, .ext-input::-webkit-search-cancel-button { -webkit-appearance:none; }
        .ext-select { min-width:165px; padding:0 28px 0 11px; }
        .ext-select option { background:#151525; }
        .ext-input:focus, .ext-select:focus { border-color:rgba(255,108,155,.4); box-shadow: none; }
        .ext-table-wrap { overflow-x:auto; }
        .ext-table { width:100%; margin:0; table-layout:fixed; border-collapse:separate; border-spacing:0; }
        .ext-table th { height:49px; padding:0 14px; border-bottom:1px solid rgba(255,255,255,.07); background: var(--dd-surface); color:rgba(255,255,255,.42); font-size:9px; font-weight:900; letter-spacing: 0; text-transform: none; }
        .ext-table td { height:98px; padding:12px 14px; border-bottom:1px solid rgba(255,255,255,.055); vertical-align:middle; color:rgba(255,255,255,.82); }
        .ext-row { cursor:pointer; transition:.16s ease; }
        .ext-row:hover td, .ext-row[aria-expanded="true"] td { background-color:rgba(255,255,255,.027); }
        .ext-row.listed td { background-color:rgba(255,108,155,.065); border-top:1px solid rgba(255,108,155,.13); border-bottom-color:rgba(255,108,155,.16); }
        .ext-row.listed td:first-child { box-shadow: none; }
        .ext-row.listed:hover td, .ext-row.listed[aria-expanded="true"] td { background-color:rgba(255,108,155,.11); }
        .ext-row.listed .ext-price { color:#fff; border-color:rgba(255,108,155,.38); background: var(--dd-surface); box-shadow: none; }
        .ext-row.owned:not(.listed) td:first-child { box-shadow: none; }
        .ext-token { display:flex; align-items:center; gap:10px; }
        .ext-chevron { width:10px; height:10px; flex:0 0 10px; box-sizing:border-box; margin-left:2px; border-right:2px solid rgba(255,255,255,.4); border-bottom:2px solid rgba(255,255,255,.4); transform:rotate(-45deg); transform-origin:center; transition:.18s ease; }
        .ext-row[aria-expanded="true"] .ext-chevron { transform:rotate(45deg) translate(-2px,-2px); }
        .ext-thumb { width:88px; height:88px; flex:0 0 auto; border:1px solid var(--ext-border); border-radius:15px; object-fit:cover; object-position:top; background: var(--dd-surface); }
        .ext-name { overflow:hidden; font-size:15px; font-weight:600; text-overflow:ellipsis; white-space:nowrap; }
        .ext-sub { overflow:hidden; margin-top:3px; color:rgba(255,255,255,.4); font-size:9px; text-overflow:ellipsis; white-space:nowrap; }
        .ext-rarity { display:inline-flex; align-items:center; justify-content:center; min-width:74px; max-width:100%; padding:5px 9px; border:1px solid var(--ext-border); border-radius:8px; background: var(--dd-surface); }
        .ext-rarity-rank { color:#fff; font-size:14px; font-weight:950; white-space:nowrap; }
        .ext-rarity.ultra-rare { border-color:rgba(255,214,102,.58); background: var(--dd-surface); box-shadow: none;  }
        .ext-rarity.hero { border-color:rgba(210,90,255,.95); background: var(--dd-surface); box-shadow: none;  }
        .ext-rarity.hero .ext-rarity-rank { color:#fff;  }
        @keyframes rarityGlow { 50% { border-color:rgba(255,229,151,.88); box-shadow: none; transform:translateY(-1px); } }
        @keyframes heroGlow { 50% { border-color:#efb1ff; box-shadow: none; transform:translateY(-1px); } }
        .ext-price { display:inline-flex; align-items:center; gap:6px; padding:5px 8px; border:1px solid var(--ext-border); border-radius: 16px; background: var(--dd-surface); font-size:11px; font-weight:900; }
        .ext-price img { width:19px; height:19px; }
        .ext-detail-row td { height:auto!important; padding:0!important; background: var(--dd-surface); }
        .ext-detail { padding:20px; }
        .ext-detail-grid { display:grid; grid-template-columns:.8fr 1fr 1fr; gap:15px; }
        .ext-detail-card { min-width:0; padding:16px; border:1px solid var(--ext-border); border-radius:17px; background: var(--dd-surface); }
        .ext-detail-image { padding:0; overflow:hidden; min-height:310px; }
        .ext-detail-image img { width:100%; height:100%; min-height:310px; object-fit:cover; object-position: top; background: var(--dd-surface); }
        .ext-detail-card h4 { margin:6px 0 0; font-size:20px; font-weight:900; }
        .ext-detail-card p { margin:9px 0 0; color:var(--ext-muted); font-size:14px; line-height:1.65; }
        .ext-attributes { display:grid; grid-template-columns:1fr 1fr; gap:7px; margin-top:13px; }
        .ext-attribute { min-width:0; padding:5px; padding-left: 15px; border:1px solid rgba(255,255,255,.07); border-radius:11px; background: var(--dd-surface); }
        .ext-attribute label { display:block; overflow:hidden; color:rgba(255,255,255,.4); font-size:12px; font-weight:900; text-transform: none; text-overflow:ellipsis; white-space:nowrap; }
        .ext-attribute strong { display:block; overflow:hidden; margin-top:3px; font-size:14px; text-overflow:ellipsis; white-space:nowrap; }
        .ext-market { display:flex; flex-direction:column; justify-content:space-between; min-height:100%; }
        .ext-big-price { display:flex; align-items:center; gap:9px; margin-top:13px; font-size:29px; font-weight:900; }
        .ext-big-price img { width:31px; height:31px; }
        .ext-market-actions { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-top:18px; }
        .ext-market-actions > :only-child { grid-column:1/-1; }
        .ext-empty { display:none; padding:52px 20px; text-align:center; }
        .ext-empty i { font-size:28px; color:rgba(255,255,255,.45); }
        .ext-empty h3 { margin-top:14px; font-size:18px; }
        .ext-empty p { color:var(--ext-muted); font-size:11px; }
        .ext-footer-row { display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap; padding:15px 23px 19px; color:rgba(255,255,255,.43); font-size:10px; }
        .ext-loader { display:none; align-items:center; gap:8px; }
        .ext-loader.show { display:flex; }
        .ext-loader::before { content:""; width:8px; height:8px; border-radius:50%; background:var(--ext-pink); animation:pulse 1.1s infinite; }
        @keyframes pulse { 50% { opacity:.25; transform:scale(.75); } }
        .ext-sentinel { height:2px; }
        .ext-modal { color:#fff; border:1px solid var(--ext-border); border-radius:19px; background: var(--dd-surface); box-shadow: none; }
        .ext-modal .modal-header,.ext-modal .modal-footer { border-color:rgba(255,255,255,.07); }
        .ext-modal .form-control { min-height:44px; color:#fff; border:1px solid var(--ext-border); border-radius:12px; background: var(--dd-surface); }
        .ext-modal .form-control:focus { color:#fff; border-color:rgba(255,108,155,.4); background: var(--dd-surface); box-shadow: none; }
        .ext-summary { display:grid; gap:8px; margin-top:14px; padding:12px; border:1px solid rgba(255,255,255,.07); border-radius:13px; background: var(--dd-surface); }
        .ext-summary div { display:flex; justify-content:space-between; gap:12px; color:var(--ext-muted); font-size:14px; }
        .ext-summary .total { padding-top:8px; border-top:1px solid rgba(255,255,255,.07); color:#fff; }
        .ext-error { min-height:17px; margin-top:9px; color:#ffb8b8; font-size:14px; }
        .ext-status { min-height:17px; color:var(--ext-muted); font-size:14px; }
        @media(max-width:1180px){.ext-stats{grid-template-columns:repeat(3,minmax(0,1fr))}}
        @media(max-width:1050px){.ext-hero-grid{grid-template-columns:1fr}.ext-detail-grid{grid-template-columns:1fr 1fr}.ext-detail-grid>:last-child{grid-column:1/-1}}
        @media(max-width:820px){.ext-switcher,.ext-stats{grid-template-columns:1fr 1fr}.ext-hero-grid{padding:28px}.ext-table th,.ext-table td{padding-left:9px;padding-right:9px}}
        @media(max-width:620px){
            .ext-shell{padding-top:22px}
            .ext-container{width:calc(100% - 22px)}
            .ext-card{border-radius:20px}
            .ext-hero-grid{padding:22px}
            .ext-title{font-size:clamp(39px,13vw,56px)}
            .ext-switcher,.ext-stats{grid-template-columns:1fr}
            .ext-head,.ext-rail,.ext-toolbar,.ext-detail,.ext-footer-row{padding-left:14px;padding-right:14px}
            .ext-stats{padding-left:14px;padding-right:14px}
            .ext-toolbar{justify-content:flex-start;gap:8px}
            .ext-toolbar-group{width:auto}
            .ext-input{width:170px}
            .ext-select{width:auto;min-width:160px}
            .ext-table-wrap{overflow-x:hidden;padding:10px}
            .ext-table{display:block;width:100%;min-width:0;table-layout:auto}
            .ext-table thead{display:none}
            .ext-table tbody{display:block;width:100%}
            .ext-row{display:grid;grid-template-columns:112px minmax(0,1fr);grid-template-rows:auto auto auto;gap:7px 12px;width:100%;margin:0 0 10px;padding:12px;border:1px solid rgba(255,255,255,.075);border-radius:16px;background:rgba(255,255,255,.02)}
            .ext-row td{display:block;height:auto;min-width:0;padding:0;border:0;background:transparent!important}
            .ext-row td:nth-child(1){grid-column:1;grid-row:1/span 3}
            .ext-row td:nth-child(2){grid-column:2;grid-row:1}
            .ext-row td:nth-child(3){display:block;grid-column:2;grid-row:2}
            .ext-row td:nth-child(4){grid-column:2;grid-row:3}
            .ext-row.listed{border-color:rgba(255,108,155,.34);background: var(--dd-surface);box-shadow:inset 4px 0 rgba(255,108,155,.78),0 10px 28px rgba(0,0,0,.12)}
            .ext-row.listed td:first-child,.ext-row.owned:not(.listed) td:first-child{box-shadow:none}
            .ext-row.owned:not(.listed){box-shadow:inset 3px 0 rgba(89,221,255,.58)}
            .ext-token { display:grid; grid-template-columns:14px 86px; gap:8px; align-items:center; width:100%; overflow:visible; }
            .ext-chevron { grid-column:1; grid-row:1; margin:0 0 0 2px; }
            .ext-thumb{grid-column:2;grid-row:1;width:86px;height:86px;border-radius:15px;object-fit:cover;object-position:top}
            .ext-name{font-size:14px;line-height:1.3;white-space:normal}
            .ext-sub{font-size:10px;white-space:normal}
            .ext-price{max-width:100%;font-size:12px}
            .ext-rarity{padding:6px 8px}
            .ext-rarity-rank{font-size:13px}
            .ext-detail-row{display:block;width:100%;margin:0}
            .ext-detail-row>td{display:block!important;width:100%;height:auto!important;padding:0!important}
            .ext-detail{padding:0 2px 12px}
            .ext-detail-grid{grid-template-columns:1fr}
            .ext-detail-grid>:last-child{grid-column:auto}
            .ext-detail-image{min-height:0}
            .ext-detail-image img{width:100%;height:auto;min-height:0;aspect-ratio:1/1; object-fit:cover; object-position: top;}
        }
        @media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.001ms!important;transition-duration:.001ms!important}}

.ext-activity {
    margin: 18px 20px 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 18px;
    background: var(--dd-surface);
}

.ext-activity-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 15px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.065);
}

.ext-activity-head h3 {
    margin: 3px 0 4px;
    color: rgba(255, 255, 255, 0.96);
    font-size: 18px;
    font-weight: 900;
}

.ext-activity-toggle {
    width: 100%;
    color: inherit;
    text-align: left;
    border: 0;
    background: transparent;
    cursor: pointer;
    transition: background 0.18s ease;
}

.ext-activity-toggle:hover,
.ext-activity-toggle:focus-visible {
    background: var(--dd-surface);
    outline: none;
}

.ext-activity-chevron {
    display: inline-flex;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 50%;
    color: var(--dd-muted);
    background: var(--dd-surface);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.ext-activity-toggle[aria-expanded="true"] .ext-activity-chevron {
    transform: rotate(180deg);
    border-color: rgba(255, 108, 155, 0.32);
}

.ext-activity-table-wrap {
    width: 100%;
    overflow: hidden;
}

.ext-activity-table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
    table-layout: fixed;
}

.ext-activity-table th {
    height: 34px;
    padding: 0 12px;
    color: var(--dd-muted);
    background: var(--dd-surface);
    border-bottom: 1px solid rgba(255, 255, 255, 0.055);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: none;
    vertical-align: middle;
}

.ext-activity-table th:last-child {
    text-align: right;
}

.ext-activity-table td {
    height: 52px;
    padding: 6px 12px;
    color: rgba(255, 255, 255, 0.84);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: middle;
}

.ext-activity-table tr:last-child td {
    border-bottom: 0;
}

.ext-activity-table tbody tr {
    transition:
        background 0.18s ease,
        border-color 0.18s ease;
}

.ext-activity-table tbody tr:hover {
    background: var(--dd-surface);
}

.ext-activity-thumb-cell {
    width: 64px;
}

.ext-activity-thumb {
    width: 40px;
    height: 40px;
    display: block;
    object-fit: contain;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 9px;
    background: var(--dd-surface);
}

.ext-activity-meta-cell {
    min-width: 0;
}

.ext-activity-collection {
    min-width: 0;
}

.ext-activity-collection-name {
    display: block;
    max-width: 100%;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.96);
    font-size: 12px;
    font-weight: 900;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ext-activity-event-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ext-event-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 4px 8px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 16px;
    font-size: 9px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0;
    text-transform: none;
    white-space: nowrap;
}

.ext-event-badge.listing {
    color: #ffd597;
    border-color: rgba(255, 190, 85, 0.24);
    background: var(--dd-surface);
}

.ext-event-badge.sale {
    color: #bfffe0;
    border-color: rgba(85, 231, 164, 0.24);
    background: var(--dd-surface);
}

.ext-activity-amount-cell {
    text-align: right;
}

.ext-activity-amount {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    max-width: 100%;
    color: rgba(255, 255, 255, 0.96);
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

.ext-activity-amount img {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    object-fit: contain;
}

.ext-activity-status {
    padding: 12px 18px;
    color: var(--dd-muted);
    font-size: 11px;
}

.ext-activity-link {
    display: block;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

.ext-activity-link:hover,
.ext-activity-link:focus {
    color: inherit;
    text-decoration: none;
}

@media (max-width: 620px) {
    .ext-activity {
        margin: 14px 10px 16px;
        border-radius: 15px;
    }

    .ext-activity-head {
        align-items: flex-start;
        gap: 10px;
        padding: 13px 14px;
    }

    .ext-activity-head h3 {
        margin-top: 2px;
        font-size: 16px;
    }

    .ext-activity-head .ext-small {
        font-size: 10px;
        line-height: 1.45;
    }

    .ext-activity-head > .ext-chip {
        flex: 0 0 auto;
        min-height: 28px;
        padding: 5px 8px;
        font-size: 9px;
    }

    .ext-activity-table-wrap {
        width: 100%;
        overflow: hidden;
    }

    .ext-activity-table {
        display: block;
        width: 100%;
        min-width: 0;
        table-layout: auto;
    }

    .ext-activity-table thead {
        display: none;
    }

    .ext-activity-table tbody {
        display: block;
        width: 100%;
        padding: 8px;
    }

    .ext-activity-table tr {
        display: grid;
        grid-template-columns:
            42px
            minmax(0, 1fr)
            auto
            auto;
        grid-template-rows: 1fr;
        align-items: center;
        gap: 7px;
        width: 100%;
        min-height: 52px;
        margin: 0 0 6px;
        padding: 5px 7px;
        border: 1px solid rgba(255, 255, 255, 0.07);
        border-radius: 11px;
        background: var(--dd-surface);
    }

    .ext-activity-table tr:last-child {
        margin-bottom: 0;
    }

    .ext-activity-table tbody tr:hover {
        background: var(--dd-surface);
    }

    .ext-activity-table td {
        display: block;
        width: auto;
        height: auto;
        min-width: 0;
        padding: 0;
        border: 0;
    }

    .ext-activity-thumb-cell {
        grid-column: 1;
        grid-row: 1;
        width: auto;
    }

    .ext-activity-meta-cell {
        grid-column: 2;
        grid-row: 1;
        min-width: 0;
    }

    .ext-activity-event-cell {
        grid-column: 3;
        grid-row: 1;
    }

    .ext-activity-amount-cell {
        grid-column: 4;
        grid-row: 1;
        min-width: 0;
        text-align: right;
    }

    .ext-activity-thumb {
        width: 42px;
        height: 42px;
        border-radius: 9px;
    }

    .ext-activity-collection-name {
        font-size: 10px;
        line-height: 1.2;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .ext-activity-event-wrap {
        display: flex;
        align-items: center;
        gap: 0;
    }

    .ext-event-badge {
        gap: 3px;
        padding: 3px 5px;
        font-size: 7px;
        letter-spacing: 0;
        white-space: nowrap;
    }

    .ext-event-badge i {
        font-size: 8px;
    }

    .ext-activity-amount {
        gap: 3px;
        font-size: 10px;
        white-space: nowrap;
    }

    .ext-activity-amount img {
        width: 15px;
        height: 15px;
        flex-basis: 15px;
    }

    .ext-activity-status {
        padding: 10px 14px;
        font-size: 10px;
    }
}

@media (max-width: 390px) {
    .ext-activity-table tr {
        grid-template-columns:
            38px
            minmax(0, 1fr)
            auto
            auto;
        gap: 5px;
        padding-left: 6px;
        padding-right: 6px;
    }

    .ext-activity-thumb {
        width: 38px;
        height: 38px;
    }

    .ext-event-badge {
        padding-left: 4px;
        padding-right: 4px;
    }

    .ext-activity-amount {
        font-size: 9px;
    }

    .ext-activity-amount img {
        width: 14px;
        height: 14px;
        flex-basis: 14px;
    }
}

.ext-shell{padding:28px 0 56px}.ext-container{width:min(1440px,calc(100% - 80px))}.ext-compact-header{display:flex;align-items:center;gap:20px;margin-bottom:24px}.ext-compact-header>img{width:72px;height:72px;object-fit:cover;border-radius:12px}.ext-compact-header h1{font-size:48px;margin:10px 0}.ext-compact-header p{font-size:13px;margin:0}.ext-compact-header>div>a{font-size:13px}.ext-compact-header>.dd-btn{margin-left:auto}.ext-board{overflow:visible;border:0;background:none}.ext-head{padding:12px 0;font-size:14px}.ext-rail{padding:14px 0}.ext-collection{width:100%;color:var(--dd-text);text-align:left;border-radius:8px;min-height:64px;grid-template-columns:40px 1fr}.ext-collection img{width:40px;height:40px;border-radius:8px}.ext-toolbar{padding:14px 0;position:sticky;top:var(--dd-header-height);z-index:10;background:var(--dd-bg)}.ext-table th{font-size:13px;color:var(--dd-muted);position:sticky;top:calc(var(--dd-header-height) + 69px);z-index:5;background:var(--dd-bg)}.ext-table td{height:78px;font-size:15px}.ext-table td:last-child,.ext-table th:last-child{text-align:right}.ext-table-wrap{overflow:visible}.ext-price{font-size:14px;border:0;padding:0}.ext-collection-details{margin-top:24px;border-top:1px solid var(--dd-border);padding-top:20px}.ext-collection-details>summary{cursor:pointer;font-size:16px;margin-bottom:16px}.ext-stats{padding:0 0 20px}.ext-small,.ext-sub{font-size:12px}.ext-row:focus-visible{outline-offset:-2px}.ext-progress-bar{background:var(--dd-pink)}@media(max-width:767px){.ext-shell{padding-top:22px}.ext-container{width:calc(100% - 36px)}.ext-compact-header{flex-wrap:wrap;gap:12px}.ext-compact-header>img{width:52px;height:52px}.ext-compact-header h1{font-size:36px}.ext-compact-header>.dd-btn{margin-left:0}.ext-toolbar{position:static;flex-wrap:wrap;overflow:visible}.ext-toolbar-group{flex-wrap:wrap;max-width:100%}.ext-table th{position:static}.ext-row{grid-template-columns:78px minmax(0,1fr) auto;grid-template-rows:auto auto;gap:5px 10px;margin:0;border-radius:0;border:0;border-bottom:1px solid var(--dd-border);padding:14px 0}.ext-row td:nth-child(1){grid-column:1;grid-row:1/span 2}.ext-row td:nth-child(2){grid-column:2;grid-row:1}.ext-row td:nth-child(3){grid-column:2;grid-row:2;font-size:11px}.ext-row td:nth-child(4){grid-column:3;grid-row:1/span 2;align-self:center}.ext-token{grid-template-columns:8px 60px;gap:6px}.ext-thumb{width:60px;height:60px;border-radius:8px}.ext-name{font-size:13px}.ext-table .ext-row td{height:auto}.ext-price{font-size:12px}.ext-price img{display:block;width:18px;height:18px;flex:none}.ext-table-wrap{padding:0}.ext-rarity{padding:0;border:0}.ext-rarity-rank{font-size:11px}.ext-stats{grid-template-columns:1fr 1fr}.ext-stat{padding:12px}.ext-stat strong{font-size:19px}.ext-stat span,.ext-stat label{font-size:11px}}

/* Fat Cats family: preserve the artwork's full composition. */
.ext-family-header {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    align-items: center;
    gap: 32px;
    margin-bottom: 28px;
}
.ext-family-heading > .dd-text-link { font-size: 14px; }
.ext-family-identity { display: flex; align-items: center; gap: 18px; margin: 20px 0 22px; }
.ext-family-identity > img { width: 64px; height: 64px; border-radius: 12px; }
.ext-family-identity h1 { margin: 0 0 8px; font-size: clamp(36px, 4vw, 52px); line-height: 1; }
.ext-family-identity p { margin: 0; color: var(--dd-muted); font-size: 14px; line-height: 1.6; }
.ext-family-banner { display: block; width: 100%; height: auto; border-radius: 12px; }
.ext-kitty {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    align-items: center;
    gap: 32px;
    padding: 28px 0;
    margin-bottom: 18px;
    border-top: 1px solid var(--dd-border);
    border-bottom: 1px solid var(--dd-border);
}
.ext-kitty-art { display: block; width: 100%; height: auto; border-radius: 12px; }
.ext-kitty-copy { min-width: 0; }
.ext-kitty-copy h2 { font-size: 32px; line-height: 1.1; margin: 0 0 16px; }
.ext-kitty-copy p { font-size: 14px; line-height: 1.6; color: var(--dd-muted); margin: 0; }
.ext-kitty-copy p strong { color: var(--dd-text); font-weight: 600; }
.ext-kitty-copy .ext-kitty-membership { margin-top: 10px; font-size: 13px; }
.ext-kitty-balance { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.ext-kitty-balance > div { min-width: 0; }
.ext-kitty-label { display: block; font-size: 12px; color: var(--dd-muted); }
.ext-kitty-unit { font-size: 14px; color: var(--dd-muted); }
.ext-kitty-amount { display: flex; align-items: baseline; flex-wrap: wrap; gap: 3px 8px; }
.ext-kitty-amount strong { font-family: 'Barlow Condensed', sans-serif; font-size: 38px; line-height: 1.1; font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; min-width: 0; }
.ext-kitty-logo { flex: 0 0 56px; }
.ext-kitty-logo img { display: block; width: 56px; height: 56px; border-radius: 50%; }
.ext-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 767px) {
    .ext-family-header { grid-template-columns: 1fr; gap: 22px; margin-bottom: 22px; }
    .ext-family-banner { grid-row: 1; }
    .ext-family-identity { margin: 14px 0 18px; gap: 14px; }
    .ext-family-identity > img { width: 52px; height: 52px; }
    .ext-family-identity h1 { font-size: 36px; }
    .ext-family-identity p { font-size: 13px; }
    .ext-kitty { grid-template-columns: 1fr; padding: 22px 0; gap: 18px; }
    .ext-kitty-art { grid-row: 1; }
    .ext-kitty-copy h2 { font-size: 28px; }
    .ext-kitty-amount strong { font-size: 34px; }
    .ext-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Fund progress reuses the wallet balance read; it does not request extra RPC data. */
.ext-kitty-balance{flex-wrap:wrap;row-gap:12px}
.ext-kitty-balance>.ext-kitty-progress{flex:0 0 100%;min-width:0}
.ext-kitty-progress-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:8px;font-size:12px;color:var(--dd-muted)}
.ext-kitty-progress-heading strong{font-variant-numeric:tabular-nums;font-size:14px;color:var(--dd-lilac);white-space:nowrap}
.ext-kitty-track{height:7px;border-radius:8px;overflow:hidden;background:#ffffff12}
.ext-kitty-track>span{display:block;width:0;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--dd-pink),var(--dd-lilac));transition:width 450ms ease-out}
.ext-kitty-progress>small{display:block;margin-top:6px;font-size:11px;color:var(--dd-muted)}
@media(prefers-reduced-motion:reduce){.ext-kitty-track>span{transition:none}}
html[data-motion=reduced] .ext-kitty-track>span{transition:none}
