:root {
    --bg: #0c0a12;
    --panel: #14111d;
    --panel-2: #1b1628;
    --stroke: rgba(255,255,255,.08);
    --text: #f6f2ff;
    --muted: #9b94aa;
    --violet: #8b5cf6;
    --violet-2: #c084fc;
    --green: #4ade80;
    --orange: #fb923c;
    --red: #fb7185;
    --sidebar: 270px;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    background:
        radial-gradient(circle at 80% 0%, rgba(139,92,246,.15), transparent 35%),
        var(--bg);
    color: var(--text);
    font-family: "Segoe UI Variable Text", "Manrope", "Segoe UI", Arial, sans-serif;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
.app-shell { min-height: 100vh; }
.sidebar {
    position: fixed; inset: 0 auto 0 0; width: var(--sidebar);
    padding: 28px 20px;
    background: rgba(12,10,18,.88);
    backdrop-filter: blur(22px);
    border-right: 1px solid var(--stroke);
    display: flex; flex-direction: column; z-index: 10;
}
.brand { display: flex; align-items: center; gap: 12px; margin-bottom: 38px; padding: 0 10px; }
.brand-mark {
    width: 44px; height: 44px; border-radius: 14px;
    display: grid; place-items: center; font-weight: 900; font-size: 22px;
    background: linear-gradient(145deg, #3b2a55, #100c18);
    border: 1px solid rgba(192,132,252,.5);
    box-shadow: 0 0 30px rgba(139,92,246,.35), inset 0 0 15px rgba(255,255,255,.05);
}
.brand strong { display: block; letter-spacing: .18em; }
.brand span { display: block; color: var(--muted); font-size: 11px; margin-top: 4px; }
nav { display: grid; gap: 6px; }
nav a {
    display: flex; align-items: center; gap: 12px; padding: 13px 14px;
    color: var(--muted); border-radius: 12px; transition: .2s;
}
nav a:hover, nav a.active { color: white; background: rgba(139,92,246,.13); }
nav a.active { box-shadow: inset 3px 0 0 var(--violet); }
.sidebar-footer {
    margin-top: auto; display: flex; align-items: center; gap: 10px;
    padding: 16px 10px 0; border-top: 1px solid var(--stroke);
}
.admin-avatar, .person-cell span {
    width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
    background: rgba(139,92,246,.18); color: var(--violet-2); font-weight: 800;
}
.admin-copy { flex: 1; min-width: 0; }
.admin-copy strong, .admin-copy span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-copy span { color: var(--muted); font-size: 11px; margin-top: 3px; }
.icon-button { border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 20px; }
.content { margin-left: var(--sidebar); padding: 30px 34px 60px; }
.topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; }
.topbar h1 { margin: 3px 0 0; font-size: 30px; }
.eyebrow { color: var(--violet-2); font-size: 10px; letter-spacing: .2em; font-weight: 800; }
.status-pill {
    padding: 9px 13px; border-radius: 999px; border: 1px solid rgba(74,222,128,.24);
    background: rgba(74,222,128,.07); color: #baf7ca; font-size: 12px;
}
.status-pill i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--green); margin-right: 7px; box-shadow: 0 0 12px var(--green); }
.hero-card, .panel, .metric-card, .profile-header {
    border: 1px solid var(--stroke); background: linear-gradient(145deg, rgba(26,21,38,.96), rgba(15,12,22,.98));
    border-radius: 20px; box-shadow: 0 18px 50px rgba(0,0,0,.18);
}
.hero-card { min-height: 190px; padding: 34px; display: flex; align-items: center; justify-content: space-between; overflow: hidden; position: relative; }
.hero-card:after { content: ""; position: absolute; width: 300px; height: 300px; right: -70px; top: -110px; border-radius: 50%; border: 1px solid rgba(192,132,252,.16); box-shadow: 0 0 80px rgba(139,92,246,.16); }
.hero-card h2 { font-size: 34px; margin: 10px 0; }
.hero-card p { color: var(--muted); margin: 0; }
.hero-orb { width: 105px; height: 105px; border-radius: 30px; display: grid; place-items: center; font-size: 52px; font-weight: 900; color: #e7d7ff; z-index: 1; background: linear-gradient(145deg,#39214f,#0f0b16); border: 1px solid rgba(192,132,252,.42); box-shadow: 0 0 55px rgba(139,92,246,.3); }
.metric-grid { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 14px; margin: 18px 0; }
.metric-card { padding: 20px; min-height: 128px; }
.metric-card span, .metric-card small { color: var(--muted); display: block; }
.metric-card b { display: block; font-size: 34px; margin: 12px 0 8px; }
.metric-card.accent { border-color: rgba(139,92,246,.35); background: linear-gradient(145deg, rgba(78,45,112,.55), rgba(20,16,29,.98)); }
.metric-card.danger-soft { border-color: rgba(251,113,133,.18); }
.two-column { display: grid; grid-template-columns: 1.45fr 1fr; gap: 18px; }
.three-column { display: grid; grid-template-columns: 1.2fr .8fr 1fr; gap: 18px; margin: 18px 0; }
.panel { padding: 24px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.panel-head h3 { margin: 5px 0 0; font-size: 19px; }
.panel-head a { color: var(--violet-2); font-size: 12px; }
.timeline { display: grid; gap: 0; }
.timeline-item { display: grid; grid-template-columns: 18px 1fr; gap: 12px; padding: 0 0 20px; }
.timeline-item i { width: 9px; height: 9px; border-radius: 50%; background: var(--violet); margin-top: 6px; box-shadow: 0 0 14px var(--violet); }
.timeline-item p { color: var(--muted); margin: 5px 0; }
.timeline-item small, .integration-row small { color: #706a7d; }
.integration-row { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 12px; padding: 15px 0; border-bottom: 1px solid var(--stroke); }
.integration-row:last-child { border: 0; }
.integration-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: rgba(139,92,246,.12); }
.integration-row b, .integration-row small { display: block; }
.integration-row em { color: var(--green); font-style: normal; font-size: 10px; letter-spacing: .1em; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th { text-align: left; color: var(--muted); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; padding: 13px 14px; border-bottom: 1px solid var(--stroke); }
td { padding: 15px 14px; border-bottom: 1px solid var(--stroke); color: #dcd5e8; font-size: 13px; }
.person-cell { display: flex; align-items: center; gap: 10px; }
.person-cell span { width: 30px; height: 30px; }
.rank-badge { color: #dec7ff; background: rgba(139,92,246,.12); padding: 6px 9px; border-radius: 8px; white-space: nowrap; }
.status { display: inline-flex; padding: 6px 9px; border-radius: 999px; background: rgba(255,255,255,.07); color: var(--muted); font-size: 11px; }
.status.approved, .status.active { color: #b9f6ca; background: rgba(74,222,128,.09); }
.status.pending { color: #fed7aa; background: rgba(251,146,60,.1); }
.status.archived, .status.closed { color: #c8c2d0; background: rgba(255,255,255,.06); }
.status.large { font-size: 12px; padding: 8px 12px; margin-left: auto; }
.row-link { color: var(--violet-2); }
.search-form { display: flex; gap: 8px; }
.search-form input, .login-form input {
    width: 100%; border: 1px solid var(--stroke); background: rgba(0,0,0,.25); color: white;
    border-radius: 11px; padding: 12px 14px; outline: none;
}
.search-form input:focus, .login-form input:focus { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(139,92,246,.13); }
.search-form button, .primary-button, .action-stack button {
    border: 0; border-radius: 11px; padding: 12px 16px; color: white;
    background: linear-gradient(135deg, #7c3aed, #9f67ff); cursor: pointer;
}
.profile-header { display: flex; align-items: center; gap: 20px; padding: 26px; }
.profile-avatar { width: 72px; height: 72px; border-radius: 22px; display: grid; place-items: center; background: rgba(139,92,246,.14); color: var(--violet-2); font-size: 32px; font-weight: 900; }
.profile-header h2 { margin: 6px 0; font-size: 28px; }
.profile-header p { color: var(--muted); margin: 0; }
.detail-list { margin: 18px 0 0; }
.detail-list div { display: flex; justify-content: space-between; gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--stroke); }
.detail-list dt { color: var(--muted); }
.detail-list dd { margin: 0; text-align: right; }
.big-number { font-size: 60px; font-weight: 850; color: var(--violet-2); margin-top: 16px; }
.action-stack { display: grid; gap: 9px; margin: 16px 0 10px; }
.action-stack button { text-align: left; background: rgba(139,92,246,.12); color: #cfc3df; }
.action-stack button:disabled { opacity: .55; cursor: not-allowed; }
.record-card { padding: 15px 0; border-bottom: 1px solid var(--stroke); }
.record-card b { display: block; margin: 8px 0 4px; }
.record-card p, .record-card small { color: var(--muted); margin: 4px 0; }
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.alert { border-radius: 12px; padding: 13px 15px; margin-bottom: 18px; }
.alert.danger { color: #ffd3dc; background: rgba(251,113,133,.1); border: 1px solid rgba(251,113,133,.2); }
.empty-state { padding: 34px 10px; text-align: center; color: var(--muted); }
.login-content { min-height: 100vh; }
.login-page { min-height: 100vh; display: grid; grid-template-columns: 1.25fr .75fr; }
.login-visual { padding: 7vw; display: flex; flex-direction: column; justify-content: center; background: radial-gradient(circle at 20% 20%, rgba(139,92,246,.25), transparent 35%), linear-gradient(145deg,#100b18,#09070d); }
.login-emblem { width: 88px; height: 88px; display: grid; place-items: center; border-radius: 28px; margin-bottom: 35px; font-weight: 900; font-size: 42px; border: 1px solid rgba(192,132,252,.55); background: linear-gradient(145deg,#412258,#0e0a14); box-shadow: 0 0 65px rgba(139,92,246,.35); }
.login-visual h1 { font-size: clamp(42px,6vw,76px); line-height: .98; margin: 16px 0 24px; letter-spacing: -.04em; }
.login-visual > p { color: var(--muted); max-width: 620px; font-size: 17px; line-height: 1.7; }
.login-feature-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; max-width: 600px; margin-top: 40px; }
.login-feature-grid div { padding: 18px; border: 1px solid var(--stroke); border-radius: 14px; background: rgba(255,255,255,.025); }
.login-feature-grid b, .login-feature-grid span { display: block; }
.login-feature-grid b { color: var(--violet-2); font-size: 20px; }
.login-feature-grid span { color: var(--muted); font-size: 11px; margin-top: 6px; }
.login-card { padding: 7vw 5vw; display: flex; flex-direction: column; justify-content: center; background: #100d17; }
.login-card h2 { font-size: 34px; margin: 10px 0 8px; }
.login-card > p { color: var(--muted); margin: 0 0 28px; }
.login-form { display: grid; gap: 18px; }
.login-form label { display: grid; gap: 8px; color: #cfc8da; font-size: 12px; }
.primary-button { padding: 14px; font-weight: 750; margin-top: 5px; }
.telegram-placeholder { margin-top: 18px; border: 1px dashed var(--stroke); padding: 13px; border-radius: 12px; color: var(--muted); display: flex; justify-content: space-between; gap: 10px; }
.mobile-brand { display: none; }

@media (max-width: 1150px) {
    .metric-grid { grid-template-columns: repeat(3,1fr); }
    .three-column { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 850px) {
    :root { --sidebar: 76px; }
    .sidebar { padding: 22px 12px; }
    .brand { padding: 0; justify-content: center; }
    .brand > div:last-child { display: none; }
    .brand strong, .brand span, nav a { font-size: 0; }
    nav a span { font-size: 18px; margin: auto; }
    .admin-copy, .sidebar-footer form { display: none; }
    .sidebar-footer { justify-content: center; }
    .content { padding: 24px 18px 50px; }
    .two-column, .three-column, .settings-grid { grid-template-columns: 1fr; }
    .login-page { grid-template-columns: 1fr; }
    .login-visual { display: none; }
    .mobile-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 40px; }
}
@media (max-width: 620px) {
    :root { --sidebar: 0px; }
    .sidebar { position: fixed; inset: auto 0 0 0; width: auto; height: 68px; padding: 8px 10px; border: 0; border-top: 1px solid var(--stroke); }
    .brand, .sidebar-footer { display: none; }
    nav { grid-template-columns: repeat(6,1fr); width: 100%; gap: 3px; }
    nav a { padding: 9px 4px; }
    nav a:nth-child(n+7) { display: none; }
    .content { margin-left: 0; padding: 20px 14px 90px; }
    .topbar { align-items: flex-start; }
    .status-pill { font-size: 0; padding: 10px; }
    .status-pill i { margin: 0; }
    .hero-card { min-height: 150px; padding: 24px; }
    .hero-card h2 { font-size: 27px; }
    .hero-orb { width: 70px; height: 70px; font-size: 34px; }
    .metric-grid { grid-template-columns: 1fr 1fr; }
    .metric-card { min-height: 112px; padding: 16px; }
    .responsive { align-items: stretch; flex-direction: column; }
    .search-form { width: 100%; }
    .login-card { padding: 28px 22px; }
}


.alert.success {
    color: #c8f8d5;
    background: rgba(74,222,128,.09);
    border: 1px solid rgba(74,222,128,.22);
}
.copy-line {
    margin-top: 10px;
    padding: 11px 13px;
    border-radius: 9px;
    background: rgba(0,0,0,.25);
    color: #e4d7ff;
    overflow-wrap: anywhere;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid label { display: grid; gap: 7px; color: var(--muted); font-size: 12px; }
.form-grid input, .form-grid select,
.admin-actions input, .admin-actions select {
    width: 100%; border: 1px solid var(--stroke); background: rgba(0,0,0,.25);
    color: white; border-radius: 10px; padding: 11px 12px;
}
.permission-list { display: grid; gap: 0; margin-top: 15px; }
.permission-list div { padding: 13px 0; border-bottom: 1px solid var(--stroke); }
.permission-list b, .permission-list span { display: block; }
.permission-list span { color: var(--muted); font-size: 12px; margin-top: 4px; }
.admin-card-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.admin-card { border: 1px solid var(--stroke); border-radius: 16px; padding: 18px; background: rgba(255,255,255,.02); }
.admin-card-head { display: grid; grid-template-columns: 46px 1fr auto; gap: 11px; align-items: center; }
.admin-avatar.large { width: 46px; height: 46px; }
.admin-card-head b, .admin-card-head span { display: block; }
.admin-card-head > div span { color: var(--muted); font-size: 12px; margin-top: 4px; }
.detail-list.compact div { padding: 8px 0; font-size: 12px; }
.admin-actions { display: grid; gap: 8px; margin-top: 14px; }
.admin-actions form { display: flex; gap: 7px; }
.admin-actions button, .subtle-button {
    border: 1px solid var(--stroke); background: rgba(139,92,246,.1);
    color: #e2d6f5; padding: 9px 11px; border-radius: 9px; cursor: pointer;
}
.admin-actions button { white-space: nowrap; }
.danger-button { color: #ffd0da !important; background: rgba(251,113,133,.1) !important; }
.invite-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.invite-page { min-height: 100vh; display: grid; place-items: center; padding: 25px; }
.invite-card { width: min(520px,100%); min-height: auto; border: 1px solid var(--stroke); border-radius: 22px; }
.mobile-brand.visible { display: flex; }
@media (max-width: 900px) {
    .admin-card-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
    .form-grid { grid-template-columns: 1fr; }
    .admin-card-head { grid-template-columns: 42px 1fr; }
    .admin-card-head > .status { grid-column: 1 / -1; justify-self: start; }
    .admin-actions form { flex-direction: column; }
}


/* Stage 24.3 visual refresh */
body {
    letter-spacing: -.008em;
    background:
        radial-gradient(circle at 78% -8%, rgba(149,91,214,.18), transparent 33%),
        radial-gradient(circle at 10% 110%, rgba(84,40,123,.14), transparent 31%),
        #0b0910;
}
h1, h2, h3, .brand strong {
    font-family: "Segoe UI Variable Display", "Manrope", "Segoe UI", sans-serif;
    letter-spacing: -.035em;
}
.brand-crest {
    width: 48px;
    height: 56px;
    object-fit: contain;
    filter: drop-shadow(0 0 16px rgba(151,91,213,.34));
}
.brand strong {
    font-size: 15px;
    letter-spacing: .14em;
}
.crest-image {
    object-fit: contain;
    padding: 5px;
}
.branded-hero {
    background:
        linear-gradient(90deg, rgba(14,10,20,.93), rgba(20,13,29,.68)),
        url("/static/bellamy-horizontal-banner.png") center/cover no-repeat;
    min-height: 230px;
}
.hero-copy {
    position: relative;
    z-index: 2;
    max-width: 690px;
}
.hero-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 22px;
}
.hero-tags span {
    padding: 7px 11px;
    border: 1px solid rgba(204,164,255,.17);
    border-radius: 999px;
    color: #d8c9e8;
    font-size: 11px;
    background: rgba(11,8,16,.42);
}
.hero-crest {
    width: 145px;
    height: 170px;
    object-fit: contain;
    z-index: 2;
    margin-right: 42px;
    filter: drop-shadow(0 0 40px rgba(158,94,225,.34));
}
.admin-hero {
    min-height: 185px;
    margin-bottom: 18px;
    padding: 30px 34px;
    border-radius: 22px;
    border: 1px solid var(--stroke);
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(15,10,21,.96), rgba(28,17,39,.63)),
        url("/static/bellamy-horizontal-banner.png") center/cover no-repeat;
}
.admin-hero h2 {
    margin: 8px 0 10px;
    font-size: 31px;
}
.admin-hero p {
    color: var(--muted);
    max-width: 680px;
    margin: 0;
}
.admin-hero img {
    width: 108px;
    height: 130px;
    margin-right: 30px;
    filter: drop-shadow(0 0 32px rgba(158,94,225,.32));
}
.muted-copy {
    color: var(--muted);
    line-height: 1.6;
}
.form-note {
    color: #82798d;
    font-size: 11px;
    margin-top: 13px;
}
.full-button {
    width: 100%;
}
.detected-admins {
    display: grid;
    gap: 8px;
    margin-top: 18px;
    max-height: 224px;
    overflow: auto;
}
.detected-admins > div {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 1px solid var(--stroke);
    border-radius: 12px;
    background: rgba(255,255,255,.022);
}
.detected-admins b,
.detected-admins small {
    display: block;
}
.detected-admins small {
    color: var(--muted);
    margin-top: 3px;
}
.invite-form {
    grid-template-columns: repeat(3, minmax(0,1fr));
}
.metric-card b {
    font-family: "Segoe UI Variable Display", "Manrope", sans-serif;
    font-weight: 720;
}
.panel, .metric-card, .hero-card, .profile-header {
    box-shadow:
        0 18px 55px rgba(0,0,0,.2),
        inset 0 1px 0 rgba(255,255,255,.018);
}
table tbody tr {
    transition: background .16s ease;
}
table tbody tr:hover {
    background: rgba(137,83,193,.055);
}
@media (max-width: 900px) {
    .invite-form { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
    .hero-crest { width: 78px; height: 96px; margin-right: 0; }
    .admin-hero img { width: 75px; height: 90px; margin-right: 0; }
    .admin-hero { padding: 23px; }
    .invite-form { grid-template-columns: 1fr; }
}


/* Stage 24.3.1 approved Bellamy branding */
.brand-crest,
.hero-crest,
.admin-hero img,
.crest-image {
    object-fit: contain;
    mix-blend-mode: screen;
}
.brand-crest {
    width: 52px;
    height: 58px;
}
.hero-crest {
    width: 170px;
    height: 178px;
}
.login-emblem.crest-image {
    width: 112px;
    height: 112px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}
.branded-hero,
.admin-hero {
    background:
        linear-gradient(90deg, rgba(10,7,14,.94), rgba(18,11,27,.80)),
        url("/static/bellamy-horizontal-banner.png") center/cover no-repeat;
}
.error-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px;
}
.error-page img {
    width: 128px;
    height: 128px;
    object-fit: contain;
    margin-bottom: 22px;
}
.error-page h1 {
    margin: 10px 0;
    font-size: 34px;
}
.error-page p {
    color: var(--muted);
    max-width: 620px;
    line-height: 1.6;
}
.error-id {
    margin: 14px 0 22px;
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(255,255,255,.05);
    color: #cdbbe1;
    font-family: Consolas, monospace;
}
.error-button {
    display: inline-flex;
}


.error-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}
.subtle-link {
    color: var(--muted);
    font-size: 13px;
}
.subtle-link:hover {
    color: white;
}


.branded-hero { justify-content: flex-start; }
.section-block { margin-top: 34px; }
.section-heading { display:flex; justify-content:space-between; align-items:end; margin-bottom:14px; padding:0 4px; }
.section-heading h2 { margin:5px 0 0; font-size:23px; }
.section-heading.with-filter { align-items:center; }
.compact-list,.journal-list { display:grid; }
.compact-row,.journal-row { display:grid; align-items:center; gap:13px; padding:14px 2px; border-bottom:1px solid var(--stroke); }
.compact-row { grid-template-columns:1fr auto; }
.journal-row { grid-template-columns:38px 1fr auto; }
.compact-row:last-child,.journal-row:last-child { border-bottom:0; }
.compact-row b,.compact-row small,.journal-row b,.journal-row p,.journal-row small { display:block; }
.compact-row small,.journal-row p,.journal-row small { color:var(--muted); margin:4px 0 0; }
.journal-icon { width:34px; height:34px; display:grid; place-items:center; border-radius:10px; color:#d9c2f3; background:rgba(139,92,246,.12); }
.journal-filters { display:flex; gap:6px; flex-wrap:wrap; }
.filter-button { border:1px solid var(--stroke); background:rgba(255,255,255,.025); color:var(--muted); padding:8px 11px; border-radius:9px; cursor:pointer; }
.filter-button.active { color:white; background:rgba(139,92,246,.18); border-color:rgba(176,120,237,.3); }
.sidebar nav a { min-height:48px; font-weight:620; color:#b3aabd; }
.sidebar nav a:hover { background:rgba(139,92,246,.10); color:#f5edff; transform:translateX(2px); }
.sidebar nav a.active { color:white; background:linear-gradient(90deg,rgba(139,92,246,.22),rgba(139,92,246,.06)); box-shadow:inset 3px 0 0 #b678ff,0 8px 24px rgba(66,33,95,.16); }
.nav-icon { width:28px; height:28px; display:grid; place-items:center; border-radius:9px; color:#cda8f3; background:rgba(139,92,246,.10); font-size:15px; }
.sidebar nav a.active .nav-icon { color:white; background:rgba(174,111,236,.25); box-shadow:0 0 18px rgba(139,92,246,.18); }
.nav-label { font-size:14px; }
@media (max-width:850px){ .nav-label{display:none}.sidebar nav a{justify-content:center} }
@media (max-width:620px){ .section-heading.with-filter{align-items:flex-start;flex-direction:column;gap:12px}.journal-row{grid-template-columns:34px 1fr}.journal-row>.status{grid-column:2;justify-self:start} }


.alert.warning{color:#ffe2b9;background:rgba(251,146,60,.09);border:1px solid rgba(251,146,60,.22)}
.member-command-grid{display:grid;grid-template-columns:.8fr 1.7fr;gap:18px;margin:18px 0}
.command-center{min-height:350px}
.safe-mode{padding:7px 9px;border-radius:999px;background:rgba(255,255,255,.05);color:var(--muted);font-size:9px;letter-spacing:.1em}
.safe-mode.enabled{color:#baf7ca;background:rgba(74,222,128,.09)}
.command-tabs{display:flex;gap:7px;flex-wrap:wrap;padding-bottom:15px;border-bottom:1px solid var(--stroke)}
.command-tab{border:0;padding:9px 12px;border-radius:9px;background:transparent;color:var(--muted);cursor:pointer}
.command-tab.active{color:white;background:rgba(139,92,246,.17)}
.command-panel{display:none;padding-top:18px}.command-panel.active{display:block}
.action-form{display:grid;grid-template-columns:1fr 1fr;gap:13px}
.action-form label{display:grid;gap:7px;color:var(--muted);font-size:12px}
.action-form label.wide,.action-form button{grid-column:1/-1}
.action-form input,.action-form textarea,.status-actions input{width:100%;border:1px solid var(--stroke);background:rgba(0,0,0,.25);color:white;border-radius:10px;padding:11px 12px;resize:vertical}
.action-form button:disabled,.status-actions button:disabled{opacity:.35;cursor:not-allowed}
.danger-zone{border:1px solid rgba(251,113,133,.18);border-radius:14px;padding:17px;background:rgba(251,113,133,.035)}
.danger-zone p{color:var(--muted);margin-top:0}
.status-actions{display:grid;grid-template-columns:1fr repeat(3,auto);gap:8px}
.status-actions button{border:1px solid var(--stroke);background:rgba(255,255,255,.04);color:white;border-radius:9px;padding:10px 12px;cursor:pointer}
.warning-card form{margin-top:10px}
@media(max-width:1000px){.member-command-grid{grid-template-columns:1fr}}
@media(max-width:680px){.action-form{grid-template-columns:1fr}.action-form label.wide,.action-form button{grid-column:auto}.status-actions{grid-template-columns:1fr}}


.report-summary-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;margin-bottom:18px}
.summary-tile{border:1px solid var(--stroke);border-radius:15px;padding:16px;background:rgba(255,255,255,.025)}
.summary-tile span,.summary-tile b{display:block}.summary-tile span{color:var(--muted);font-size:11px}.summary-tile b{font-size:27px;margin-top:8px}
.summary-tile.active{border-color:rgba(176,120,237,.38);background:rgba(139,92,246,.13)}
.report-card-list{display:grid}
.report-list-card{display:grid;grid-template-columns:64px minmax(220px,1fr) 110px 120px 130px 90px;align-items:center;gap:14px;padding:16px 8px;border-bottom:1px solid var(--stroke);transition:background .15s ease}
.report-list-card:hover{background:rgba(139,92,246,.05)}
.report-id{color:var(--violet-2);font-weight:750}.report-main b,.report-main span{display:block}.report-main span{color:var(--muted);font-size:12px;margin-top:4px}
.report-amount{font-weight:700}.report-date{color:var(--muted);font-size:12px}
.report-header{display:flex;align-items:center;gap:20px;padding:27px;border-radius:20px;border:1px solid var(--stroke);background:linear-gradient(90deg,rgba(19,13,27,.97),rgba(32,19,45,.72)),url("/static/bellamy-horizontal-banner.png") center/cover no-repeat}
.report-header h2{margin:7px 0;font-size:30px}.report-header p{color:var(--muted);margin:0}.report-header>.status{margin-left:auto}
.report-detail-grid{display:grid;grid-template-columns:.85fr 1.55fr;gap:18px;margin:18px 0}
.decision-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.decision-form{display:grid;gap:9px}
.decision-form textarea,.decision-form input{width:100%;border:1px solid var(--stroke);background:rgba(0,0,0,.25);color:white;border-radius:10px;padding:11px 12px;resize:vertical}
.decision-button{width:100%;min-height:45px;border:1px solid var(--stroke);border-radius:10px;color:white;cursor:pointer}
.decision-button:disabled{opacity:.35;cursor:not-allowed}
.decision-button.approve{background:rgba(74,222,128,.14);border-color:rgba(74,222,128,.24)}
.decision-button.revision{background:rgba(251,146,60,.12);border-color:rgba(251,146,60,.23)}
.decision-button.reject{background:rgba(251,113,133,.12);border-color:rgba(251,113,133,.23)}
.decision-button.paid{background:rgba(139,92,246,.18);border-color:rgba(176,120,237,.3)}
.payment-box{padding:13px;border-radius:12px;border:1px solid rgba(176,120,237,.16);background:rgba(139,92,246,.035)}
.screenshot-link{display:inline-flex;padding:12px 14px;border-radius:10px;background:rgba(139,92,246,.12);color:#e0ccf7}
.screenshot-path{padding:14px;border-radius:10px;background:rgba(0,0,0,.24);overflow-wrap:anywhere}
@media(max-width:1100px){.report-summary-grid{grid-template-columns:repeat(3,1fr)}.report-list-card{grid-template-columns:55px 1fr 100px 110px}.report-date,.report-list-card .row-link{display:none}}
@media(max-width:800px){.report-detail-grid{grid-template-columns:1fr}}
@media(max-width:620px){.report-summary-grid{grid-template-columns:1fr 1fr}.report-list-card{grid-template-columns:48px 1fr}.report-amount,.report-list-card>.status{grid-column:2}.decision-grid{grid-template-columns:1fr}}


.stage25-hero {
    display:flex;align-items:center;justify-content:space-between;gap:24px;
    min-height:210px;padding:32px 36px;border:1px solid var(--stroke);
    border-radius:22px;background:
      linear-gradient(90deg,rgba(12,8,18,.95),rgba(31,17,44,.65)),
      url("/static/bellamy-horizontal-banner.png") center/cover no-repeat;
}
.stage25-hero h2{font-size:34px;margin:8px 0}
.stage25-hero p{color:var(--muted);max-width:720px;line-height:1.6}
.stage-badge{font-size:46px;font-weight:800;color:#e4cbff;padding:18px 22px;
    border:1px solid rgba(190,135,255,.3);border-radius:18px;
    background:rgba(139,92,246,.12)}
.foundation-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:12px}
.foundation-card{display:grid;grid-template-columns:12px 1fr;align-items:center;gap:12px;
    padding:17px;border:1px solid var(--stroke);border-radius:15px;
    background:rgba(255,255,255,.025)}
.foundation-card b,.foundation-card small{display:block}
.foundation-card small{color:var(--muted);margin-top:4px}
.foundation-dot{width:9px;height:9px;border-radius:50%;background:var(--orange)}
.foundation-dot.online{background:var(--green);box-shadow:0 0 12px rgba(74,222,128,.45)}
.foundation-dot.offline{background:var(--red)}
.runtime-error{margin-top:12px;padding:12px;border-radius:10px;background:rgba(251,113,133,.08)}
.architecture-flow{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:20px 0}
.architecture-flow div{padding:12px 14px;border:1px solid var(--stroke);border-radius:11px;background:rgba(139,92,246,.08)}
.architecture-flow span{color:var(--violet-2)}
.feature-list{color:var(--muted);line-height:1.9;padding-left:20px}
.foundation-actions{display:grid;gap:10px;margin:18px 0}
.foundation-actions button{width:100%}
.milestone-list{display:grid}
.milestone-list>div{display:grid;grid-template-columns:30px 1fr auto;gap:12px;align-items:center;padding:14px 0;border-bottom:1px solid var(--stroke)}
.milestone-list>div:last-child{border-bottom:0}
.milestone-list>div>span{width:28px;height:28px;border-radius:9px;display:grid;place-items:center;background:rgba(139,92,246,.13);color:#d8b6ff}
.milestone-list small{color:var(--muted)}
@media(max-width:1000px){.foundation-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:620px){.stage25-hero{align-items:flex-start;flex-direction:column}.foundation-grid{grid-template-columns:1fr}.milestone-list>div{grid-template-columns:30px 1fr}.milestone-list small{grid-column:2}}


/* Stage 26.1.1: isolated authenticated dashboard layer */
.bellamy-nav{display:grid;gap:16px}.bellamy-nav-group{display:grid;gap:4px}
.bellamy-nav-caption{padding:0 14px 5px;color:#716a7c;font-size:9px;font-weight:800;letter-spacing:.14em;text-transform:uppercase}
.bellamy-topbar{gap:20px}.bellamy-topbar-actions{display:flex;align-items:center;gap:10px}
.bellamy-search-button{min-width:218px;height:40px;display:flex;align-items:center;gap:9px;padding:0 11px;border:1px solid var(--stroke);border-radius:11px;background:rgba(255,255,255,.025);color:var(--muted);cursor:pointer}
.bellamy-search-button:hover{border-color:rgba(192,132,252,.25);background:rgba(139,92,246,.07)}
.bellamy-search-button>span{color:var(--violet-2);font-size:20px}.bellamy-search-button em{flex:1;text-align:left;font-style:normal;font-size:11px}
.bellamy-search-button kbd,.bellamy-search-input kbd{padding:4px 6px;border:1px solid var(--stroke);border-radius:6px;color:#81798b;background:rgba(255,255,255,.025);font-size:9px}
.bellamy-dashboard{display:grid;gap:16px}
.bellamy-dashboard-hero{min-height:220px;position:relative;overflow:hidden;border:1px solid var(--stroke);border-radius:22px;background:linear-gradient(90deg,rgba(10,7,14,.97),rgba(15,10,22,.86) 49%,rgba(28,15,41,.42)),url("/static/bellamy-horizontal-banner.png") center/cover no-repeat;box-shadow:0 22px 58px rgba(0,0,0,.28)}
.bellamy-dashboard-hero-shade{position:absolute;inset:0;background:radial-gradient(circle at 74% 50%,rgba(139,92,246,.13),transparent 38%)}
.bellamy-dashboard-hero-copy{position:relative;z-index:2;max-width:730px;padding:34px 38px}
.bellamy-dashboard-hero-copy h2{margin:10px 0;font-size:34px;letter-spacing:-.025em}
.bellamy-dashboard-hero-copy>p{max-width:610px;margin:0;color:#b5adbe;font-size:14px;line-height:1.65}
.bellamy-core-state{width:fit-content;display:flex;align-items:center;gap:9px;margin-top:23px;padding:9px 12px;border:1px solid var(--stroke);border-radius:999px;background:rgba(8,6,11,.52);font-size:11px}
.bellamy-core-state i{width:8px;height:8px;border-radius:50%;background:var(--orange);box-shadow:0 0 12px rgba(251,146,60,.5)}
.bellamy-core-state i.ok{background:var(--green);box-shadow:0 0 12px rgba(74,222,128,.52)}
.bellamy-core-state a{margin-left:4px;color:#cdb7e7}
.bellamy-dashboard-wordmark{position:absolute;right:32px;bottom:23px;color:rgba(255,255,255,.045);font-size:56px;font-weight:900;letter-spacing:.08em}
.bellamy-dashboard-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.bellamy-dashboard-metric{min-height:142px;position:relative;overflow:hidden;padding:18px;border:1px solid var(--stroke);border-radius:16px;background:linear-gradient(145deg,rgba(255,255,255,.035),rgba(255,255,255,.012));transition:.18s}
.bellamy-dashboard-metric:hover{transform:translateY(-2px);border-color:rgba(192,132,252,.22)}
.bellamy-dashboard-metric:after{content:"";position:absolute;width:120px;height:120px;right:-57px;top:-62px;border-radius:50%;opacity:.13}
.metric-violet:after{background:#8b5cf6}.metric-cyan:after{background:#67d7e6}.metric-amber:after{background:#fb923c}.metric-rose:after{background:#fb7185}
.bellamy-dashboard-metric-head{display:flex;justify-content:space-between;align-items:center}.bellamy-dashboard-metric-head>span{width:34px;height:34px;display:grid;place-items:center;border-radius:10px;color:#d8c3ee;background:rgba(139,92,246,.11);font-size:17px}.bellamy-dashboard-metric-head em{color:#736b7e;font-style:normal}
.bellamy-dashboard-metric>strong{display:block;margin:17px 0 4px;font-size:31px}.bellamy-dashboard-metric>b{display:block;font-size:13px}.bellamy-dashboard-metric>small{display:block;margin-top:4px;color:var(--muted);font-size:10px}
.bellamy-dashboard-main{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(310px,.75fr);gap:16px}
.bellamy-attention-list,.bellamy-quick-list,.bellamy-event-list{display:grid}
.bellamy-attention-row{display:grid;grid-template-columns:10px minmax(0,1fr) auto;gap:13px;align-items:center;padding:14px 3px;border-bottom:1px solid var(--stroke);transition:.16s}
.bellamy-attention-row:last-child{border-bottom:0}.bellamy-attention-row:hover{padding-left:9px;background:linear-gradient(90deg,rgba(139,92,246,.055),transparent)}
.bellamy-attention-row>i{width:8px;height:8px;border-radius:50%;background:var(--orange)}.bellamy-attention-row>i.priority-high{background:var(--red);box-shadow:0 0 10px rgba(251,113,133,.5)}
.bellamy-attention-row span,.bellamy-attention-row b,.bellamy-attention-row small{display:block}.bellamy-attention-row span{color:var(--muted);font-size:9px;font-weight:700;letter-spacing:.09em;text-transform:uppercase}.bellamy-attention-row b{margin-top:4px;font-size:13px}.bellamy-attention-row small{margin-top:4px;color:#756e80;font-size:10px}.bellamy-attention-row>em{color:#cdb5e5;font-style:normal;font-size:11px}
.bellamy-dashboard-empty{padding:34px 10px;text-align:center}.bellamy-dashboard-empty>span{width:42px;height:42px;display:grid;place-items:center;margin:0 auto 12px;border-radius:13px;color:var(--green);background:rgba(74,222,128,.09)}.bellamy-dashboard-empty>b,.bellamy-dashboard-empty>small{display:block}.bellamy-dashboard-empty>small{margin-top:5px;color:var(--muted)}
.bellamy-quick-row{width:100%;display:grid;grid-template-columns:39px 1fr auto;gap:12px;align-items:center;padding:12px;border:1px solid transparent;border-radius:12px;background:rgba(255,255,255,.018);color:inherit;cursor:pointer;text-align:left}.bellamy-quick-row:hover{border-color:rgba(192,132,252,.13);background:rgba(139,92,246,.065)}
.bellamy-quick-row>span{width:39px;height:39px;display:grid;place-items:center;border-radius:11px;color:#d8c3ed;background:rgba(139,92,246,.1);font-size:17px}.bellamy-quick-row b,.bellamy-quick-row small{display:block}.bellamy-quick-row b{font-size:12px}.bellamy-quick-row small{margin-top:4px;color:var(--muted);font-size:10px}.bellamy-quick-row em{color:#756d7f;font-style:normal}
.bellamy-event-row{display:grid;grid-template-columns:29px minmax(0,1fr) auto;gap:10px;align-items:center;padding:12px 0;border-bottom:1px solid var(--stroke)}.bellamy-event-row:last-child{border-bottom:0}.bellamy-event-row>span{width:29px;height:29px;display:grid;place-items:center;border-radius:9px;color:#c09ce3;background:rgba(139,92,246,.08)}.bellamy-event-row b,.bellamy-event-row small{display:block}.bellamy-event-row b{font-size:12px}.bellamy-event-row small{margin-top:4px;color:var(--muted);font-size:10px}.bellamy-event-row time{color:#706878;font-size:9px}
.bellamy-search-modal{position:fixed;inset:0;z-index:100;display:none}.bellamy-search-modal.open{display:block}.bellamy-search-backdrop{position:absolute;inset:0;border:0;background:rgba(5,3,7,.7);backdrop-filter:blur(8px)}
.bellamy-search-dialog{width:min(670px,calc(100vw - 30px));max-height:72vh;position:relative;margin:10vh auto 0;overflow:hidden;border:1px solid rgba(192,132,252,.22);border-radius:18px;background:#120d19;box-shadow:0 34px 110px rgba(0,0,0,.62)}
.bellamy-search-input{height:62px;display:flex;align-items:center;gap:12px;padding:0 17px;border-bottom:1px solid var(--stroke)}.bellamy-search-input>span{color:var(--violet-2);font-size:22px}.bellamy-search-input input{flex:1;border:0;outline:0;background:transparent;color:white;font-size:15px}
.bellamy-search-results{max-height:calc(72vh - 62px);overflow-y:auto;padding:8px}.bellamy-search-empty,.bellamy-search-loading{padding:38px 20px;text-align:center;color:var(--muted)}.bellamy-search-empty strong,.bellamy-search-empty span{display:block}.bellamy-search-empty span{margin-top:6px;font-size:10px}
.bellamy-search-result{display:grid;grid-template-columns:40px minmax(0,1fr) auto;gap:12px;align-items:center;padding:11px;border-radius:12px}.bellamy-search-result:hover{background:rgba(139,92,246,.08)}.bellamy-search-result>span{width:40px;height:40px;display:grid;place-items:center;border-radius:11px;color:#d3bae9;background:rgba(139,92,246,.1)}.bellamy-search-result small,.bellamy-search-result b,.bellamy-search-result em{display:block}.bellamy-search-result small{color:var(--violet-2);font-size:9px;letter-spacing:.08em;text-transform:uppercase}.bellamy-search-result b{margin-top:3px;font-size:13px}.bellamy-search-result div em{margin-top:4px;color:var(--muted);font-size:10px;font-style:normal}.bellamy-search-result>em{color:#71697a;font-style:normal}
@media(max-width:1150px){.bellamy-dashboard-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.bellamy-dashboard-main{grid-template-columns:1fr}}
@media(max-width:850px){.bellamy-nav-caption{display:none}.bellamy-nav{gap:5px}.bellamy-nav-group{gap:3px}.bellamy-search-button{min-width:42px;width:42px;padding:0;justify-content:center}.bellamy-search-button em,.bellamy-search-button kbd{display:none}}
@media(max-width:620px){.bellamy-dashboard-hero{min-height:260px}.bellamy-dashboard-hero-copy{padding:27px 23px}.bellamy-dashboard-hero-copy h2{font-size:27px}.bellamy-dashboard-wordmark{right:18px;font-size:34px}.bellamy-dashboard-metrics{grid-template-columns:1fr}.bellamy-attention-row{grid-template-columns:10px minmax(0,1fr)}.bellamy-attention-row>em{grid-column:2}.bellamy-event-row{grid-template-columns:29px minmax(0,1fr)}.bellamy-event-row time{grid-column:2}}


/* Stage 26.1.2 — dashboard and navigation polish */

.bellamy-dashboard-hero {
    min-height: 264px;
    display: grid;
    grid-template-columns: minmax(0,1.15fr) minmax(360px,.85fr);
    align-items: stretch;
    background:
        radial-gradient(circle at 20% 20%,rgba(139,92,246,.12),transparent 35%),
        linear-gradient(135deg,#100b17,#0a080e);
}
.bellamy-dashboard-hero-copy {
    align-self: center;
    padding: 40px 42px;
}
.bellamy-hero-art {
    position: relative;
    min-height: 264px;
    overflow: hidden;
    border-left: 1px solid rgba(255,255,255,.06);
    background: #0d0912;
}
.bellamy-hero-banner-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .78;
    transform: scale(1.04);
    filter: saturate(.95) contrast(1.04);
}
.bellamy-hero-art::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg,#100b17 0%,transparent 35%),
        linear-gradient(0deg,rgba(8,6,11,.82),transparent 48%);
}
.bellamy-hero-art-glow {
    position: absolute;
    z-index: 2;
    width: 260px;
    height: 260px;
    top: -80px;
    right: -50px;
    border-radius: 50%;
    background: rgba(139,92,246,.24);
    filter: blur(80px);
}
.bellamy-hero-emblem {
    position: absolute;
    z-index: 3;
    width: 88px;
    height: 88px;
    right: 27px;
    top: 24px;
    object-fit: contain;
    filter: drop-shadow(0 16px 30px rgba(0,0,0,.45));
}
.bellamy-hero-art-caption {
    position: absolute;
    z-index: 3;
    left: 30px;
    right: 30px;
    bottom: 27px;
}
.bellamy-hero-art-caption span,
.bellamy-hero-art-caption b {
    display: block;
}
.bellamy-hero-art-caption span {
    color: #cbb1e7;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .18em;
}
.bellamy-hero-art-caption b {
    margin-top: 6px;
    font-size: 17px;
}
.bellamy-dashboard-wordmark {
    display: none;
}

.bellamy-nav a {
    min-height: 46px;
    gap: 12px;
    padding: 5px 10px;
    border: 1px solid transparent;
}
.bellamy-nav a:hover {
    border-color: rgba(255,255,255,.055);
    background: rgba(255,255,255,.035);
}
.bellamy-nav a.active {
    border-color: rgba(192,132,252,.16);
    background:
        linear-gradient(90deg,rgba(139,92,246,.14),rgba(139,92,246,.035));
}
.bellamy-nav .nav-icon {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    margin: 0;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 800;
    color: white;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.07);
}
.nav-purple { background: linear-gradient(145deg,#7c3aed,#4c1d95); }
.nav-blue   { background: linear-gradient(145deg,#3b82f6,#1e3a8a); }
.nav-cyan   { background: linear-gradient(145deg,#06b6d4,#155e75); }
.nav-green  { background: linear-gradient(145deg,#22c55e,#166534); }
.nav-orange { background: linear-gradient(145deg,#f59e0b,#92400e); }
.nav-pink   { background: linear-gradient(145deg,#ec4899,#831843); }
.nav-slate  { background: linear-gradient(145deg,#64748b,#334155); }
.bellamy-nav a:not(.active) .nav-icon {
    opacity: .78;
    filter: saturate(.78);
}
.bellamy-nav a:hover .nav-icon,
.bellamy-nav a.active .nav-icon {
    opacity: 1;
    filter: none;
    transform: translateY(-1px);
}
.bellamy-nav .nav-label {
    color: #bbb4c5;
}
.bellamy-nav a.active .nav-label {
    color: #fff;
    font-weight: 700;
}

.bellamy-quick-row {
    min-height: 67px;
    position: relative;
    overflow: hidden;
}
.bellamy-quick-row::after {
    content: "";
    position: absolute;
    width: 80px;
    height: 80px;
    right: -43px;
    top: -45px;
    border-radius: 50%;
    opacity: .13;
}
.bellamy-quick-row.quick-violet::after { background:#8b5cf6; }
.bellamy-quick-row.quick-cyan::after   { background:#22d3ee; }
.bellamy-quick-row.quick-amber::after  { background:#f59e0b; }
.bellamy-quick-row.quick-green::after  { background:#22c55e; }
.quick-violet > span { background:linear-gradient(145deg,#7c3aed,#4c1d95); }
.quick-cyan > span   { background:linear-gradient(145deg,#06b6d4,#155e75); }
.quick-amber > span  { background:linear-gradient(145deg,#f59e0b,#92400e); }
.quick-green > span  { background:linear-gradient(145deg,#22c55e,#166534); }
.bellamy-quick-row > span {
    color:#fff;
    box-shadow:inset 0 0 0 1px rgba(255,255,255,.1);
}

@media(max-width:1100px) {
    .bellamy-dashboard-hero {
        grid-template-columns: 1fr;
    }
    .bellamy-hero-art {
        min-height: 205px;
        border-left: 0;
        border-top: 1px solid rgba(255,255,255,.06);
    }
}
@media(max-width:620px) {
    .bellamy-dashboard-hero-copy {
        padding: 28px 24px;
    }
    .bellamy-hero-art {
        min-height: 185px;
    }
    .bellamy-hero-emblem {
        width: 66px;
        height: 66px;
    }
}

/* Stage 26.1.3 compact dashboard */
.bellamy-dashboard-compact{gap:10px}.bellamy-dashboard-hero-original{min-height:132px!important;display:block!important;background:linear-gradient(90deg,rgba(10,7,14,.97),rgba(15,10,22,.84) 53%,rgba(28,15,41,.38)),url("/static/bellamy-horizontal-banner.png") center/cover no-repeat!important}.bellamy-dashboard-hero-original .bellamy-dashboard-hero-copy{max-width:700px;padding:20px 26px!important}.bellamy-dashboard-hero-original h2{margin:5px 0 4px!important;font-size:27px!important}.bellamy-dashboard-hero-original p{font-size:11px!important;line-height:1.45!important}.bellamy-dashboard-hero-original .bellamy-core-state{margin-top:10px!important;padding:6px 9px!important;font-size:9px!important}
.bellamy-gta-cover{position:relative;height:108px;overflow:hidden;border:1px solid var(--stroke);border-radius:16px;background:#0b0810}.bellamy-gta-cover img{width:100%;height:100%;display:block;object-fit:cover;object-position:center 48%}.bellamy-gta-cover-overlay{position:absolute;inset:0;background:linear-gradient(90deg,rgba(8,6,11,.55),transparent 42%),linear-gradient(0deg,rgba(8,6,11,.35),transparent 70%)}
.bellamy-dashboard-metrics-compact{gap:9px!important}.bellamy-dashboard-metrics-compact .bellamy-dashboard-metric{min-height:82px!important;padding:11px 12px!important}.bellamy-dashboard-metrics-compact .bellamy-dashboard-metric-head{position:absolute;top:10px;right:10px}.bellamy-dashboard-metrics-compact .bellamy-dashboard-metric-head>span{width:27px!important;height:27px!important;font-size:12px!important}.bellamy-dashboard-metric-copy{display:flex;align-items:center;gap:10px;min-height:58px}.bellamy-dashboard-metric-copy>strong{min-width:42px;margin:0!important;font-size:25px!important}.bellamy-dashboard-metric-copy b,.bellamy-dashboard-metric-copy small{display:block}.bellamy-dashboard-metric-copy b{font-size:11px}.bellamy-dashboard-metric-copy small{margin-top:3px;color:var(--muted);font-size:8px}
.bellamy-dashboard-main-compact{grid-template-columns:minmax(0,1.55fr) minmax(320px,.8fr);gap:10px}.bellamy-dashboard-main-compact .panel,.bellamy-events-compact{padding:13px 15px!important}.bellamy-dashboard-main-compact .panel-head,.bellamy-events-compact .panel-head{margin-bottom:8px!important}.bellamy-dashboard-main-compact .panel-head h3,.bellamy-events-compact .panel-head h3{margin-top:3px!important;font-size:14px!important}.bellamy-dashboard-main-compact .bellamy-attention-row{padding:8px 2px!important}.bellamy-dashboard-main-compact .bellamy-attention-row>div>span{font-size:7px!important}.bellamy-dashboard-main-compact .bellamy-attention-row>div>b{margin-top:2px!important;font-size:10px!important}.bellamy-dashboard-main-compact .bellamy-attention-row>div>small{margin-top:2px!important;font-size:8px!important}.bellamy-dashboard-main-compact .bellamy-attention-row>em{font-size:9px!important}.bellamy-dashboard-empty-compact{display:flex;align-items:center;justify-content:center;gap:10px;padding:17px 10px!important;text-align:left!important}.bellamy-dashboard-empty-compact>span{width:32px!important;height:32px!important;margin:0!important}
.bellamy-quick-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.bellamy-quick-grid .bellamy-quick-row{min-height:63px!important;grid-template-columns:31px 1fr!important;gap:8px!important;padding:9px!important}.bellamy-quick-grid .bellamy-quick-row>span{width:31px!important;height:31px!important;font-size:12px!important}.bellamy-quick-grid .bellamy-quick-row b{font-size:9px!important}.bellamy-quick-grid .bellamy-quick-row small{font-size:7px!important}.bellamy-quick-grid .bellamy-quick-row>em{display:none}.bellamy-events-compact .bellamy-event-row{padding:7px 0!important}.bellamy-events-compact .bellamy-event-row>span{width:24px!important;height:24px!important;font-size:9px}.bellamy-events-compact .bellamy-event-row b{font-size:9px!important}.bellamy-events-compact .bellamy-event-row small,.bellamy-events-compact .bellamy-event-row time{font-size:7px!important}.page{padding-top:15px!important;padding-bottom:18px!important}.topbar{min-height:62px!important;height:62px!important}.topbar h1{font-size:18px!important}.bellamy-nav a{min-height:41px!important}.bellamy-nav .nav-icon{width:29px!important;height:29px!important;border-radius:9px!important}.bellamy-nav .nav-label{font-size:11px!important}
@media(max-width:1150px){.bellamy-dashboard-main-compact{grid-template-columns:1fr}}@media(max-width:760px){.bellamy-gta-cover{height:92px}.bellamy-dashboard-metrics-compact{grid-template-columns:repeat(2,minmax(0,1fr))!important}}@media(max-width:520px){.bellamy-dashboard-metrics-compact{grid-template-columns:1fr!important}.bellamy-quick-grid{grid-template-columns:1fr}}

/* Stage 26.2 Majestic Hub */
.majestic-hub{display:grid;gap:14px}.majestic-hero{min-height:210px;display:flex;align-items:center;justify-content:space-between;gap:30px;padding:30px 34px;border:1px solid var(--stroke);border-radius:22px;background:linear-gradient(100deg,rgba(10,7,14,.96),rgba(25,13,38,.66)),url('/static/bellamy-gta-cover.jpg') center/cover;box-shadow:0 22px 60px rgba(0,0,0,.3)}.majestic-hero h2{margin:8px 0;font-size:31px}.majestic-hero p{max-width:650px;color:var(--muted);line-height:1.55}.detroit-live-orb{min-width:190px;height:150px;display:grid;place-content:center;text-align:center;border:1px solid rgba(255,255,255,.1);border-radius:22px;background:rgba(8,6,12,.7);box-shadow:inset 0 0 60px rgba(251,113,133,.08)}.detroit-live-orb.online{box-shadow:inset 0 0 60px rgba(74,222,128,.09),0 0 40px rgba(74,222,128,.08)}.detroit-live-orb b{font-size:42px}.detroit-live-orb span{margin-top:5px;color:var(--muted);font-size:11px}.majestic-stat-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:10px}.majestic-stat-grid article{padding:15px;border:1px solid var(--stroke);border-radius:14px;background:var(--panel)}.majestic-stat-grid span,.majestic-stat-grid b{display:block}.majestic-stat-grid span{color:var(--muted);font-size:9px;text-transform:uppercase;letter-spacing:.08em}.majestic-stat-grid b{margin-top:9px;font-size:21px}.majestic-stat-grid .small-value{font-size:12px}.range-tabs{display:flex;gap:6px}.range-tabs a{padding:7px 10px;border:1px solid var(--stroke);border-radius:9px;color:var(--muted);font-size:10px}.range-tabs a.active{color:white;border-color:rgba(192,132,252,.24);background:rgba(139,92,246,.1)}.majestic-chart{position:relative;height:260px}.majestic-chart svg{width:100%;height:100%;overflow:visible}.chart-grid-line{stroke:rgba(255,255,255,.055);stroke-width:1}.chart-area{fill:rgba(139,92,246,.12)}.chart-line{fill:none;stroke:#a879ef;stroke-width:4;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}.chart-label{fill:#9f97aa;font-size:13px}.chart-empty{position:absolute;inset:0;display:none;place-items:center;color:var(--muted)}.majestic-two-col{display:grid;grid-template-columns:1fr 1fr;gap:14px}.healthy-state,.majestic-event-info{display:flex;align-items:center;gap:12px;padding:18px;border:1px solid rgba(74,222,128,.12);border-radius:13px;background:rgba(74,222,128,.04)}.healthy-state>span,.majestic-event-info>span{width:38px;height:38px;display:grid;place-items:center;border-radius:11px;background:rgba(74,222,128,.1);color:var(--green)}.healthy-state b,.healthy-state small{display:block}.healthy-state small{margin-top:4px;color:var(--muted)}.incident-live{padding:17px;border-radius:13px;background:rgba(251,113,133,.07);border:1px solid rgba(251,113,133,.14)}.incident-live b,.incident-live span{display:block}.incident-live span{margin-top:5px;color:var(--muted)}.majestic-update-mini{display:grid}.majestic-update-mini a{padding:11px 0;border-bottom:1px solid var(--stroke)}.majestic-update-mini a:last-child{border-bottom:0}.majestic-update-mini b,.majestic-update-mini span{display:block}.majestic-update-mini b{font-size:11px}.majestic-update-mini span{margin-top:4px;color:var(--muted);font-size:9px}.incident-list,.majestic-updates-list{display:grid}.incident-row,.majestic-update-row{display:grid;grid-template-columns:42px 1fr auto;gap:13px;align-items:center;padding:14px 0;border-bottom:1px solid var(--stroke)}.incident-icon{width:38px;height:38px;display:grid;place-items:center;border-radius:11px;background:rgba(74,222,128,.1);color:var(--green)}.incident-icon.open{background:rgba(251,113,133,.1);color:var(--red)}.incident-row b,.incident-row small{display:block}.incident-row small{margin-top:4px;color:var(--muted)}.update-badge{padding:6px 7px;border-radius:7px;background:rgba(96,165,250,.11);color:#93c5fd;font-size:8px;font-weight:800}.update-badge.family{background:rgba(139,92,246,.13);color:#d8b4fe}.majestic-update-row b,.majestic-update-row small{display:block}.majestic-update-row small{margin-top:4px;color:var(--muted)}.majestic-update-row em{font-style:normal;color:var(--muted)}
@media(max-width:1200px){.majestic-stat-grid{grid-template-columns:repeat(3,1fr)}}@media(max-width:850px){.majestic-hero{align-items:flex-start;flex-direction:column}.detroit-live-orb{width:100%;height:110px}.majestic-two-col{grid-template-columns:1fr}}@media(max-width:600px){.majestic-stat-grid{grid-template-columns:1fr 1fr}.majestic-hero{padding:23px}.majestic-chart{height:210px}}

.dashboard-detroit-card{min-height:64px;display:flex;align-items:center;gap:18px;padding:11px 15px;border:1px solid rgba(192,132,252,.16);border-radius:14px;background:linear-gradient(90deg,rgba(139,92,246,.10),rgba(255,255,255,.015));transition:.17s}.dashboard-detroit-card:hover{transform:translateY(-1px);border-color:rgba(192,132,252,.28)}.dashboard-detroit-brand{display:flex;align-items:center;gap:10px}.dashboard-detroit-brand>span{width:36px;height:36px;display:grid;place-items:center;border-radius:11px;background:linear-gradient(145deg,#ec4899,#6d28d9);font-weight:900}.dashboard-detroit-brand small,.dashboard-detroit-brand b{display:block}.dashboard-detroit-brand small{font-size:7px;color:#d8b4fe;letter-spacing:.13em}.dashboard-detroit-brand b{font-size:12px;margin-top:2px}.dashboard-detroit-live{margin-left:auto;display:flex;align-items:baseline;gap:6px}.dashboard-detroit-live i{width:8px;height:8px;border-radius:50%;background:var(--red)}.dashboard-detroit-live i.online{background:var(--green);box-shadow:0 0 10px rgba(74,222,128,.5)}.dashboard-detroit-live strong{font-size:20px}.dashboard-detroit-live span{font-size:9px;color:var(--muted)}.dashboard-detroit-card>em{font-style:normal;font-size:9px;color:#cdb7e7}
/* Stage 27: isolated administrator access center */
.admin-access-page{display:grid;gap:22px;max-width:1500px;margin:0 auto;padding-bottom:30px}.access-hero{position:relative;overflow:hidden;display:flex;align-items:center;justify-content:space-between;gap:28px;min-height:170px;padding:34px 38px;border:1px solid rgba(153,113,255,.2);border-radius:24px;background:radial-gradient(circle at 80% 15%,rgba(132,80,255,.23),transparent 36%),linear-gradient(135deg,#171226 0%,#0e1018 58%,#171021 100%);box-shadow:0 22px 55px rgba(0,0,0,.25)}.access-hero:after{content:"";position:absolute;inset:auto -60px -140px auto;width:360px;height:360px;border:1px solid rgba(184,159,255,.15);border-radius:50%;box-shadow:0 0 90px rgba(124,65,255,.16)}.access-hero h2{max-width:720px;margin:7px 0 9px;font-size:clamp(25px,3vw,40px);line-height:1.05}.access-hero p{max-width:700px;margin:0;color:#aaa7b7}.access-platforms{position:relative;z-index:1;display:flex;align-items:center;gap:10px;white-space:nowrap}.access-platforms span{padding:10px 12px;border:1px solid rgba(255,255,255,.11);border-radius:10px;background:rgba(255,255,255,.045);font-size:11px;font-weight:800;letter-spacing:.12em;color:#ddd7ef}.access-platforms i{width:18px;height:1px;background:linear-gradient(90deg,#8b5cf6,#ef4773)}.access-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(320px,.75fr);gap:18px}.access-invite-card,.access-sync-card{padding:24px}.access-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.access-form label,.access-inline-form label{display:grid;gap:7px}.access-form label span,.access-inline-form label span{font-size:12px;color:#aaa7b7}.access-form .primary-button{align-self:end;min-height:44px}.access-sync-state{display:flex;align-items:center;gap:14px;padding:16px;margin:14px 0;border:1px solid rgba(110,231,183,.14);border-radius:15px;background:rgba(51,211,153,.05)}.access-sync-state div{display:grid;gap:3px}.access-sync-state small{color:#9895a6}.sync-orb{width:14px;height:14px;border-radius:50%;background:#50d6a0;box-shadow:0 0 0 6px rgba(80,214,160,.09),0 0 20px rgba(80,214,160,.5)}.access-checks{display:grid;gap:10px;margin:18px 0;padding:0;list-style:none}.access-checks li{position:relative;padding-left:25px;color:#bcb8c8;font-size:13px}.access-checks li:before{content:"✓";position:absolute;left:0;color:#9f78ff;font-weight:800}.access-success{display:grid;gap:12px;padding:18px 20px;border:1px solid rgba(80,214,160,.24);border-radius:18px;background:rgba(40,170,119,.09)}.access-success>div:first-child{display:grid;gap:3px}.access-success span{color:#aaa7b7;font-size:13px}.access-copy-row{display:flex;gap:10px}.access-copy-row input{flex:1}.access-copy-row button{white-space:nowrap}.section-count{display:grid;place-items:center;min-width:36px;height:36px;border-radius:10px;background:rgba(139,92,246,.13);color:#bda7ff;font-weight:800}.access-admin-list{display:grid;gap:10px}.access-admin-card{overflow:hidden;border:1px solid rgba(255,255,255,.075);border-radius:18px;background:linear-gradient(145deg,rgba(27,27,39,.96),rgba(18,18,27,.96));transition:border-color .2s,transform .2s}.access-admin-card:hover{border-color:rgba(144,104,255,.22)}.access-admin-card.is-disabled{opacity:.67}.access-admin-summary{display:grid;grid-template-columns:auto minmax(180px,1fr) auto auto auto;align-items:center;gap:16px;padding:17px 20px}.access-admin-name{display:grid;gap:4px}.access-admin-name span{color:#92909d;font-size:12px}.access-role-badge{padding:7px 10px;border:1px solid rgba(150,111,255,.16);border-radius:9px;background:rgba(130,84,246,.09);color:#c4b3f5;font-size:12px;font-weight:700}.access-expand{min-width:105px}.access-admin-details{padding:0 20px 22px;border-top:1px solid rgba(255,255,255,.06)}.access-admin-controls{display:flex;align-items:end;justify-content:space-between;gap:16px;padding:20px 0}.access-inline-form{display:flex;align-items:end;gap:10px}.access-inline-form select{min-width:220px}.access-admin-buttons{display:flex;gap:8px}.access-admin-buttons form{margin:0}.permission-editor{display:grid;gap:18px;padding:20px;border:1px solid rgba(255,255,255,.065);border-radius:16px;background:rgba(6,7,12,.28)}.permission-editor-head{display:flex;align-items:center;justify-content:space-between;gap:20px}.permission-editor-head>div{display:grid;gap:4px}.permission-editor-head span{color:#93909f;font-size:12px}.permission-editor fieldset{margin:0;padding:0;border:0}.permission-editor legend{margin-bottom:9px;color:#c6c1d3;font-size:11px;font-weight:800;letter-spacing:.1em;text-transform:uppercase}.permission-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.permission-item{display:flex;align-items:flex-start;gap:10px;min-height:68px;padding:11px;border:1px solid rgba(255,255,255,.055);border-radius:12px;background:rgba(255,255,255,.018);cursor:pointer}.permission-item:has(input:checked){border-color:rgba(139,92,246,.28);background:rgba(139,92,246,.075)}.permission-item input{margin-top:4px;accent-color:#8b5cf6}.permission-item span{display:grid;gap:3px}.permission-item b{font-size:12px;color:#dedbe6}.permission-item small{color:#858391;font-size:10px;line-height:1.35}@media(max-width:1100px){.access-grid{grid-template-columns:1fr}.permission-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.access-platforms{display:none}}@media(max-width:760px){.access-hero{padding:25px}.access-form{grid-template-columns:1fr}.access-admin-summary{grid-template-columns:auto 1fr auto}.access-role-badge,.access-admin-summary>.status{display:none}.access-admin-controls,.permission-editor-head{align-items:stretch;flex-direction:column}.access-inline-form{align-items:stretch;flex-direction:column}.access-admin-buttons{flex-wrap:wrap}.permission-grid{grid-template-columns:1fr}.access-copy-row{flex-direction:column}}
.operations-page{display:grid;gap:20px;max-width:1500px;margin:0 auto;padding-bottom:34px}.operations-hero{display:flex;align-items:center;justify-content:space-between;min-height:145px;padding:30px 34px;border:1px solid rgba(142,101,255,.18);border-radius:22px;background:radial-gradient(circle at 86% 20%,rgba(239,71,115,.13),transparent 34%),linear-gradient(135deg,#171222,#0f1017 70%)}.operations-hero h2{margin:6px 0 7px;font-size:32px}.operations-hero p{margin:0;color:#9b98a7}.operations-hero-state{display:flex;align-items:center;gap:10px;padding:10px 13px;border:1px solid rgba(80,214,160,.17);border-radius:12px;background:rgba(80,214,160,.055);font-size:12px;color:#bcdcca}.operations-hero-state i{width:9px;height:9px;border-radius:50%;background:#50d6a0;box-shadow:0 0 15px rgba(80,214,160,.7)}.operations-tabs{display:flex;gap:7px;overflow:auto;padding:5px;border:1px solid rgba(255,255,255,.06);border-radius:15px;background:rgba(14,15,22,.82)}.operations-tabs button{display:flex;align-items:center;gap:8px;min-width:max-content;padding:10px 14px;border:0;background:transparent;color:#9693a1}.operations-tabs button b{display:grid;place-items:center;min-width:21px;height:21px;padding:0 5px;border-radius:7px;background:rgba(255,255,255,.06);font-size:10px}.operations-tabs button.active{background:linear-gradient(135deg,rgba(134,87,246,.22),rgba(211,65,116,.12));color:#f0ecf8;box-shadow:inset 0 0 0 1px rgba(160,119,255,.16)}.operation-section{display:none}.operation-section.active{display:block}.operation-card-list{display:grid;gap:9px}.operation-row{display:flex;align-items:center;gap:14px;padding:14px 16px;border:1px solid rgba(255,255,255,.065);border-radius:15px;background:rgba(24,24,34,.9)}.operation-row>div:nth-child(2){display:grid;flex:1;gap:3px}.operation-row b{color:#e2dfeb}.operation-row span,.operation-row small{color:#9693a1}.operation-row form{display:flex;gap:7px}.operation-mark{display:grid;place-items:center;flex:0 0 37px;height:37px;border-radius:11px;font-weight:900}.operation-mark.violet{background:rgba(139,92,246,.14);color:#b99dff}.operation-mark.cyan{background:rgba(34,211,238,.11);color:#6ee7f5}.operation-mark.green{background:rgba(52,211,153,.11);color:#6ee7b7}.operation-mark.amber{background:rgba(245,158,11,.11);color:#f7bf57}.operation-mark.pink{background:rgba(236,72,153,.11);color:#f38aba}.operation-money{font-size:18px;color:#7be0b1}.operation-two-column{display:grid;grid-template-columns:1.1fr .9fr;gap:17px}.operation-two-column>.panel,.announcement-composer{padding:22px}.full-span{grid-column:1/-1}.knowledge-editor-list{display:grid;gap:10px}.knowledge-editor-list details{padding:0}.knowledge-editor-list summary{display:flex;align-items:center;justify-content:space-between;padding:17px 19px;cursor:pointer}.knowledge-editor-list summary span{font-size:11px;color:#8f8c99}.knowledge-editor-list form{display:grid;gap:13px;padding:0 19px 19px}.announcement-composer{display:grid;grid-template-columns:.75fr 1.25fr;gap:35px}.announcement-composer p{color:#9996a4}.announcement-composer form{display:grid;gap:13px}.announcement-composer label{display:grid;gap:7px}.announcement-composer label span{font-size:12px;color:#a19dab}@media(max-width:980px){.operation-two-column,.announcement-composer{grid-template-columns:1fr}}@media(max-width:680px){.operations-hero{align-items:flex-start;flex-direction:column}.operation-row{align-items:flex-start;flex-wrap:wrap}.operation-row form{width:100%}}
.command-dashboard{display:grid;gap:13px;max-width:1500px;margin:0 auto;padding-bottom:24px}.command-hero{position:relative;isolation:isolate;display:grid;grid-template-columns:minmax(0,1fr) 310px;align-items:end;min-height:225px;overflow:hidden;padding:30px 34px;border:1px solid rgba(177,137,255,.18);border-radius:23px;background:#100d16 url('/static/bellamy-gta-cover.jpg') center 46%/cover no-repeat;box-shadow:0 24px 60px rgba(0,0,0,.28)}.command-hero-overlay{position:absolute;z-index:-1;inset:0;background:linear-gradient(90deg,rgba(8,7,12,.96) 0%,rgba(10,8,14,.8) 43%,rgba(12,8,16,.2) 72%,rgba(10,7,14,.55) 100%),linear-gradient(0deg,rgba(7,6,10,.72),transparent 65%)}.command-hero h2{margin:7px 0 8px;font-size:clamp(30px,4vw,46px);line-height:1;letter-spacing:-.035em}.command-hero p{max-width:620px;margin:0;color:#c1bac7;font-size:13px}.command-system-line{display:flex;align-items:center;gap:8px;margin-top:19px;padding:8px 10px;width:max-content;max-width:100%;border:1px solid rgba(255,255,255,.09);border-radius:11px;background:rgba(6,5,9,.57);font-size:10px}.command-system-line i{width:8px;height:8px;border-radius:50%;background:#f59e0b}.command-system-line i.online{background:#50d6a0;box-shadow:0 0 12px rgba(80,214,160,.65)}.command-system-line span{color:#918d99}.command-hero-side{display:flex;justify-content:flex-end}.command-detroit{display:grid;min-width:260px;padding:17px 18px;border:1px solid rgba(255,255,255,.1);border-radius:17px;background:linear-gradient(145deg,rgba(12,10,17,.83),rgba(30,16,39,.65));backdrop-filter:blur(13px)}.command-detroit-title{font-size:9px;font-weight:800;letter-spacing:.1em;color:#d8c7e8}.command-detroit-title i{display:inline-block;width:7px;height:7px;margin-right:5px;border-radius:50%;background:#ef567c}.command-detroit-title i.online{background:#50d6a0;box-shadow:0 0 10px rgba(80,214,160,.5)}.command-detroit strong{margin-top:9px;font-size:38px;line-height:1}.command-detroit small{margin-top:7px;color:#aaa2b0}.command-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.command-metric{display:flex;align-items:center;gap:13px;min-height:80px;padding:13px 15px;border:1px solid rgba(255,255,255,.065);border-radius:15px;background:linear-gradient(145deg,rgba(26,26,37,.96),rgba(16,17,24,.96));transition:.18s}.command-metric:hover{transform:translateY(-2px);border-color:rgba(153,112,255,.23)}.command-metric>span{display:grid;place-items:center;width:38px;height:38px;border-radius:11px;background:rgba(139,92,246,.12);color:#bda7ff;font-weight:900}.command-metric>div{display:grid;grid-template-columns:auto 1fr;column-gap:9px;align-items:baseline}.command-metric strong{grid-row:1/3;font-size:25px}.command-metric b{font-size:11px}.command-metric small{color:#898693;font-size:9px}.command-workspace{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(340px,.75fr);gap:11px}.command-workspace>.panel,.command-events{padding:15px 17px}.command-workspace .panel-head,.command-events .panel-head{margin-bottom:9px}.command-workspace h3,.command-events h3{margin-top:3px;font-size:15px}.command-workspace .panel-head>a,.command-events .panel-head>a{color:#bba6d4;font-size:9px}.command-decision-list{display:grid}.command-decision{display:grid;grid-template-columns:8px minmax(0,1fr) auto;align-items:center;gap:11px;padding:9px 2px;border-bottom:1px solid rgba(255,255,255,.055)}.command-decision:last-child{border-bottom:0}.command-decision>i{width:6px;height:32px;border-radius:5px;background:#8b5cf6}.command-decision>i.priority-high{background:#ef567c}.command-decision>div{display:grid;gap:2px}.command-decision span{font-size:7px;letter-spacing:.08em;text-transform:uppercase;color:#9d79e8}.command-decision b{font-size:11px}.command-decision small{color:#8e8b98;font-size:8px}.command-decision em{font-style:normal;color:#c0abd7;font-size:9px}.command-empty{display:flex;align-items:center;justify-content:center;gap:12px;min-height:95px}.command-empty>span{display:grid;place-items:center;width:36px;height:36px;border-radius:11px;background:rgba(80,214,160,.1);color:#65dca9}.command-empty div{display:grid;gap:3px}.command-empty small{color:#8f8c98}.command-action-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.command-action-grid>a,.command-action-grid>button{display:flex;align-items:center;gap:9px;min-height:58px;padding:9px;border:1px solid rgba(255,255,255,.055);border-radius:12px;background:rgba(255,255,255,.018);text-align:left}.command-action-grid>a:hover,.command-action-grid>button:hover{border-color:rgba(153,112,255,.2);background:rgba(139,92,246,.05)}.command-action-grid>*>span{display:grid;place-items:center;flex:0 0 31px;height:31px;border-radius:9px;background:rgba(139,92,246,.12);color:#c3adff;font-weight:900}.command-action-grid>*>div{display:grid;gap:2px}.command-action-grid b{font-size:10px}.command-action-grid small{font-size:8px;color:#85828f}.command-event-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.command-event-row>div{display:grid;grid-template-columns:auto 1fr;gap:8px;padding:8px 10px;border:1px solid rgba(255,255,255,.05);border-radius:11px;background:rgba(255,255,255,.015)}.command-event-row>div>span{color:#986ee6;font-size:8px}.command-event-row p{display:grid;gap:2px;margin:0}.command-event-row b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:9px}.command-event-row small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#83808c;font-size:7px}.command-event-row time{grid-column:2;color:#6f6c77;font-size:7px}@media(max-width:1150px){.command-workspace{grid-template-columns:1fr}.command-event-row{grid-template-columns:repeat(2,1fr)}}@media(max-width:900px){.command-hero{grid-template-columns:1fr}.command-hero-side{display:none}.command-metrics{grid-template-columns:repeat(2,1fr)}}@media(max-width:600px){.command-hero{min-height:245px;padding:25px 22px}.command-system-line span{display:none}.command-metrics{grid-template-columns:1fr}.command-action-grid,.command-event-row{grid-template-columns:1fr}}
.admin-access-page input,.admin-access-page select,.admin-access-page textarea,.operations-page input,.operations-page select,.operations-page textarea{width:100%;border:1px solid rgba(255,255,255,.09);border-radius:10px;background:#11121a;color:#e9e5ef;outline:none;transition:border-color .18s,box-shadow .18s}.admin-access-page input,.admin-access-page select,.operations-page input,.operations-page select{min-height:42px;padding:0 12px}.admin-access-page textarea,.operations-page textarea{padding:12px;resize:vertical}.admin-access-page input:focus,.admin-access-page select:focus,.admin-access-page textarea:focus,.operations-page input:focus,.operations-page select:focus,.operations-page textarea:focus{border-color:rgba(145,96,255,.55);box-shadow:0 0 0 3px rgba(139,92,246,.1)}.admin-access-page button,.operations-page button{border:1px solid rgba(255,255,255,.09);border-radius:10px;background:#191a24;color:#dcd8e5;cursor:pointer}.admin-access-page button:hover,.operations-page button:hover{border-color:rgba(155,113,255,.3);background:#20202d}.admin-access-page .primary-button,.operations-page .primary-button{border-color:transparent;background:linear-gradient(135deg,#8b5cf6,#b24cef);color:white;box-shadow:0 8px 24px rgba(113,62,220,.2)}.admin-access-page .secondary-button{background:rgba(139,92,246,.1);color:#d9c9ff}.operations-page .success-button{border-color:rgba(80,214,160,.18);background:rgba(80,214,160,.09);color:#8ce7bd}.admin-access-page .danger-button,.operations-page .danger-button{border-color:rgba(239,86,124,.18);background:rgba(239,86,124,.08);color:#ff9bb3}
@media(max-width:620px){.sidebar{z-index:50;inset:auto 0 0 0;width:auto;height:70px;padding:8px 10px;background:rgba(10,9,15,.96);backdrop-filter:blur(18px)}.sidebar .brand,.sidebar .sidebar-footer,.bellamy-nav-caption{display:none!important}.sidebar .bellamy-nav{display:flex!important;grid-template-columns:none;width:100%;gap:5px;overflow-x:auto}.sidebar .bellamy-nav-group{display:contents}.sidebar .bellamy-nav a{display:flex!important;flex:0 0 52px;min-height:52px;padding:6px;justify-content:center;border-radius:12px}.sidebar .bellamy-nav a .nav-label{display:none}.sidebar .bellamy-nav a .nav-icon{margin:0}.content{margin-left:0;padding:18px 13px 92px}.bellamy-topbar{gap:10px}.bellamy-topbar .eyebrow{display:none}.bellamy-topbar h1{font-size:19px}.bellamy-search-button em,.bellamy-search-button kbd{display:none}}

.admin-copy{color:inherit;text-decoration:none;min-width:0}.admin-copy:hover strong{color:#cdbdff}.account-page{max-width:760px;margin:0 auto;display:grid;gap:18px}.account-hero{display:flex;align-items:center;gap:18px;padding:22px}.account-avatar{width:64px;height:64px;font-size:25px}.account-hero h2{margin:3px 0 5px;font-size:25px}.account-hero p{margin:0;color:var(--muted)}.account-password-card{padding:24px}.account-form{display:grid;gap:14px;margin-top:18px}.account-form label{display:grid;gap:7px}.account-form label span{font-size:12px;font-weight:700;color:#b8b0c9}.account-form input{width:100%;padding:12px 14px;border:1px solid rgba(255,255,255,.1);border-radius:11px;background:#121019;color:#fff;box-sizing:border-box}.account-form button{justify-self:start}
.intelligence-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:16px}.intelligence-metrics article{display:grid;gap:2px;padding:17px;border:1px solid rgba(255,255,255,.08);border-radius:14px;background:linear-gradient(145deg,rgba(137,79,255,.12),rgba(255,255,255,.025))}.intelligence-metrics strong{font-size:27px}.intelligence-metrics span{color:var(--muted);font-size:12px}@media(max-width:820px){.intelligence-metrics{grid-template-columns:1fr 1fr}}
/* Stage 27.1 · isolated administration parity surfaces */
.table-subtitle{display:block;margin-top:4px;color:var(--muted);font-size:12px}.inline-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}.inline-actions input[type=number]{width:72px}.integration-hero{display:flex;align-items:center;justify-content:space-between;gap:28px;padding:26px 30px;margin-bottom:18px;border:1px solid rgba(143,104,255,.22);border-radius:22px;background:linear-gradient(120deg,rgba(87,48,153,.28),rgba(15,18,28,.92) 52%,rgba(26,91,107,.22));overflow:hidden}.integration-hero h2,.ai-intro h2{margin:6px 0 8px;font-size:30px}.integration-hero p,.ai-intro p{margin:0;color:var(--muted)}.integration-flow{display:flex;align-items:center;gap:12px;padding:14px 18px;border:1px solid rgba(255,255,255,.1);border-radius:16px;background:rgba(0,0,0,.22);white-space:nowrap}.integration-flow span{color:#d8d2e8}.integration-flow strong{color:#fff}.integration-flow i{color:#a884ff;font-style:normal}.ai-workspace{max-width:980px;margin:0 auto}.ai-intro{padding:28px 30px;border:1px solid rgba(143,104,255,.22);border-radius:22px;background:radial-gradient(circle at 88% 20%,rgba(144,80,255,.22),transparent 35%),linear-gradient(145deg,rgba(22,19,35,.98),rgba(12,15,23,.98))}.ai-suggestions{display:flex;gap:9px;flex-wrap:wrap;margin-top:22px}.ai-suggestions button{border:1px solid rgba(168,132,255,.28);background:rgba(112,70,190,.12);color:#dcd4ef;border-radius:999px;padding:9px 13px}.ai-composer{display:grid;grid-template-columns:1fr auto;align-items:end;gap:12px;margin:16px 0}.ai-composer textarea{resize:vertical;min-height:82px}.ai-answer{margin-top:16px}.ai-answer div{margin-top:12px;white-space:pre-wrap;line-height:1.65;color:#e9e5f2}
@media(max-width:800px){.integration-hero{align-items:flex-start;flex-direction:column;padding:22px}.integration-flow{width:100%;justify-content:center}.ai-composer{grid-template-columns:1fr}.inline-actions{justify-content:flex-start}.integration-hero h2,.ai-intro h2{font-size:25px}}
.ai-workspace .ai-composer textarea{resize:vertical;min-height:82px;padding:14px 16px;border:1px solid rgba(168,132,255,.22);border-radius:14px;background:#12101a;color:#f2edf9;outline:none}.ai-workspace .ai-composer textarea:focus{border-color:rgba(168,132,255,.62);box-shadow:0 0 0 3px rgba(139,92,246,.1)}
