:root{--bg:#070a11;--panel:#101522;--panel2:#151c2c;--line:#242e42;--text:#f4f7ff;--muted:#8e9bb2;--accent:#7b8cff;--good:#54d6a3;--danger:#ff718c}*{box-sizing:border-box}body{margin:0;background:radial-gradient(circle at 70% 0,#17203a 0,transparent 34%),var(--bg);color:var(--text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,sans-serif;min-height:100vh}.hidden{display:none!important}.shell{display:grid;grid-template-columns:230px 1fr;min-height:100vh}aside{border-right:1px solid var(--line);padding:28px 18px;display:flex;flex-direction:column;background:#090d16cc}.brand{display:flex;align-items:center;gap:10px;letter-spacing:.16em}.orb{width:18px;height:18px;border-radius:50%;display:inline-block;background:radial-gradient(circle at 35% 30%,#fff,#8b98ff 28%,#4a55c9 55%,transparent 72%);box-shadow:0 0 26px #7585ff}.brand+nav,nav{margin-top:42px;display:grid;gap:8px}nav button,.ghost{border:0;background:transparent;color:var(--muted);padding:12px 14px;border-radius:12px;text-align:left;font-size:15px;cursor:pointer}nav button.active,nav button:hover{background:var(--panel2);color:var(--text)}nav span{margin-left:10px}.aside-bottom{margin-top:auto;padding:12px}.aside-bottom div{font-weight:650;margin-bottom:8px}main{padding:34px 44px}header{display:flex;justify-content:space-between;align-items:center;margin-bottom:34px}header small{color:var(--muted);letter-spacing:.15em}header h2{font-size:28px;margin:6px 0 0}.status{font-size:13px;color:var(--muted)}.status-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--good);box-shadow:0 0 12px var(--good);margin-right:7px}.hero,.card{background:linear-gradient(145deg,#141b2a,#0e1320);border:1px solid var(--line);border-radius:22px;padding:25px}.hero h1{font-size:34px;margin:0 0 8px}.hero p,.muted{color:var(--muted)}.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:18px}.stat strong{font-size:30px;display:block}.stat span{color:var(--muted)}.row{display:flex;gap:12px;align-items:center}.between{justify-content:space-between}.stack{display:grid;gap:12px}.task{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:center}.task h4{margin:0 0 5px}.badge{font-size:12px;padding:5px 9px;border-radius:999px;background:#222b42;color:#b9c4dd}.critical{color:#ff9aaa}.high{color:#ffd17a}button,.button{background:var(--accent);color:white;border:0;border-radius:12px;padding:11px 16px;font-weight:650;cursor:pointer;text-decoration:none;display:inline-block}button.secondary{background:var(--panel2);border:1px solid var(--line)}input,textarea,select{width:100%;background:#090d16;color:var(--text);border:1px solid var(--line);border-radius:11px;padding:12px;margin-top:6px}label{font-size:13px;color:var(--muted);display:block;margin-bottom:13px}.composer{display:grid;grid-template-columns:1fr auto;gap:10px}.conversation{min-height:280px;display:grid;align-content:start;gap:12px;margin-bottom:14px}.bubble{max-width:75%;padding:13px 15px;border-radius:16px;background:var(--panel2)}.bubble.user{margin-left:auto;background:#39468f}.switch{display:flex;align-items:center;gap:12px}.auth,.install{min-height:100vh;display:grid;place-items:center;padding:20px}.login-card,.install-card{width:min(460px,100%);background:var(--panel);border:1px solid var(--line);border-radius:24px;padding:32px}.login-card h1,.install-card h1{margin-top:35px}.form-error,.notice.error{color:#ff9aaa;margin-top:12px}.notice{padding:12px;border-radius:12px;margin:14px 0}.notice.success{background:#173b32;color:#89e9c7}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:12px}@media(max-width:800px){.shell{grid-template-columns:76px 1fr}aside{padding:25px 10px}nav span,.brand b,.aside-bottom div{display:none}main{padding:25px 16px}.grid{grid-template-columns:1fr}.status{display:none}.hero h1{font-size:27px}}.boot{min-height:100vh;display:grid;place-content:center;text-align:center;color:var(--muted)}.boot h1{color:var(--text);letter-spacing:.18em;margin:22px 0 4px}.orb.large{width:38px;height:38px;margin:auto}.api-warning{background:#3a201b;border:1px solid #714035;color:#ffc0aa;padding:13px;border-radius:12px;margin-bottom:18px}.install-link{color:#aeb9ff}.top-actions{display:flex;gap:10px;align-items:center}@media(max-width:600px){.top-actions .ghost{display:none}}


/* EDGE Command Center v0.7.0 */
.command-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    min-height: 250px;
    padding: 38px;
    border: 1px solid rgba(125, 200, 255, .18);
    border-radius: 24px;
    background:
        radial-gradient(circle at 82% 35%, rgba(75, 143, 255, .18), transparent 34%),
        linear-gradient(135deg, rgba(18, 27, 48, .96), rgba(8, 13, 25, .96));
    box-shadow: 0 24px 70px rgba(0, 0, 0, .25);
}

