/* ARTBUILD Role Dashboards — scoped frontend only */

.artbuild-plugin.abp-rd,
.artbuild-plugin.abp-rd * {
    box-sizing: border-box;
}

.artbuild-plugin.abp-rd {
    display: grid;
    grid-template-columns: 270px minmax(0,1fr);
    gap: 22px;
    max-width: 1180px;
    margin: 0 auto;
    padding: 24px;
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(31,111,255,.22), transparent 34%),
        linear-gradient(135deg, #071b2b, #061827);
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 28px;
    overflow: hidden;
}

.abp-rd a {
    text-decoration: none !important;
}

.abp-rd-sidebar,
.abp-rd-hero,
.abp-rd-card,
.abp-rd-panel,
.abp-rd-login {
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.035)),
        #092033;
    border: 1px solid rgba(255,255,255,.09);
    box-shadow: 0 24px 70px rgba(0,0,0,.18);
}

.abp-rd-sidebar {
    padding: 18px;
}

.abp-rd-brand {
    padding: 16px;
    margin-bottom: 14px;
    border-radius: 18px;
    background: rgba(2,12,22,.42);
    border: 1px solid rgba(255,255,255,.08);
}

.abp-rd-brand span {
    display: block;
    color: #ffffff;
    font-size: 20px;
    line-height: 1;
    font-weight: 950;
    letter-spacing: .04em;
}

.abp-rd-brand small {
    display: block;
    margin-top: 6px;
    color: #f2b705;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .10em;
    text-transform: uppercase;
}

.abp-rd-nav {
    display: grid;
    gap: 9px;
}

.abp-rd-nav a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 11px 13px;
    border-radius: 16px;
    background: rgba(255,255,255,.055);
    border: 1px solid rgba(255,255,255,.08);
    color: rgba(255,255,255,.78) !important;
    font-size: 14px;
    font-weight: 900;
    transition: transform .18s ease, background .18s ease, color .18s ease;
}

.abp-rd-nav a:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #1f6fff, #0f58d6);
    color: #ffffff !important;
}

.abp-rd-main {
    min-width: 0;
    display: grid;
    gap: 18px;
}

.abp-rd-hero {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
    padding: 24px;
}

.abp-rd-kicker {
    display: inline-flex;
    padding: 8px 13px;
    border-radius: 999px;
    background: rgba(31,111,255,.12);
    color: #7db6ff;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.abp-rd-hero h1,
.abp-rd-login h2 {
    margin: 14px 0 10px;
    color: #ffffff;
    font-size: clamp(34px,5vw,58px);
    line-height: .96;
    font-weight: 950;
    letter-spacing: -.045em;
}

.abp-rd-hero p,
.abp-rd-login p {
    max-width: 720px;
    margin: 0;
    color: rgba(255,255,255,.66);
    font-size: 16px;
    line-height: 1.55;
}

.abp-rd-user {
    margin-top: 12px !important;
    color: #7db6ff !important;
    font-weight: 900;
}

.abp-rd-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 13px 18px;
    border-radius: 16px;
    background: linear-gradient(135deg, #1f6fff, #0f58d6);
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 900;
    white-space: nowrap;
    transition: transform .18s ease;
}

.abp-rd-button:hover {
    transform: translateY(-2px);
}

.abp-rd-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 18px;
}

.abp-rd-card {
    display: block;
    min-height: 190px;
    padding: 22px;
    color: #ffffff !important;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.abp-rd-card:hover {
    transform: translateY(-3px);
    border-color: rgba(77,163,255,.38);
    box-shadow: 0 28px 90px rgba(31,111,255,.14);
}

.abp-rd-card span {
    display: inline-flex;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(31,111,255,.12);
    color: #7db6ff;
    font-size: 12px;
    font-weight: 900;
}

.abp-rd-tone-green span {
    background: rgba(35,195,120,.12);
    color: #7ff0b7;
}

.abp-rd-tone-gold span {
    background: rgba(242,183,5,.12);
    color: #f2d36b;
}

.abp-rd-tone-risk span {
    background: rgba(255,79,63,.10);
    color: #ffaaa4;
}

.abp-rd-card h3 {
    margin: 14px 0 10px;
    color: #ffffff;
    font-size: 24px;
    line-height: 1.12;
    font-weight: 950;
}

.abp-rd-card p {
    margin: 0;
    color: rgba(255,255,255,.66);
    font-size: 14px;
    line-height: 1.5;
}

.abp-rd-panel {
    padding: 22px;
}

.abp-rd-panel h2 {
    margin: 0 0 16px;
    color: #ffffff;
    font-size: 22px;
    font-weight: 950;
}

.abp-rd-flow {
    display: grid;
    grid-template-columns: repeat(5,minmax(0,1fr));
    gap: 10px;
}

.abp-rd-flow span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 12px;
    border-radius: 16px;
    background: rgba(31,111,255,.12);
    color: #7db6ff;
    font-size: 13px;
    font-weight: 900;
}

.abp-rd-login {
    max-width: 720px;
    margin: 0 auto;
    padding: 28px;
}

@media (max-width: 980px) {
    .artbuild-plugin.abp-rd {
        grid-template-columns: 1fr;
        padding: 18px;
        border-radius: 22px;
    }

    .abp-rd-nav {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

    .abp-rd-hero {
        flex-direction: column;
    }

    .abp-rd-grid {
        grid-template-columns: 1fr;
    }

    .abp-rd-flow {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .abp-rd-nav {
        grid-template-columns: 1fr;
    }

    .abp-rd-button {
        width: 100%;
    }
}
