:root{--bg:#07090d;--panel:#0f131b;--panel2:#131925;--text:#edf2f7;--muted:#9da8b5;--line:#252d38;--accent:#ff3838;--accent2:#ff6464}
*{box-sizing:border-box}
body{margin:0;background:radial-gradient(circle at 75% 0%,#271010 0,#07090d 35%),var(--bg);color:var(--text);font:15px/1.55 Inter,"Segoe UI",Arial,sans-serif;direction:ltr;text-align:left}
a{color:inherit}
.shell{max-width:1180px;margin:auto;padding:0 22px}
header{height:78px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}
.brand{display:flex;gap:10px;align-items:center;color:#fff;text-decoration:none;font-weight:900;letter-spacing:.16em;white-space:nowrap}
.brand-mark{display:grid;place-items:center;width:34px;height:34px;border:1px solid #ef3d3d;border-radius:9px;color:#ff5555;font-weight:900}
nav{display:flex;gap:8px;align-items:center;flex-wrap:nowrap}
nav a{color:#b7c0cb;text-decoration:none;padding:10px 12px;border-radius:8px;white-space:nowrap}
nav a:hover,nav a.active{color:#fff;background:#111822}
.btn{display:inline-block;border:1px solid #343e4c;padding:10px 15px;border-radius:9px;color:#fff;text-decoration:none;background:#111720;cursor:pointer}
.btn.primary{background:linear-gradient(135deg,#e52d2d,#ff5454);border-color:#ff5454}
.btn.ghost{background:transparent}
.eyebrow{font-size:12px;letter-spacing:.18em;color:#ff6262;font-weight:800}
.profile{margin:55px 0;padding:28px;background:linear-gradient(180deg,#111722,#0c1118);border:1px solid var(--line);border-radius:16px;box-shadow:0 15px 40px rgba(0,0,0,.45)}
.profile-head{display:flex;gap:17px;align-items:center}
.avatar{width:74px;height:74px;border:2px solid;border-radius:18px;display:grid;place-items:center;font-size:32px;font-weight:900;flex-shrink:0}
.profile-head h1{font-size:42px;line-height:1.05;margin:3px 0 9px;letter-spacing:-.04em}
.pill{display:inline-block;padding:5px 8px;border-radius:999px;border:1px solid color-mix(in srgb,var(--pill) 65%,#2a3340);color:var(--pill);font-size:11px;font-weight:900}
.profile-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:28px}
.profile-grid>div{background:#0a0e14;border:1px solid #222a35;border-radius:10px;padding:14px;min-height:76px}
.profile-grid strong{display:block;font-size:21px;line-height:1.2;margin-top:4px}
.profile-grid span{display:block;color:#8792a1;font-size:12px;margin-top:2px}
.notice{padding:18px 20px;color:#b8c3cf;margin:24px 0;background:#10161f;border:1px solid var(--line);border-radius:12px}
.notice strong{color:#fff}
footer{padding:44px 0 28px;color:#697483;text-align:center}
.danger{color:#ff6565}.ok{color:#4ce285}

/* Exact early preferred dashboard additions */
.dashboard-sections{display:grid;gap:16px;margin-top:22px}
.dashboard-section-card{background:linear-gradient(180deg,#111722,#0c1118);border:1px solid var(--line);border-radius:16px;padding:22px;box-shadow:0 15px 40px rgba(0,0,0,.28)}
.dashboard-section-head{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:16px}
.dashboard-section-head h2{margin:5px 0 0;font-size:26px;line-height:1.15}
.dashboard-list{display:grid;gap:9px}
.dashboard-list-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 15px;background:#0a0e14;border:1px solid #222a35;border-radius:11px;color:#eef3f8;text-decoration:none;transition:.18s ease}
.dashboard-list-row:hover{background:#101722;border-color:#343f4d;transform:translateY(-1px)}
.dashboard-list-row strong{display:block;font-size:15px}.dashboard-list-row span{display:block;margin-top:3px;color:#818c9b;font-size:12px}.dashboard-list-row b{color:#8ae6a5;white-space:nowrap}
.dashboard-empty{color:#8c97a5;background:#0a0e14;border:1px solid #222a35;border-radius:11px;padding:16px}
.dashboard-team-value{display:flex;flex-direction:column;gap:4px;padding:22px;border:1px solid var(--line);border-radius:12px;background:#0a0e14}
.dashboard-team-value strong{font-size:23px}.dashboard-team-value span{color:#8792a1;font-size:12px}
.dashboard-skin-card{display:grid;grid-template-columns:250px 1fr;gap:28px;align-items:center;margin-top:16px;padding:24px;background:linear-gradient(180deg,#111722,#0c1118);border:1px solid var(--line);border-radius:16px;box-shadow:0 15px 40px rgba(0,0,0,.28)}
.dashboard-skin-preview{min-height:330px;display:grid;place-items:end center;overflow:hidden;border-radius:13px;background:radial-gradient(circle at 50% 35%,#202a38 0,#0a0e14 70%);border:1px solid #222a35}
.dashboard-skin-preview img{display:block;width:auto;max-width:90%;max-height:310px;object-fit:contain}
.dashboard-skin-fallback{place-items:center;width:100%;min-height:330px;color:#7f8997}
.dashboard-skin-info h2{margin:7px 0 8px;font-size:30px;line-height:1.15}.dashboard-skin-info p{color:#c4ced8;margin:0 0 8px}.dashboard-skin-info small{display:block;max-width:560px;color:#7f8997}

@media(max-width:820px){.profile-grid{grid-template-columns:1fr 1fr}.profile{padding:22px}}
@media(max-width:720px){.dashboard-skin-card{grid-template-columns:1fr}.dashboard-skin-preview{min-height:280px}}
@media(max-width:620px){nav a{padding:8px 7px;font-size:12px}.profile-grid{grid-template-columns:1fr}.dashboard-section-head{align-items:stretch;flex-direction:column}.dashboard-list-row{align-items:flex-start;flex-direction:column}}


/* Early UCP login-only styles */

/*
 * UCP login page styling.
 * Recreates the early Arkham UCP layout without changing
 * the global homepage/public-page styling.
 */

.ucp-early-header {
    height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid var(--line);
}

.ucp-early-header nav {
    display: flex;
    gap: 8px;
    align-items: center;
}

.ucp-login-card {
    max-width: 820px;
    margin: 70px auto 65px;
    padding: 36px;
    background: linear-gradient(180deg, #111722, #0c1118);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, .42);
}

.ucp-login-heading {
    max-width: 720px;
}

.ucp-login-heading h1 {
    font-size: 42px;
    line-height: 1.08;
    margin: 8px 0 14px;
    letter-spacing: -.04em;
}

.ucp-login-heading p {
    margin: 0;
    max-width: 700px;
    color: var(--muted);
    font-size: 16px;
}

.ucp-error {
    margin-top: 24px;
}

.ucp-signed-in-card {
    margin-top: 28px;
    padding: 20px 22px;
    border: 1px solid #222a35;
    border-radius: 12px;
    background: #0a0e14;
}

.ucp-signed-in-label {
    color: #8792a1;
    font-size: 13px;
    margin-bottom: 5px;
}

.ucp-signed-in-name {
    display: block;
    font-size: 22px;
    color: #fff;
}

.ucp-login-form {
    margin-top: 28px;
}

.ucp-information {
    margin-top: 28px;
}

.ucp-actions {
    margin-top: 24px;
}

@media (max-width: 720px) {
    .ucp-login-card {
        margin-top: 45px;
        padding: 24px;
    }

    .ucp-login-heading h1 {
        font-size: 34px;
    }

    .ucp-early-header {
        height: auto;
        min-height: 78px;
        padding: 14px 0;
    }
}

@media (max-width: 520px) {
    .ucp-login-card {
        padding: 20px;
    }

    .ucp-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .ucp-actions .btn {
        text-align: center;
    }
}


/* Stable homepage-matched Arkham shared header on the UCP/login page. */
.arkham-shared-header,
.arkham-shared-header * { box-sizing: border-box; }
.arkham-shared-header { height: auto !important; min-height: 78px !important; margin: 0 auto !important; padding: 12px 28px !important; }
.arkham-shared-header .brand { display:flex !important; gap:10px !important; align-items:center !important; color:#fff !important; text-decoration:none !important; font-weight:900 !important; letter-spacing:.16em !important; white-space:nowrap !important; }
.arkham-shared-header .brand-mark { display:grid !important; place-items:center !important; width:34px !important; height:34px !important; border:1px solid #ef3d3d !important; border-radius:9px !important; color:#ff5555 !important; font-weight:900 !important; }
.arkham-shared-header .main-nav { display:flex !important; align-items:center !important; gap:3px !important; flex-wrap:nowrap !important; overflow-x:auto !important; overflow-y:hidden !important; white-space:nowrap !important; }
.arkham-shared-header .main-nav a { flex:0 0 auto !important; min-height:34px !important; padding:8px 9px !important; border:1px solid transparent !important; border-radius:9px !important; color:#c1cfdb !important; font-size:12px !important; font-weight:700 !important; text-decoration:none !important; }
.arkham-shared-header .main-nav a:hover,
.arkham-shared-header .main-nav a.nav-current { color:#fff !important; background:rgba(255,255,255,.07) !important; border-color:rgba(139,234,255,.12) !important; }
.arkham-shared-header .main-nav a.logout-nav { color:#ff9ca2 !important; }
.arkham-shared-header .main-nav a.logout-nav:hover { color:#fff !important; background:rgba(255,60,75,.14) !important; border-color:rgba(255,100,110,.2) !important; }
@media(max-width:1200px){ .arkham-shared-header{padding:12px 20px !important}.arkham-shared-header .main-nav a{padding:8px 7px !important;font-size:11px !important} }