.command-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(125, 200, 255, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(125, 200, 255, .035) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: linear-gradient(to left, #000, transparent 75%);
}

.command-hero-copy {
    position: relative;
    z-index: 1;
    max-width: 720px;
}

.command-kicker {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #83caff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .18em;
}

.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #62e6a7;
    box-shadow: 0 0 0 6px rgba(98, 230, 167, .08), 0 0 18px rgba(98, 230, 167, .7);
}

.command-hero h1 {
    margin: 16px 0 10px;
    font-size: clamp(32px, 5vw, 58px);
    line-height: 1.03;
    letter-spacing: -.045em;
}

.command-hero p {
    max-width: 680px;
    margin: 0;
    color: var(--muted, #9aa8bf);
    font-size: 17px;
    line-height: 1.7;
}

.command-clock {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-top: 28px;
}

.command-clock strong {
    font-size: 28px;
    letter-spacing: -.03em;
}

.command-clock span {
    color: var(--muted, #9aa8bf);
    text-transform: capitalize;
}

.command-orb-button {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    flex: 1 1 46%;
    width: min(48vw, 620px);
    max-width: 620px;
    min-height: 230px;
    border: 0;
    background: transparent;
    color: #dff3ff;
    cursor: pointer;
}

.command-orb-button .command-orb {
    width: 112px;
    height: 112px;
    margin-bottom: 14px;
    box-shadow:
        0 0 0 18px rgba(72, 142, 255, .05),
        0 0 70px rgba(72, 142, 255, .5);
    animation: edgeCommandPulse 3.6s ease-in-out infinite;
}

.command-orb-button > span:last-child {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .26em;
}

@keyframes edgeCommandPulse {
    0%, 100% { transform: scale(1); filter: brightness(1); }
    50% { transform: scale(1.055); filter: brightness(1.18); }
}

.command-status-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.command-status-card {
    min-height: 178px;
    padding: 20px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(20, 29, 48, .86), rgba(11, 17, 30, .88));
}

.command-card-top,
.command-panel-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.command-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(125, 200, 255, .18);
    border-radius: 12px;
    background: rgba(125, 200, 255, .07);
    color: #8ed0ff;
    font-size: 20px;
}

.system-pill {
    padding: 5px 8px;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .13em;
}

.system-pill.online {
    color: #83efbd;
    background: rgba(71, 211, 145, .1);
    border: 1px solid rgba(71, 211, 145, .2);
}

.system-pill.checking {
    color: #9ecfff;
    background: rgba(82, 153, 255, .1);
    border: 1px solid rgba(82, 153, 255, .2);
}

