/*
UserPanelNext v6.6.3 — Real Hero Tabs Design
Ziel: rechte Sidebar, UserPanel-Seite und CharacterCard optisch an DesignSystemCore angleichen,
mit finaler UserCore-Identity-Anbindung.
*/

.userpanel-next-widget,
.character-card-widget,
.userpanel-next-page{
    --up-bg:var(--dsc-surface, #15100c);
    --up-bg-2:var(--dsc-surface-2, #1c140e);
    --up-line:var(--dsc-line, rgba(214,152,69,.32));
    --up-line-soft:var(--dsc-line-soft, rgba(214,152,69,.18));
    --up-accent:var(--dsc-accent, #d99a43);
    --up-accent-2:var(--dsc-accent-2, #ffbd66);
    --up-text:var(--dsc-text, #f5ead7);
    --up-muted:var(--dsc-muted, #aa9a82);
    --up-radius:var(--dsc-radius, 16px);
    --up-radius-sm:var(--dsc-radius-sm, 12px);
    --up-shadow:var(--dsc-shadow-soft, 0 14px 32px rgba(0,0,0,.28));
    display:flex;
    flex-direction:column;
    gap:14px;
    width:100%;
    max-width:100%;
    min-width:0;
    box-sizing:border-box;
}

.userpanel-next-widget *,
.character-card-widget *,
.userpanel-next-page *{
    box-sizing:border-box;
    max-width:100%;
}

.userpanel-next-v6,
.userpanel-next-v64{
    position:relative;
    overflow:hidden;
    isolation:isolate;
}

.userpanel-next-widget a,
.character-card-widget a,
.userpanel-next-page a{
    text-decoration:none;
}

.userpanel-next-hero,
.userpanel-next-page-hero{
    position:relative;
    overflow:hidden;
    border-radius:18px;
    border:1px solid var(--up-line);
    background:
        radial-gradient(circle at 10% 0%, rgba(255,153,0,.24), transparent 42%),
        radial-gradient(circle at 90% 0%, rgba(255,189,102,.12), transparent 36%),
        linear-gradient(135deg, var(--up-bg-2), #070707);
    box-shadow:var(--up-shadow), inset 0 1px 0 rgba(255,236,190,.07);
}

.userpanel-next-hero{
    min-height:124px;
}

.userpanel-next-page-hero{
    padding:22px;
}

.userpanel-next-kicker{
    display:inline-flex;
    width:max-content;
    max-width:100%;
    margin:0 0 8px;
    padding:5px 9px;
    border:1px solid var(--up-line-soft);
    border-radius:999px;
    background:rgba(217,154,67,.11);
    color:var(--up-accent-2);
    font-size:11px;
    font-weight:800;
    letter-spacing:.08em;
    text-transform:uppercase;
}

.userpanel-next-page-hero h2{
    margin:0 0 8px;
    color:var(--up-accent-2);
}

.userpanel-next-banner-img{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    object-fit:cover;
    opacity:.42;
    filter:saturate(1.08) contrast(1.08);
}

.userpanel-next-hero-overlay{
    position:absolute;
    inset:0;
    background:linear-gradient(180deg, rgba(0,0,0,.10), rgba(0,0,0,.82));
    z-index:1;
}

.userpanel-next-identity{
    position:absolute;
    left:14px;
    right:14px;
    bottom:14px;
    display:flex;
    align-items:center;
    gap:12px;
    z-index:2;
    min-width:0;
}

.userpanel-next-avatar{
    width:68px;
    height:68px;
    flex:0 0 68px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:18px;
    background:rgba(6,5,4,.82);
    border:1px solid var(--up-line);
    overflow:hidden;
    font-size:30px;
    box-shadow:0 0 18px rgba(255,153,0,.14), inset 0 1px 0 rgba(255,255,255,.05);
}

.userpanel-next-avatar img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.userpanel-next-nameblock{
    min-width:0;
}

.userpanel-next-nameblock h3,
.userpanel-next-header h3{
    margin:0;
    color:var(--up-accent-2);
    text-shadow:0 0 12px rgba(255,153,0,.15);
    line-height:1.1;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.userpanel-next-nameblock p,
.userpanel-next-header p{
    margin:4px 0 0;
    color:var(--up-muted);
    font-size:13px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.userpanel-next-status-grid{
    display:flex;
    flex-direction:column;
    gap:10px;
}

.userpanel-next-statusline,
.userpanel-next-profile-hint{
    display:flex;
    gap:10px;
    align-items:flex-start;
    min-width:0;
    border:1px solid var(--up-line-soft);
    border-radius:14px;
    padding:11px 12px;
    background:linear-gradient(180deg, rgba(217,154,67,.08), rgba(7,6,5,.74));
    color:var(--up-text);
}

.userpanel-next-statusline strong{
    font-weight:700;
    line-height:1.35;
    overflow-wrap:anywhere;
}

.userpanel-next-profile-hint{
    display:grid;
    grid-template-columns:auto minmax(0,1fr);
    align-items:center;
    color:var(--up-text);
}

.userpanel-next-profile-hint strong,
.userpanel-next-profile-hint small{
    grid-column:2;
}

.userpanel-next-profile-hint span{
    grid-row:1 / span 2;
}

.userpanel-next-profile-hint small{
    color:var(--up-muted);
}

.userpanel-next-badges{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
}

.userpanel-next-badges span{
    border:1px solid var(--up-line-soft);
    background:rgba(8,7,6,.76);
    color:var(--up-text);
    border-radius:999px;
    padding:7px 10px;
    font-size:12px;
}

.userpanel-next-stats,
.userpanel-next-quickstats{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
}

.userpanel-next-stats div,
.userpanel-next-character,
.character-card-row,
.userpanel-next-profile-card,
.userpanel-next-xpbox{
    min-width:0;
    background:linear-gradient(180deg, rgba(20,20,20,.92), rgba(10,10,10,.96));
    border:1px solid var(--up-line-soft);
    border-radius:14px;
    padding:12px;
    color:var(--up-text);
}

.userpanel-next-stats strong{
    display:block;
    color:var(--up-accent-2);
    font-size:18px;
    line-height:1.1;
    overflow-wrap:anywhere;
}

.userpanel-next-stats span{
    color:var(--up-muted);
    font-size:12px;
}

.userpanel-next-xpbox-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    color:var(--up-muted);
    margin-bottom:8px;
}

.userpanel-next-xpbox-head strong{
    color:var(--up-accent-2);
}

.userpanel-next-xpbar{
    width:100%;
    height:10px;
    background:#050505;
    border:1px solid rgba(255,255,255,.08);
    border-radius:999px;
    overflow:hidden;
}

.userpanel-next-xpbar-fill{
    height:100%;
    background:linear-gradient(90deg,var(--dsc-accent-3, #ff6600),var(--up-accent-2));
    border-radius:999px;
    box-shadow:0 0 14px rgba(255,153,0,.32);
}

.userpanel-next-xpbox small{
    display:block;
    margin-top:8px;
    color:var(--up-muted);
}

.userpanel-next-character{
    display:flex;
    flex-direction:column;
    gap:6px;
}

.userpanel-next-character p{
    margin:0;
    color:var(--up-text);
    overflow-wrap:anywhere;
}

.userpanel-next-character strong{
    color:#fff0cf;
}

.userpanel-next-links{
    display:flex;
    flex-direction:column;
    gap:10px;
}

.userpanel-next-links a,
.userpanel-next-page-actions a{
    display:flex;
    align-items:center;
    justify-content:flex-start;
    gap:8px;
    min-height:40px;
    background:linear-gradient(180deg, rgba(20,20,20,.95), rgba(10,10,10,.96));
    border:1px solid var(--up-line-soft);
    border-radius:12px;
    padding:11px 12px;
    color:var(--up-text);
    text-decoration:none;
    transition:transform .16s ease, border-color .16s ease, box-shadow .16s ease;
    min-width:0;
    overflow-wrap:anywhere;
}

.userpanel-next-links a:hover,
.userpanel-next-page-actions a:hover{
    border-color:var(--dsc-line-strong, #ffbd66);
    color:var(--up-accent-2);
    transform:translateY(-1px);
    box-shadow:var(--dsc-glow, 0 0 24px rgba(217,154,67,.16));
}

.character-card-widget{
    gap:10px;
}

.character-card-widget h3{
    margin:0 0 4px;
    color:var(--up-accent-2);
}

.character-card-row{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
}

.character-card-row span{
    color:var(--up-muted);
    min-width:0;
}

.character-card-row strong{
    color:var(--up-accent-2);
    text-align:right;
    min-width:0;
    overflow-wrap:anywhere;
}

.userpanel-next-page-v6,
.userpanel-next-page-v64{
    gap:18px;
}

.userpanel-next-module-nav{
    margin-bottom:0;
}

.userpanel-next-page-lead{
    margin:0;
    color:var(--up-muted);
}

.userpanel-next-dashboard{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
    gap:16px;
    align-items:stretch;
}

.userpanel-next-profile-card h3{
    margin-top:0;
    color:var(--up-accent-2);
}

.userpanel-next-profile-card p{
    color:var(--up-text);
    overflow-wrap:anywhere;
}

.userpanel-next-profile-card strong{
    color:#fff0cf;
}

.userpanel-next-page-actions{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
}

body.design-system-core-active .userpanel-next-widget,
body.design-system-core-active .character-card-widget,
body.design-system-core-active .userpanel-next-page{
    border-color:var(--dsc-line) !important;
}

body.design-system-core-active .userpanel-next-widget .dsc-card,
body.design-system-core-active .character-card-widget .dsc-card,
body.design-system-core-active .userpanel-next-page .dsc-card{
    box-shadow:inset 0 1px 0 rgba(255,236,190,.05);
}

@media (max-width: 1180px){
    .userpanel-next-stats,
    .userpanel-next-quickstats{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
}

@media (max-width: 720px){
    .userpanel-next-identity{
        align-items:flex-end;
    }

    .userpanel-next-avatar{
        width:58px;
        height:58px;
        flex-basis:58px;
        font-size:26px;
    }

    .userpanel-next-dashboard{
        grid-template-columns:1fr;
    }

    .userpanel-next-page-actions{
        flex-direction:column;
    }
}


/* v6.5.0 — UserCore Identity Bridge */
.userpanel-next-v65 .userpanel-next-runtime-source,
.userpanel-next-page-v65 .userpanel-next-runtime-source{
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:8px 12px;
    border-color:var(--up-line-soft);
    background:linear-gradient(180deg, rgba(217,154,67,.10), rgba(7,6,5,.76));
}

.userpanel-next-v65 .userpanel-next-runtime-source span,
.userpanel-next-page-v65 .userpanel-next-runtime-source span{
    color:var(--up-muted);
    font-size:12px;
}

.character-card-widget-v65 .character-card-profile-link{
    width:100%;
    justify-content:center;
    margin-bottom:2px;
}

.userpanel-next-v65 .userpanel-next-links-v6 a,
.userpanel-next-page-v65 .userpanel-next-page-actions a{
    border-color:var(--up-line-soft);
}

.userpanel-next-v65 .userpanel-next-online-line strong{
    color:#bbffba;
}

.userpanel-next-v65 .userpanel-next-profile-hint{
    border-style:dashed;
}


/* v6.6.0 — CharacterCore Mini Bridge */
.userpanel-next-v66 .userpanel-next-character-mini,
.userpanel-next-page-v66 .userpanel-next-profile-card{
    position:relative;
}

.userpanel-next-character-head{
    display:flex;
    align-items:center;
    gap:10px;
    margin-bottom:4px;
    min-width:0;
}

.userpanel-next-character-icon{
    width:34px;
    height:34px;
    flex:0 0 34px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:12px;
    border:1px solid var(--up-line);
    background:rgba(217,154,67,.10);
    box-shadow:inset 0 1px 0 rgba(255,236,190,.06);
}

.userpanel-next-character-head strong{
    display:block;
    color:var(--up-accent-2);
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.userpanel-next-character-head small{
    display:block;
    color:var(--up-muted);
    font-size:11px;
    margin-top:2px;
}

.userpanel-next-character-mini-stats{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
    margin-top:8px;
}

.userpanel-next-character-mini-stats span{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:6px;
    min-width:0;
    padding:7px 8px;
    border:1px solid var(--up-line-soft);
    border-radius:10px;
    background:rgba(5,5,5,.45);
    color:var(--up-muted);
    font-size:12px;
}

.userpanel-next-character-mini-stats strong{
    color:var(--up-accent-2);
}

.userpanel-next-character-btn{
    margin-top:8px;
    justify-content:center;
}

.character-card-action-row{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
    width:100%;
}

.character-card-widget-v66 .character-card-profile-link{
    margin-bottom:0;
}

.character-card-source-row strong{
    color:#bbffba;
}
/* v6.6.3 — Real Hero Tabs Design
   Ziel: Die UserPanelNext-Navigation wirkt wie echte Reiter an der Hero-Card,
   nicht wie lose Textlinks. */
.userpanel-next-page-v663 .userpanel-next-hero-tabs-shell{
    position:relative;
    display:flex;
    flex-direction:column;
    gap:0;
    margin:0 0 10px;
    padding-top:2px;
}

.userpanel-next-page-v663 .userpanel-next-hero-tabs{
    position:relative;
    z-index:3;
    display:flex;
    flex-wrap:wrap;
    align-items:flex-end;
    gap:0;
    margin:0 0 -1px 18px;
    padding:0;
    max-width:calc(100% - 36px);
    isolation:isolate;
}

.userpanel-next-page-v663 .userpanel-next-hero-tab{
    position:relative;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    min-height:44px;
    margin:0 4px 0 0;
    padding:10px 17px 11px;
    border:1px solid rgba(214,152,69,.34);
    border-bottom-color:rgba(214,152,69,.18);
    border-radius:15px 15px 0 0;
    color:var(--up-muted);
    background:
        linear-gradient(180deg, rgba(34,24,16,.94), rgba(12,9,7,.96));
    box-shadow:
        inset 0 1px 0 rgba(255,231,174,.08),
        0 -2px 18px rgba(0,0,0,.22);
    font-weight:800;
    line-height:1.1;
    text-decoration:none;
    transform:translateY(6px);
    transition:
        transform .16s ease,
        color .16s ease,
        border-color .16s ease,
        background .16s ease,
        box-shadow .16s ease;
}

.userpanel-next-page-v663 .userpanel-next-hero-tab:hover{
    color:var(--up-accent-2);
    border-color:rgba(255,189,102,.56);
    background:
        radial-gradient(circle at 50% 0%, rgba(255,189,102,.18), transparent 58%),
        linear-gradient(180deg, rgba(46,31,19,.96), rgba(16,11,8,.98));
    transform:translateY(2px);
}

.userpanel-next-page-v663 .userpanel-next-hero-tab.is-active,
.userpanel-next-page-v663 .userpanel-next-hero-tab[aria-current="page"]{
    color:#fff0cf;
    border-color:rgba(255,189,102,.72);
    border-bottom-color:rgba(45,28,17,.98);
    background:
        radial-gradient(circle at 50% 0%, rgba(255,189,102,.24), transparent 62%),
        linear-gradient(180deg, rgba(64,39,22,.98), rgba(31,20,13,.98));
    box-shadow:
        inset 0 1px 0 rgba(255,239,196,.14),
        0 -4px 22px rgba(217,154,67,.08),
        0 0 0 1px rgba(255,189,102,.05);
    transform:translateY(0);
}

.userpanel-next-page-v663 .userpanel-next-hero-tab.is-active::after,
.userpanel-next-page-v663 .userpanel-next-hero-tab[aria-current="page"]::after{
    content:"";
    position:absolute;
    left:0;
    right:0;
    bottom:-2px;
    height:3px;
    background:linear-gradient(90deg, rgba(255,189,102,.72), rgba(217,154,67,.18));
    pointer-events:none;
}

.userpanel-next-page-v663 .userpanel-next-page-hero{
    position:relative;
    z-index:2;
    border-top-left-radius:14px;
    border-top-right-radius:18px;
    padding-top:28px;
}

.userpanel-next-page-v663 .userpanel-next-page-hero::before{
    content:"";
    position:absolute;
    left:18px;
    right:18px;
    top:0;
    height:1px;
    background:linear-gradient(90deg, rgba(255,189,102,.58), rgba(255,189,102,.08), transparent);
    pointer-events:none;
}

@media (max-width:720px){
    .userpanel-next-page-v663 .userpanel-next-hero-tabs{
        margin-left:8px;
        max-width:calc(100% - 16px);
        gap:4px;
    }

    .userpanel-next-page-v663 .userpanel-next-hero-tab{
        flex:1 1 130px;
        min-height:40px;
        margin-right:0;
        padding:9px 11px;
        border-radius:13px 13px 0 0;
        transform:translateY(4px);
    }

    .userpanel-next-page-v663 .userpanel-next-hero-tab.is-active,
    .userpanel-next-page-v663 .userpanel-next-hero-tab[aria-current="page"]{
        transform:translateY(0);
    }

    .userpanel-next-page-v663 .userpanel-next-page-hero{
        padding-top:22px;
    }
}


/* v6.6.5 — Bronze Shell Main Page Alignment
   UserPanelNext-Hauptseite nutzt jetzt denselben ruhigen Bronze-Shell/Card-Standard
   wie DashboardNext/NewsNext/ForumNext, ohne Sidebar-Widgets oder Logik zu ändern. */
.userpanel-next-page-v665{
    position:relative;
    isolation:isolate;
    overflow:hidden;
    padding:20px;
    border:1px solid rgba(214,152,69,.34);
    border-radius:24px;
    background:
        radial-gradient(ellipse at 14% 4%, rgba(217,154,67,.13), transparent 38%),
        radial-gradient(ellipse at 82% 34%, rgba(255,189,102,.055), transparent 46%),
        radial-gradient(ellipse at 22% 92%, rgba(217,154,67,.07), transparent 42%),
        linear-gradient(135deg, rgba(29,21,13,.82), rgba(7,7,6,.96) 46%, rgba(13,10,7,.93));
    box-shadow:
        0 18px 46px rgba(0,0,0,.30),
        inset 0 1px 0 rgba(255,236,190,.055),
        inset 0 0 0 1px rgba(255,189,102,.025);
}

.userpanel-next-page-v665::before{
    content:"";
    position:absolute;
    inset:0;
    z-index:0;
    pointer-events:none;
    border-radius:inherit;
    background:
        linear-gradient(115deg, rgba(255,189,102,.035), transparent 28%, rgba(217,154,67,.04) 64%, transparent 100%);
    opacity:.9;
}

.userpanel-next-page-v665 > *{
    position:relative;
    z-index:1;
}

.userpanel-next-page-v665 .userpanel-next-hero-tabs-shell{
    margin:0 0 16px;
}

.userpanel-next-page-v665 .userpanel-next-hero-tabs{
    margin-left:18px;
    margin-bottom:-1px;
}

.userpanel-next-page-v665 .userpanel-next-hero-tab{
    min-height:52px;
    padding:13px 22px 14px;
    font-size:15px;
    border-radius:17px 17px 0 0;
}

.userpanel-next-page-v665 .userpanel-next-page-hero{
    padding:28px 30px;
    border-color:rgba(255,189,102,.34);
    border-radius:20px;
    background:
        radial-gradient(ellipse at 16% 0%, rgba(217,154,67,.20), transparent 42%),
        radial-gradient(ellipse at 84% 8%, rgba(255,189,102,.085), transparent 40%),
        linear-gradient(135deg, rgba(37,26,16,.92), rgba(8,8,7,.98) 58%, rgba(13,10,8,.96));
    box-shadow:
        0 18px 36px rgba(0,0,0,.22),
        inset 0 1px 0 rgba(255,236,190,.07);
}

.userpanel-next-page-v665 .userpanel-next-page-hero h2{
    font-size:clamp(30px, 4.2vw, 54px);
    line-height:1.03;
    letter-spacing:.01em;
}

.userpanel-next-page-v665 .userpanel-next-page-lead{
    max-width:880px;
    font-size:15px;
    line-height:1.7;
}

.userpanel-next-page-v665 .userpanel-next-runtime-source,
.userpanel-next-page-v665 .userpanel-next-profile-card{
    border-color:rgba(214,152,69,.24);
    background:
        radial-gradient(ellipse at 18% 0%, rgba(217,154,67,.085), transparent 42%),
        linear-gradient(180deg, rgba(20,15,10,.84), rgba(6,6,5,.94));
    box-shadow:inset 0 1px 0 rgba(255,236,190,.04);
}

.userpanel-next-page-v665 .userpanel-next-dashboard{
    gap:18px;
}

@media (max-width:720px){
    .userpanel-next-page-v665{
        padding:14px;
        border-radius:18px;
    }

    .userpanel-next-page-v665 .userpanel-next-hero-tabs{
        margin-left:8px;
    }

    .userpanel-next-page-v665 .userpanel-next-hero-tab{
        min-height:44px;
        padding:10px 13px 11px;
        font-size:14px;
    }

    .userpanel-next-page-v665 .userpanel-next-page-hero{
        padding:22px 18px;
    }
}


/* v6.6.9 — Account Quicklink */
.userpanel-next-v669 .userpanel-next-account-link{
    font-weight:700;
}

.userpanel-next-v669 .userpanel-next-account-link::after{
    content:"";
    margin-left:auto;
}


/* v6.6.10 — Charname/DisplayName Sync für rechtes UserPanel */
.userpanel-next-v6610 .userpanel-next-nameblock .userpanel-next-account-name{
    display:block;
    margin-top:3px;
    color:var(--up-muted);
    font-size:11px;
    line-height:1.25;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.userpanel-next-v6610 .userpanel-next-character-head > div{
    display:block;
    min-width:0;
}

.userpanel-next-v6610 .userpanel-next-character p{
    display:block;
    clear:both;
    line-height:1.35;
}

.userpanel-next-v6610 .userpanel-next-character-head + p{
    margin-top:5px;
}

.userpanel-next-v6610 .userpanel-next-character strong{
    overflow-wrap:anywhere;
}


/* v6.6.11 — OnlineNext Quicklink im rechten UserPanel */
.userpanel-next-v6611 .userpanel-next-online-link{
    font-weight:800;
    border-color:rgba(95, 207, 132, .28);
    background:
        radial-gradient(circle at 12% 0%, rgba(95, 207, 132, .14), transparent 46%),
        linear-gradient(180deg, rgba(217,154,67,.11), rgba(8,7,6,.82));
}

.userpanel-next-v6611 .userpanel-next-online-link:hover,
.userpanel-next-v6611 .userpanel-next-online-link:focus{
    border-color:rgba(95, 207, 132, .48);
}

.userpanel-next-page-v6611 .userpanel-next-dashboard a[href*="online-next"]{
    color:var(--up-accent-2);
    font-weight:800;
}

/* v6.6.12 — CompactCleanRightPanel
   Ziel: rechtes UserPanel wieder kompakt, ruhig und lesbar machen.
   Funktionen bleiben erhalten; nur Sidebar-Darstellung wird verdichtet. */
.userpanel-next-v6612{
    gap:10px;
    padding:14px;
}

.userpanel-next-v6612 .userpanel-next-hero{
    min-height:104px;
    border-radius:16px;
}

.userpanel-next-v6612 .userpanel-next-identity{
    left:12px;
    right:12px;
    bottom:12px;
    gap:10px;
}

.userpanel-next-v6612 .userpanel-next-avatar{
    width:56px;
    height:56px;
    flex-basis:56px;
    border-radius:15px;
    font-size:25px;
}

.userpanel-next-v6612 .userpanel-next-nameblock h3{
    font-size:18px;
    line-height:1.1;
}

.userpanel-next-v6612 .userpanel-next-nameblock p{
    font-size:12px;
    margin-top:3px;
}

.userpanel-next-v6612 .userpanel-next-nameblock .userpanel-next-account-name{
    font-size:10.5px;
    opacity:.86;
}

.userpanel-next-v6612 .userpanel-next-status-grid{
    gap:7px;
}

.userpanel-next-v6612 .userpanel-next-statusline{
    min-height:34px;
    padding:8px 10px;
    border-radius:12px;
    align-items:center;
    gap:8px;
}

.userpanel-next-v6612 .userpanel-next-statusline strong{
    font-size:13px;
    line-height:1.25;
}

.userpanel-next-v6612 .userpanel-next-online-line strong{
    color:#bbffba;
}

.userpanel-next-v6612 .userpanel-next-stats,
.userpanel-next-v6612 .userpanel-next-quickstats{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:7px;
}

.userpanel-next-v6612 .userpanel-next-stats div{
    min-height:48px;
    padding:8px 10px;
    border-radius:12px;
}

.userpanel-next-v6612 .userpanel-next-stats strong{
    font-size:17px;
}

.userpanel-next-v6612 .userpanel-next-stats span{
    font-size:11px;
}

.userpanel-next-v6612 .userpanel-next-xpbox{
    padding:10px;
    border-radius:12px;
}

.userpanel-next-v6612 .userpanel-next-xpbox-head{
    margin-bottom:6px;
    font-size:13px;
}

.userpanel-next-v6612 .userpanel-next-xpbar{
    height:8px;
}

.userpanel-next-v6612 .userpanel-next-xpbox small{
    margin-top:6px;
    font-size:11.5px;
}

.userpanel-next-v6612 .userpanel-next-character{
    gap:8px;
    padding:10px;
    border-radius:14px;
}

.userpanel-next-v6612 .userpanel-next-character-head{
    gap:8px;
    margin:0;
    align-items:center;
}

.userpanel-next-v6612 .userpanel-next-character-icon{
    width:30px;
    height:30px;
    flex-basis:30px;
    border-radius:10px;
    font-size:16px;
}

.userpanel-next-v6612 .userpanel-next-character-head strong{
    font-size:14px;
    line-height:1.15;
    white-space:normal;
    overflow:visible;
    text-overflow:clip;
}

.userpanel-next-v6612 .userpanel-next-character-head small{
    font-size:10.5px;
}

.userpanel-next-v6612 .userpanel-next-character-meta{
    display:grid;
    grid-template-columns:1fr;
    gap:5px;
    margin-top:2px;
}

.userpanel-next-v6612 .userpanel-next-character-meta span{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:8px;
    min-width:0;
    padding:5px 7px;
    border:1px solid rgba(214,152,69,.16);
    border-radius:9px;
    background:rgba(5,5,5,.30);
    color:var(--up-muted);
    line-height:1.2;
}

.userpanel-next-v6612 .userpanel-next-character-meta strong{
    flex:0 0 auto;
    color:#fff0cf;
    font-size:11px;
}

.userpanel-next-v6612 .userpanel-next-character-meta em{
    min-width:0;
    color:var(--up-muted);
    font-size:11.5px;
    font-style:normal;
    text-align:right;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.userpanel-next-v6612 .userpanel-next-character-mini-stats{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:6px;
    margin-top:0;
}

.userpanel-next-v6612 .userpanel-next-character-mini-stats span{
    min-height:30px;
    padding:6px 7px;
    border-radius:9px;
    font-size:11px;
    gap:4px;
    white-space:nowrap;
}

.userpanel-next-v6612 .userpanel-next-character-mini-stats strong{
    font-size:12px;
    white-space:nowrap;
}

.userpanel-next-v6612 .userpanel-next-character-btn{
    width:100%;
    min-height:34px;
    margin-top:2px;
    padding:8px 10px;
    justify-content:center;
    border-radius:10px;
    font-size:13px;
    line-height:1.1;
    white-space:nowrap;
}

.userpanel-next-v6612 .userpanel-next-links{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:7px;
}

.userpanel-next-v6612 .userpanel-next-links a{
    min-height:36px;
    padding:8px 9px;
    border-radius:11px;
    justify-content:center;
    text-align:center;
    font-size:13px;
    line-height:1.15;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

.userpanel-next-v6612 .userpanel-next-online-link{
    grid-column:1 / -1;
    min-height:34px;
}

.userpanel-next-v6612 .userpanel-next-account-link::after{
    display:none;
}

@media (max-width:1280px){
    .userpanel-next-v6612 .userpanel-next-character-mini-stats{
        grid-template-columns:1fr;
    }
}



/* v6.6.13 — CharacterCore Avatar Source Bridge
   Das rechte UserPanel nutzt CharacterCore als sichtbare Avatar-/Editor-Quelle.
   Die echte Layer-/Asset-Vorschau kommt später über MediaCore/CharacterCore-Assets. */
.userpanel-next-v6613 .userpanel-next-avatar-source-row{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:8px;
    padding:7px 9px;
    border:1px solid rgba(214,152,69,.20);
    border-radius:10px;
    background:linear-gradient(180deg, rgba(217,154,67,.10), rgba(6,6,6,.34));
    font-size:11.5px;
    color:var(--up-muted);
}

.userpanel-next-v6613 .userpanel-next-avatar-source-row span{
    color:#ffe0a4;
    font-weight:800;
}

.userpanel-next-v6613 .userpanel-next-avatar-source-row a{
    color:#f4b35e;
    font-weight:800;
    text-decoration:none;
    white-space:nowrap;
}

.userpanel-next-v6613 .userpanel-next-avatar-summary{
    padding:7px 9px;
    border:1px solid rgba(126,91,49,.28);
    border-radius:10px;
    background:rgba(0,0,0,.24);
    color:#d8c5a7;
    font-size:11.5px;
    line-height:1.35;
    overflow-wrap:anywhere;
}

.userpanel-next-v6613 .userpanel-next-character-actions{
    display:grid;
    grid-template-columns:1fr;
    gap:6px;
}

.userpanel-next-v6613 .userpanel-next-avatar-edit-btn{
    border-color:rgba(154,111,255,.26);
    background:linear-gradient(180deg, rgba(154,111,255,.10), rgba(8,7,6,.78));
}

.character-card-widget-v6613 .character-card-action-row{
    grid-template-columns:1fr;
}


/* v6.6.14 — Character Avatar Compact UI Fix
   Beruhigt den CharacterCore-Avatarblock im rechten UserPanel.
   Avatar bleibt CharacterCore-Quelle; echte Layer-/Asset-Grafiken kommen später. */
.userpanel-next-v6614 .userpanel-next-character-mini{
    gap:8px;
    padding:12px;
}

.userpanel-next-v6614 .userpanel-next-character-head{
    margin-bottom:2px;
}

.userpanel-next-v6614 .userpanel-next-avatar-source-row{
    min-height:0;
    padding:6px 8px;
    border-radius:10px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:8px;
    background:linear-gradient(180deg, rgba(217,154,67,.08), rgba(6,6,6,.38));
}

.userpanel-next-v6614 .userpanel-next-avatar-source-row span{
    display:inline-flex;
    align-items:center;
    width:auto;
    max-width:calc(100% - 92px);
    min-width:0;
    padding:3px 7px;
    border-radius:999px;
    border:1px solid rgba(96,220,139,.24);
    background:rgba(22,94,45,.18);
    color:#bdf5c6;
    font-size:11px;
    line-height:1.1;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

.userpanel-next-v6614 .userpanel-next-avatar-source-row a{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    flex:0 0 auto;
    min-height:24px;
    padding:4px 8px;
    border:1px solid rgba(214,152,69,.25);
    border-radius:999px;
    background:rgba(0,0,0,.28);
    color:var(--up-accent-2);
    font-size:11px;
    line-height:1.1;
    white-space:nowrap;
}

.userpanel-next-v6614 .userpanel-next-avatar-chipline{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:6px;
}

.userpanel-next-v6614 .userpanel-next-avatar-chipline span{
    min-width:0;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:6px;
    padding:6px 7px;
    border:1px solid rgba(214,152,69,.16);
    border-radius:9px;
    background:rgba(3,3,3,.34);
    color:var(--up-text);
    font-size:11px;
    line-height:1.15;
}

.userpanel-next-v6614 .userpanel-next-avatar-chipline strong{
    flex:0 0 auto;
    color:var(--up-accent-2);
    font-size:10.5px;
}

.userpanel-next-v6614 .userpanel-next-avatar-chipline span{
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.userpanel-next-v6614 .userpanel-next-avatar-summary{
    max-height:42px;
    overflow:hidden;
    font-size:11px;
}

.userpanel-next-v6614 .userpanel-next-character-meta{
    display:grid;
    grid-template-columns:1fr;
    gap:6px;
}

.userpanel-next-v6614 .userpanel-next-character-meta span{
    min-height:28px;
    padding:5px 7px;
    border-radius:9px;
}

.userpanel-next-v6614 .userpanel-next-character-meta strong{
    font-size:10.5px;
}

.userpanel-next-v6614 .userpanel-next-character-meta em{
    font-size:11.5px;
    max-width:58%;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.userpanel-next-v6614 .userpanel-next-character-actions{
    display:grid;
    grid-template-columns:1fr;
    gap:6px;
    margin-top:2px;
}

.userpanel-next-v6614 .userpanel-next-character-actions .userpanel-next-character-btn{
    min-height:32px;
    padding:7px 9px;
    border-radius:10px;
    font-size:12px;
    line-height:1.1;
    justify-content:center;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

.userpanel-next-v6614 .userpanel-next-character-mini-stats{
    gap:6px;
}

.userpanel-next-v6614 .userpanel-next-character-mini-stats span{
    min-height:30px;
    padding:6px 7px;
    font-size:11.5px;
}

@media (max-width:1280px){
    .userpanel-next-v6614 .userpanel-next-avatar-chipline{
        grid-template-columns:1fr;
    }
}