/* EDGE Trade Signals v1.0 */
.trade-hero{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:28px 30px;border:1px solid rgba(125,200,255,.18);border-radius:22px;background:radial-gradient(circle at 86% 30%,rgba(75,143,255,.17),transparent 28%),linear-gradient(135deg,#141b2a,#0b111d)}
.trade-hero h1{margin:10px 0 5px;font-size:32px}.trade-hero p{margin:0;color:var(--muted)}
.trade-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-top:16px}.trade-stats article{border-radius:17px}.trade-stats span{display:block;color:var(--muted);font-size:12px;margin-bottom:9px}.trade-stats strong{font-size:26px}
.trade-connect{display:grid;grid-template-columns:minmax(240px,.8fr) minmax(420px,1.2fr);gap:22px;align-items:end;margin-top:16px;border-radius:17px}.trade-connect h3,.trade-feed h3{margin:7px 0}.trade-connect p{margin-bottom:0}.trade-connect form{display:grid;grid-template-columns:1fr 1fr auto;gap:10px;align-items:end}.trade-connect input{margin:0}.trade-key{grid-column:1/-1;padding:17px;border:1px solid rgba(84,214,163,.35);border-radius:13px;background:rgba(84,214,163,.08)}.trade-key p{margin:5px 0 12px}.trade-key-row{display:flex;gap:10px;align-items:center}.trade-key code{min-width:0;flex:1;overflow:auto;padding:12px;border-radius:10px;background:#070a11;color:#a9ffd8;white-space:nowrap}
.trade-feed{margin-top:16px;border-radius:17px}.trade-table-wrap{overflow:auto;margin-top:18px}.trade-table{width:100%;border-collapse:collapse;white-space:nowrap}.trade-table th,.trade-table td{text-align:left;padding:13px 10px;border-top:1px solid var(--line)}.trade-table th{color:var(--muted);font-size:10px;letter-spacing:.1em;text-transform:uppercase}.trade-buy,.trade-profit{color:var(--good);font-weight:750}.trade-sell,.trade-loss{color:var(--danger);font-weight:750}
@media(max-width:1050px){.trade-stats{grid-template-columns:repeat(2,1fr)}.trade-connect{grid-template-columns:1fr}.trade-connect form{grid-template-columns:1fr 1fr auto}}
@media(max-width:700px){.trade-stats{grid-template-columns:1fr 1fr}.trade-connect form{grid-template-columns:1fr}.trade-key-row{align-items:stretch;flex-direction:column}.trade-hero{align-items:flex-start;flex-direction:column}.trade-hero h1{font-size:27px}}

.system-pill.warning {
    color: #ffd885;
    background: rgba(255, 190, 70, .1);
    border: 1px solid rgba(255, 190, 70, .2);
}

.system-pill.offline {
    color: #ff999f;
    background: rgba(255, 94, 104, .1);
    border: 1px solid rgba(255, 94, 104, .2);
}

.command-status-card h3 {
    margin: 18px 0 7px;
    font-size: 14px;
    color: #b7c2d4;
}

.command-status-card strong {
    display: block;
    font-size: 18px;
}

.command-status-card p {
    margin: 8px 0 0;
    color: var(--muted, #8f9db3);
    font-size: 12px;
    line-height: 1.5;
}

.command-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
    gap: 16px;
    margin-top: 16px;
}

.command-panel {
    min-height: 300px;
    padding: 24px;
}

.command-panel-heading h2 {
    margin: 8px 0 0;
    font-size: 24px;
}

.command-open {
    width: auto;
    white-space: nowrap;
}

.command-task-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 28px;
}

.command-task-stats div {
    padding: 18px;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 15px;
    background: rgba(255,255,255,.025);
}

.command-task-stats strong {
    display: block;
    font-size: 32px;
    line-height: 1;
}

.command-task-stats span {
    display: block;
    margin-top: 9px;
    color: var(--muted, #9aa8bf);
    font-size: 12px;
}

.command-focus-message {
    margin-top: 16px;
    padding: 15px 17px;
    border-left: 3px solid #72bdff;
    border-radius: 0 12px 12px 0;
    background: rgba(83, 156, 255, .07);
    color: #b8c6d9;
    line-height: 1.55;
}

.command-actions {
    display: grid;
    gap: 10px;
    margin-top: 24px;
}

.command-actions button {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 15px;
    text-align: left;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 14px;
    background: rgba(255,255,255,.025);
}

.command-actions button:hover {
    transform: translateY(-1px);
    border-color: rgba(125, 200, 255, .25);
    background: rgba(125, 200, 255, .06);
}

.command-actions button > span {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: rgba(125, 200, 255, .08);
    color: #8ed0ff;
}

.command-actions strong,
.command-actions small {
    display: block;
}

.command-actions small {
    margin-top: 4px;
    color: var(--muted, #9aa8bf);
}

@media (max-width: 1100px) {
    .command-status-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .command-main-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .command-hero {
        min-height: auto;
        padding: 26px 22px;
    }

    .command-orb-button {
        display: none;
    }

    .command-status-grid,
    .command-task-stats {
        grid-template-columns: 1fr;
    }

    .command-clock {
        align-items: flex-start;
        flex-direction: column;
        gap: 2px;
    }
}


/* EDGE Admin User Editor v0.7.1 */
.admin-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.admin-section-heading h3 {
    margin: 7px 0 0;
}

.admin-user-count {
    display: grid;
    place-items: center;
    min-width: 36px;
    height: 36px;
    border-radius: 12px;
    background: rgba(125, 200, 255, .08);
    color: #91d2ff;
    font-weight: 800;
}

.admin-user-row {
    grid-template-columns: minmax(240px, 1.5fr) minmax(100px, .6fr) minmax(100px, .55fr) auto;
    align-items: center;
}

.admin-user-identity {
    display: flex;
    align-items: center;
    gap: 13px;
}

.admin-user-avatar {
    display: grid;
    place-items: center;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(125, 200, 255, .18);
    border-radius: 13px;
    background: rgba(125, 200, 255, .07);
    color: #a7dcff;
    font-weight: 900;
}

.admin-status {
    width: fit-content;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.admin-status.is-active {
    color: #83efbd;
    background: rgba(71, 211, 145, .1);
    border: 1px solid rgba(71, 211, 145, .2);
}

.admin-status.is-disabled {
    color: #ff999f;
    background: rgba(255, 94, 104, .1);
    border: 1px solid rgba(255, 94, 104, .2);
}

.admin-edit-user {
    width: auto;
    min-width: 92px;
}

body.modal-open {
    overflow: hidden;
}

.edge-modal[hidden] {
    display: none;
}

.edge-modal {
    position: fixed;
    z-index: 9999;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
}

.edge-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 5, 12, .78);
    backdrop-filter: blur(9px);
}

.edge-modal-panel {
    position: relative;
    z-index: 1;
    width: min(620px, 100%);
    max-height: calc(100vh - 40px);
    overflow: auto;
    padding: 26px;
    border: 1px solid rgba(125, 200, 255, .2);
    border-radius: 22px;
    background:
        radial-gradient(circle at 90% 0%, rgba(74, 144, 255, .12), transparent 30%),
        linear-gradient(145deg, #121b2e, #090f1d);
    box-shadow: 0 32px 100px rgba(0, 0, 0, .55);
}

.edge-modal-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
}

.edge-modal-heading h2 {
    margin: 7px 0 0;
}

.edge-modal-close {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 12px;
    font-size: 25px;
    line-height: 1;
}

.edge-modal-panel .form-grid label {
    display: grid;
    gap: 8px;
    color: #b9c6d8;
    font-size: 12px;
    font-weight: 700;
}

.admin-active-toggle {
    grid-template-columns: 1fr auto !important;
    align-items: center;
    padding: 14px 15px;
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 14px;
    background: rgba(255,255,255,.025);
}

.admin-active-toggle small {
    display: block;
    margin-top: 4px;
    color: var(--muted, #9aa8bf);
    font-weight: 400;
}

.admin-active-toggle input {
    width: 21px;
    height: 21px;
}

.edge-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 8px;
}

.edge-modal-actions button {
    width: auto;
    min-width: 130px;
}

@media (max-width: 760px) {
    .admin-user-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .admin-edit-user {
        width: 100%;
    }

    .edge-modal-panel {
        padding: 21px;
    }

    .edge-modal-actions {
        flex-direction: column-reverse;
    }

    .edge-modal-actions button {
        width: 100%;
    }
}
.command-live-fibers {
    display: block;
    width: min(100%, 620px);
    height: 230px;
    object-fit: contain;
    filter: drop-shadow(0 0 16px rgba(0, 102, 255, 0.8));
    pointer-events: none;
}


.command-orb-button:hover .command-live-fibers,
.command-orb-button:focus-visible .command-live-fibers {
    filter: drop-shadow(0 0 24px rgba(24, 155, 255, 1));
}

.command-orb-button > span.image-error::before {
    content: "BILLEDE MANGLER · ";
    color: #ff718c;
}
.module-two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.module-form{margin-bottom:16px}.module-form h3{grid-column:1/-1}.module-form textarea{min-height:92px;resize:vertical}.module-head{display:flex;align-items:center;justify-content:space-between;gap:16px}.module-head input{max-width:380px}.module-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:12px;margin-top:16px}.module-item{display:grid;gap:5px;padding:15px;border:1px solid rgba(255,255,255,.07);border-radius:14px;background:rgba(255,255,255,.025)}.module-item small,.module-item p{color:var(--muted,#9aa8bf);margin:0}.module-item p{white-space:pre-wrap}.preparation-board{display:grid;grid-template-columns:repeat(auto-fill,minmax(285px,1fr));gap:13px;margin-top:18px}.preparation-task{border-left:3px solid #596579}.preparation-task.priority-high{border-left-color:#ffb454}.preparation-task.priority-critical{border-left-color:#ff5577}.preparation-task.priority-low{border-left-color:#53c7a2}.preparation-task select{margin-top:8px}@media(max-width:900px){.module-two{grid-template-columns:1fr}.module-head{align-items:stretch;flex-direction:column}.module-head input{max-width:none}}

.module-access-list{display:grid;gap:14px;margin-top:18px}.module-access-user{padding:18px;border:1px solid rgba(255,255,255,.08);border-radius:16px;background:rgba(255,255,255,.025)}.module-access-identity{display:grid;gap:4px;margin-bottom:15px}.module-access-identity small{color:var(--muted,#9aa8bf)}.module-access-grid{display:grid;grid-template-columns:repeat(4,minmax(150px,1fr));gap:12px}.module-access-grid label{display:grid;gap:7px;color:#b9c6d8;font-size:12px;font-weight:700}.module-access-actions{display:flex;justify-content:flex-end;align-items:center;gap:12px;margin-top:15px}.module-access-actions button{width:auto}.module-save-status{color:var(--muted,#9aa8bf);font-size:13px}@media(max-width:1050px){.module-access-grid{grid-template-columns:repeat(2,minmax(150px,1fr))}}@media(max-width:620px){.module-access-grid{grid-template-columns:1fr}.module-access-actions{align-items:stretch;flex-direction:column}.module-access-actions button{width:100%}}

@media (prefers-reduced-motion: reduce) {
    .command-live-fibers {
        content: none;
    }
}
