*{box-sizing:border-box}body{margin:0;font-family:system-ui,-apple-system,Segoe UI,Arial,sans-serif;background:#f5f7fb;color:#182033}.topbar{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:14px 28px;background:#fff;border-bottom:1px solid #e6e9f0;position:sticky;top:0;z-index:10}.brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:#182033}.brand img{height:38px}.brand b{display:block}.brand small{display:block;color:#667085;font-size:12px}.main-nav{display:flex;gap:6px;flex-wrap:wrap}.main-nav a,.user-nav a{padding:9px 12px;text-decoration:none;color:#475467;border-radius:12px}.main-nav a.active,.main-nav a:hover,.user-nav a:hover{background:#eef2f7;color:#111827}.user-nav{display:flex;align-items:center;gap:8px;color:#667085}.page-main{max-width:1240px;margin:0 auto;padding:28px}.card{background:#fff;border:1px solid #e6e9f0;border-radius:20px;padding:24px;box-shadow:0 12px 34px rgba(16,24,40,.06)}.hero{display:grid;grid-template-columns:1fr 320px;gap:22px;margin-bottom:22px}.hero h1,.page-head h1{font-size:42px;line-height:1.05;margin:8px 0 12px}.hero p,.page-head p,.card p{color:#667085;line-height:1.6}.hero-side{background:#f8fafc;border:1px solid #e6e9f0;border-radius:16px;padding:18px}.kicker{display:inline-flex;padding:6px 10px;border-radius:999px;background:#eef6ff;color:#175cd3;font-size:12px;font-weight:800;text-transform:uppercase}.actions{display:flex;gap:10px;margin-top:18px}.btn,.primary-btn{display:inline-flex;align-items:center;justify-content:center;padding:11px 15px;border-radius:12px;border:1px solid #d0d5dd;background:#fff;color:#344054;text-decoration:none;font-weight:700;cursor:pointer}.btn.primary,.primary-btn{background:#1d2939;color:#fff;border-color:#1d2939}.btn.small{padding:8px 11px;font-size:13px}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:16px}.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:18px 0}.token-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}.token-card{display:flex;gap:16px}.token-logo{width:74px;height:74px;border-radius:18px;object-fit:contain;background:#eef2f7;display:grid;place-items:center;font-weight:900;color:#344054}.token-logo.big{width:120px;height:120px;font-size:28px}.token-logo-placeholder{background:linear-gradient(135deg,#e0f2fe,#dcfce7)}.token-detail{display:grid;grid-template-columns:150px 1fr;gap:20px}.badges{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0}.badges span{padding:5px 9px;background:#eef2f7;color:#475467;border-radius:999px;font-size:12px}.form-control{width:100%;padding:12px 13px;border:1px solid #d0d5dd;border-radius:12px;margin:6px 0 14px;background:#fff}.form-grid{margin-top:12px}.form-row{display:flex;gap:16px;flex-wrap:wrap;margin-bottom:14px}.notice{padding:12px 14px;border-radius:14px;background:#eef6ff;border:1px solid #bfdbfe;margin:12px 0}.notice.success{background:#ecfdf3;border-color:#bbf7d0}.notice.danger{background:#fff1f3;border-color:#fecdd3}.info-table{width:100%;border-collapse:collapse}.info-table td{padding:10px 0;border-bottom:1px solid #edf0f5;vertical-align:top}.info-table td:first-child{color:#667085;width:140px}.info-table code,code{word-break:break-all;color:#0f766e}.auth-wrap{max-width:460px;margin:40px auto}.site-footer{display:flex;justify-content:space-between;gap:20px;margin-top:20px;padding:28px;border-top:1px solid #e6e9f0;color:#667085}@media(max-width:900px){.hero,.grid2,.grid3,.token-grid,.token-detail{grid-template-columns:1fr}.topbar{align-items:flex-start;flex-direction:column}.page-main{padding:18px}.hero h1,.page-head h1{font-size:34px}}
.small-help{margin:8px 0 12px;color:#667085;font-size:13px}.small-help.success{color:#047857}.small-help.error{color:#b42318}


.break-code{
    display:block;
    max-width:100%;
    white-space:normal;
    overflow-wrap:anywhere;
    word-break:break-all;
    line-height:1.45;
}
.memo-code{
    display:inline-block;
    padding:4px 8px;
    border-radius:8px;
    background:#eef2f7;
    color:#0f766e;
    font-weight:800;
    letter-spacing:.02em;
}
.payment-card.pending{
    border-color:#fed7aa;
    background:linear-gradient(180deg,#fff,#fff7ed);
}
.payment-card.paid{
    border-color:#bbf7d0;
    background:linear-gradient(180deg,#fff,#f0fdf4);
}
.key-result-box{
    margin:14px 0;
    padding:18px;
    border-radius:18px;
    background:#fff7ed;
    border:1px solid #fed7aa;
}
.key-result-box h3{
    margin:0 0 6px;
}
.key-result-box p{
    margin:0 0 12px;
    color:#667085;
}
.key-secret{
    min-height:82px;
    font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;
}

.key-result-box{margin:16px 0 18px;padding:20px;border-radius:18px;background:#fff7ed;border:1px solid #fed7aa}.key-result-box h3{margin:0 0 6px}.key-result-box p{margin:0 0 14px;color:#667085}.key-pair-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.key-pair-card{padding:14px;border-radius:16px;background:#fff;border:1px solid #e6e9f0}.key-pair-card h4{margin:0 0 12px}.key-public,.key-secret{min-height:54px;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:12px}.break-code{display:block;max-width:100%;white-space:normal;overflow-wrap:anywhere;word-break:break-all;line-height:1.45}.memo-code{display:inline-block;padding:4px 8px;border-radius:8px;background:#eef2f7;color:#0f766e;font-weight:800;letter-spacing:.02em}.payment-card.pending{border-color:#fed7aa;background:linear-gradient(180deg,#fff,#fff7ed)}.payment-card.paid{border-color:#bbf7d0;background:linear-gradient(180deg,#fff,#f0fdf4)}.small-help{margin:8px 0 12px;color:#667085;font-size:13px}.small-help.success{color:#047857}.small-help.error{color:#b42318}@media(max-width:900px){.key-pair-grid{grid-template-columns:1fr}}

.form-section-title{
    margin:18px 0 12px;
    font-size:16px;
    font-weight:850;
    color:#182033;
}
.key-result-box{
    margin:18px 0;
    padding:18px;
    border-radius:18px;
    background:#fff7ed;
    border:1px solid #fed7aa;
}
.key-result-box h3{
    margin:0 0 6px;
}
.key-result-box p{
    margin:0 0 14px;
    color:#667085;
}
.key-pair-grid{
    display:grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:16px;
}
.key-pair-card{
    min-width:0;
    padding:14px;
    border-radius:16px;
    background:#fff;
    border:1px solid #e6e9f0;
}
.key-pair-card h4{
    margin:0 0 12px;
}
.key-public,
.key-secret{
    min-height:64px;
    font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;
    font-size:12px;
    overflow-wrap:anywhere;
}
.form-actions-sticky{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    align-items:center;
    margin-top:16px;
}
.btn.disabled,
.btn:disabled{
    opacity:.45;
    cursor:not-allowed;
    box-shadow:none;
}
@media(max-width:900px){
    .key-pair-grid{
        grid-template-columns:1fr;
    }
}

.launch-economics-box{
    padding:16px;
    border:1px solid #e6e9f0;
    border-radius:16px;
    background:#f8fafc;
    margin:10px 0 16px;
}
.preset-row{
    display:flex;
    gap:8px;
    flex-wrap:wrap;
    margin:8px 0;
}
.preset-row button{
    padding:8px 12px;
    border:1px solid #d0d5dd;
    border-radius:10px;
    background:#fff;
    cursor:pointer;
    font-weight:700;
}
.preset-row button.active{
    background:#1d2939;
    color:#fff;
    border-color:#1d2939;
}
.calc-results{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:10px;
    margin-top:12px;
}
.calc-results div{
    padding:12px;
    border-radius:12px;
    background:#fff;
    border:1px solid #edf0f5;
}
.calc-results span{
    display:block;
    color:#667085;
    font-size:12px;
}
.calc-results b{
    display:block;
    margin-top:4px;
}
.lp-bootstrap-card{
    margin-top:16px;
}
.lp-head{
    display:flex;
    justify-content:space-between;
    gap:18px;
    align-items:flex-start;
}
.lp-head h2{
    margin-top:0;
}
.lp-economics-summary{
    display:flex;
    flex-direction:column;
    gap:6px;
    min-width:260px;
    padding:12px;
    border-radius:14px;
    background:#f8fafc;
    border:1px solid #edf0f5;
}
.lp-pool-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:14px;
    margin:16px 0;
}
.lp-pool-card{
    padding:16px;
    border:1px solid #e6e9f0;
    border-radius:16px;
    background:#fff;
}
.lp-pool-card h3{
    margin:0 0 10px;
}
.lp-sides{
    display:flex;
    flex-direction:column;
    gap:5px;
    color:#344054;
    margin:10px 0;
}
.lp-sides b{
    color:#98a2b3;
}
.lp-pool-card p{
    font-size:13px;
}
@media(max-width:900px){
    .calc-results,
    .lp-pool-grid{
        grid-template-columns:1fr;
    }
    .lp-head{
        display:block;
    }
    .lp-economics-summary{
        min-width:0;
    }
}

.lp-xdr-grid{
    display:grid;
    grid-template-columns:1fr;
    gap:16px;
    margin-top:16px;
}
.lp-xdr-card h2{
    margin-top:0;
}
.xdr-output{
    margin-top:14px;
}
.lp-xdr-text{
    font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;
    font-size:12px;
}

/* v1.4 UI rework */
.token-detail{
    grid-template-columns:120px 1fr minmax(220px, 280px);
    align-items:center;
}
.token-payment-mini{
    padding:16px;
    border-radius:18px;
    border:1px solid #e6e9f0;
    background:#f8fafc;
}
.token-payment-mini.paid{
    background:#f0fdf4;
    border-color:#bbf7d0;
}
.token-payment-mini.pending{
    background:#fff7ed;
    border-color:#fed7aa;
}
.token-payment-mini span,
.token-payment-mini small{
    display:block;
    color:#667085;
    margin-bottom:6px;
}
.token-payment-mini b{
    display:block;
    font-size:20px;
    margin-bottom:6px;
}
.token-main-grid{
    grid-template-columns:1fr 1fr;
    align-items:start;
}
.token-main-grid > .payment-card{
    display:none;
}
.lp-bootstrap-compact-card{
    grid-column:2;
    grid-row:1 / span 2;
}
.lp-bootstrap-details{
    display:none;
}
.lp-mini-stats{
    display:grid;
    gap:8px;
    padding:12px;
    border-radius:14px;
    background:#f8fafc;
    margin:12px 0;
}
.lp-mini-list{
    display:grid;
    gap:10px;
    margin:14px 0;
}
.lp-mini-list div{
    display:flex;
    justify-content:space-between;
    gap:12px;
    padding:10px;
    border:1px solid #e6e9f0;
    border-radius:12px;
    background:#fff;
}
.create-workspace{
    display:grid;
    grid-template-columns:minmax(0,1.15fr) minmax(320px,.85fr);
    gap:18px;
    align-items:start;
}
.create-preview-card{
    position:sticky;
    top:86px;
}
.preview-token-card{
    display:flex;
    gap:14px;
    align-items:center;
    margin:16px 0;
    padding:16px;
    border:1px solid #e6e9f0;
    border-radius:18px;
    background:#f8fafc;
}
.preview-token-card h2{
    margin:0 0 8px;
}
.preview-economics,
.preview-before-after{
    padding:14px;
    border:1px solid #e6e9f0;
    border-radius:16px;
    background:#fff;
    margin-top:14px;
}
.preview-economics div{
    display:flex;
    justify-content:space-between;
    padding:8px 0;
    border-bottom:1px solid #edf0f5;
}
.preview-economics div:last-child{
    border-bottom:0;
}
.key-warning-box{
    padding:18px;
    border-radius:18px;
    background:#fff7ed;
    border:1px solid #fed7aa;
    margin:16px 0;
}
.key-warning-box h3{
    margin-top:0;
}
.key-warning-box li{
    margin:6px 0;
}
.key-pair-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
}
@media(max-width:1000px){
    .token-detail,
    .token-main-grid,
    .create-workspace{
        grid-template-columns:1fr;
    }
    .lp-bootstrap-compact-card{
        grid-column:auto;
        grid-row:auto;
    }
    .create-preview-card{
        position:static;
    }
}

/* v1.5 liquidity/payment UI fixes */
.token-payment-mini{min-width:280px}
.pay-recipient{display:grid!important;grid-template-columns:auto 1fr auto;gap:6px;align-items:center}
.pay-recipient code{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:170px}
.icon-copy-btn{width:30px;height:30px;border:1px solid #d0d5dd;border-radius:9px;background:#fff;cursor:pointer;font-weight:900}
.lp-bootstrap-compact-card h2 span{font-size:15px;font-weight:500;color:#667085}
.lp-pairs-line{margin-top:-4px;color:#475467;font-weight:700}
.lp-rate-line{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:12px;border-radius:14px;background:#f8fafc;border:1px solid #edf0f5;margin:12px 0}
.lp-rate-input{width:96px;padding:8px 10px;border:1px solid #d0d5dd;border-radius:10px;font-weight:800}
.lp-dynamic-fdv-list{display:grid;gap:10px;margin:14px 0}
.lp-dynamic-fdv-list div{display:grid;grid-template-columns:minmax(96px,130px) 1fr;gap:6px 12px;padding:10px;border:1px solid #e6e9f0;border-radius:12px;background:#fff}
.lp-dynamic-fdv-list small{grid-column:2;color:#667085}
.token-logo-placeholder{font-size:14px;letter-spacing:.02em}
@media(max-width:900px){
    .pay-recipient{grid-template-columns:1fr auto}
    .pay-recipient span{grid-column:1 / -1}
    .lp-dynamic-fdv-list div{grid-template-columns:1fr}
    .lp-dynamic-fdv-list small{grid-column:auto}
}

/* v1.6 token image/payment/tx preview fixes */
.wallet-copy-box{
    display:grid;
    grid-template-columns:1fr auto;
    gap:8px;
    align-items:stretch;
    margin:6px 0 8px;
}
.wallet-copy-text{
    min-height:58px;
    resize:vertical;
    font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;
    font-size:12px;
    overflow-wrap:anywhere;
}
.pay-recipient-label{
    display:block;
    margin-top:8px;
    color:#667085;
    font-size:12px;
}
.tx-link{
    color:#0f766e;
    text-decoration:none;
    font-weight:800;
}
.tx-link:hover{
    text-decoration:underline;
}
.logo-update-form{
    margin-top:10px;
}
.logo-upload-btn{
    position:relative;
    overflow:hidden;
}
.logo-upload-btn input{
    position:absolute;
    inset:0;
    opacity:0;
    cursor:pointer;
}
.preview-token-card .token-logo{
    background-size:cover;
    background-position:center;
}
.token-logo-placeholder{
    min-width:74px;
}

/* v1.7 placeholder/logo + liquidity manage */
.token-logo-side{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:10px;
}
.placeholder-logo-actions{
    display:grid;
    gap:8px;
    width:100%;
    max-width:170px;
}
.placeholder-logo-actions .btn{
    width:100%;
}
.placeholder-logo-actions small{
    color:#667085;
    font-size:12px;
    line-height:1.35;
}
.wallet-copy-text{
    min-height:unset!important;
    height:auto!important;
    overflow:hidden!important;
    resize:none!important;
    white-space:normal;
    word-break:break-all;
}
.wallet-copy-box{
    grid-template-columns:1fr auto;
    align-items:center;
}
.token-logo-link{
    display:inline-flex;
    text-decoration:none;
}
.token-title-link{
    color:inherit;
    text-decoration:none;
}
.token-title-link:hover{
    text-decoration:underline;
}
.lp-manage-liquidity-card{
    margin-top:16px;
}
.lp-manage-head{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:16px;
}
.lp-manage-head h2{
    margin-top:0;
}
.lp-manage-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:16px;
    margin:16px 0;
}
.lp-manage-action{
    padding:16px;
    border:1px solid #e6e9f0;
    border-radius:16px;
    background:#fff;
}
.lp-manage-action h3{
    margin-top:0;
}
@media(max-width:900px){
    .lp-manage-grid{
        grid-template-columns:1fr;
    }
}

/* v1.8 global no-sticking rules */
.form-control,
textarea.form-control,
input.form-control,
select.form-control{
    padding:12px 14px;
    line-height:1.45;
}

textarea.form-control{
    min-height:54px;
}

code,
.break-code,
.memo-code,
.copy-source,
.wallet-copy-text,
.lp-xdr-text,
.key-public,
.key-secret{
    line-height:1.55;
    padding:8px 10px;
    border-radius:10px;
    box-decoration-break:clone;
    -webkit-box-decoration-break:clone;
}

.wallet-copy-box{
    gap:10px;
    align-items:center;
}

.wallet-copy-text{
    padding:10px 12px!important;
    min-height:74px!important;
    height:auto!important;
    overflow:hidden!important;
    resize:none!important;
    display:block;
    white-space:pre-wrap;
    word-break:break-all;
}

.icon-copy-btn{
    flex:0 0 auto;
    align-self:center;
}

.info-table td{
    padding:12px 8px;
}

.token-payment-mini{
    padding:18px;
}

.lp-workflow-board{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:12px;
    margin:16px 0;
}
.lp-workflow-step{
    padding:14px;
    border:1px solid #e6e9f0;
    border-radius:16px;
    background:#fff;
}
.lp-workflow-step strong{
    display:block;
    margin-bottom:6px;
}
.lp-workflow-step span{
    color:#667085;
    font-size:13px;
}
.lp-workflow-step.active{
    border-color:#bfdbfe;
    background:#eff6ff;
}
.lp-workflow-step.done{
    border-color:#bbf7d0;
    background:#f0fdf4;
}
.lp-pool-id-box{
    display:grid;
    gap:10px;
    margin:12px 0;
}
.lp-pool-id-row{
    display:grid;
    grid-template-columns:120px 1fr auto;
    gap:10px;
    align-items:center;
    padding:10px;
    border:1px solid #e6e9f0;
    border-radius:14px;
    background:#fff;
}
.lp-pool-id-row code{
    display:block;
    overflow-wrap:anywhere;
    word-break:break-all;
}
@media(max-width:900px){
    .lp-workflow-board{
        grid-template-columns:1fr;
    }
    .lp-pool-id-row{
        grid-template-columns:1fr;
    }
}

/* v1.9 copy fields */
.memo-copy-box .wallet-copy-text{
    min-height:46px!important;
}
.key-copy-wrap{
    display:grid;
    grid-template-columns:1fr auto;
    gap:8px;
    align-items:center;
}
.key-copy-wrap textarea{
    margin:0;
    min-height:62px;
    resize:vertical;
}
.key-copy-wrap .icon-copy-btn{
    align-self:center;
}

/* v2.0 liquidity pools module */
.topbar{
    justify-content:flex-start!important;
}
.main-nav{
    margin-left:24px;
    margin-right:auto;
}
.user-nav{
    margin-left:auto;
}
.amm-hero{
    display:grid;
    grid-template-columns:1fr 320px;
    gap:20px;
    align-items:center;
}
.amm-hero h2{
    margin:8px 0;
}
.amm-flow-mini{
    display:grid;
    gap:8px;
}
.amm-flow-mini span{
    padding:10px 12px;
    border:1px solid #e6e9f0;
    border-radius:12px;
    background:#f8fafc;
    font-weight:800;
}
.pools-grid{
    display:grid;
    grid-template-columns:repeat(2, minmax(0,1fr));
    gap:16px;
    margin-top:16px;
}
.pool-token-card{
    display:grid;
    gap:14px;
}
.pool-token-head{
    display:flex;
    gap:14px;
    align-items:center;
}
.pool-token-head h2{
    margin:0 0 8px;
}
.pool-pairs-list{
    display:grid;
    gap:10px;
}
.pool-pair-row{
    display:grid;
    grid-template-columns:110px 1fr auto;
    gap:10px;
    align-items:center;
    padding:10px;
    border:1px solid #e6e9f0;
    border-radius:14px;
    background:#fff;
}
.pool-pair-row code{
    overflow-wrap:anywhere;
}
.lp-technical-workbench{
    margin:16px 0;
}
.lp-tech-checklist{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:10px;
    margin:14px 0;
}
.lp-tech-checklist div{
    display:flex;
    gap:8px;
    align-items:center;
    padding:12px;
    border:1px solid #e6e9f0;
    border-radius:14px;
    background:#fff;
}
.lp-tech-checklist div.done{
    border-color:#bbf7d0;
    background:#f0fdf4;
}
.lp-tech-checklist b{
    display:grid;
    place-items:center;
    width:28px;
    height:28px;
    border-radius:999px;
    background:#eef2f7;
}
@media(max-width:1000px){
    .amm-hero,
    .pools-grid,
    .lp-tech-checklist{
        grid-template-columns:1fr;
    }
    .pool-pair-row{
        grid-template-columns:1fr;
    }
    .main-nav{
        margin-left:0;
    }
}

/* v2.1 LP submit/verify/save */
.lp-submit-grid{
    display:grid;
    grid-template-columns:repeat(3, minmax(0,1fr));
    gap:14px;
    margin:16px 0;
}
.lp-submit-card{
    padding:14px;
    border:1px solid #e6e9f0;
    border-radius:16px;
    background:#fff;
}
.lp-submit-card h3{
    margin-top:0;
}
.lp-action-result{
    max-height:260px;
    overflow:auto;
    padding:12px;
    border-radius:12px;
    background:#111827;
    color:#e5e7eb;
}
.lp-tech-checklist div.active{
    border-color:#bfdbfe;
    background:#eff6ff;
}
.btn.disabled,
.disabled{
    opacity:.55;
    pointer-events:none;
}
@media(max-width:1100px){
    .lp-submit-grid{
        grid-template-columns:1fr;
    }
}

/* v2.2 auto XDR workbench */
#autoUnsignedXdr{
    background:#f8fafc;
}
#btnSubmitSignedXdr.disabled,
#btnSubmitSignedXdr:disabled{
    opacity:.45;
    cursor:not-allowed;
}

/* v2.3 wallet-first LP mode */
.wallet-first-card{
    margin:16px 0;
    border-color:#bfdbfe;
    background:linear-gradient(180deg,#ffffff,#eff6ff);
}
.wallet-first-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;
}
.wallet-first-head h2{
    margin:8px 0;
}
.wallet-flow-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:10px;
    margin:16px 0;
}
.wallet-flow-grid div{
    display:flex;
    align-items:center;
    gap:8px;
    padding:12px;
    border:1px solid #dbeafe;
    border-radius:14px;
    background:#fff;
}
.wallet-flow-grid b{
    display:grid;
    place-items:center;
    width:28px;
    height:28px;
    border-radius:999px;
    background:#2563eb;
    color:#fff;
}
.advanced-xdr-panel{
    border-style:dashed;
}
@media(max-width:900px){
    .wallet-first-head{
        display:block;
    }
    .wallet-flow-grid{
        grid-template-columns:1fr;
    }
}

/* v2.4 advanced default testing mode */
.advanced-xdr-panel{
    display:block;
    border-style:solid;
    border-color:#bfdbfe;
}
.wallet-first-card{
    opacity:.96;
}

/* v2.6 paid badges + token list */
.badge-paid{
    display:inline-flex;
    align-items:center;
    gap:4px;
    padding:5px 9px;
    border-radius:999px;
    background:#dcfce7;
    color:#166534;
    font-weight:800;
    font-size:12px;
}
.badge-pending{
    display:inline-flex;
    align-items:center;
    padding:5px 9px;
    border-radius:999px;
    background:#eef2f7;
    color:#475467;
    font-weight:700;
    font-size:12px;
}
.paid-checkmark{
    display:inline-grid;
    place-items:center;
    width:22px;
    height:22px;
    margin-left:8px;
    border-radius:999px;
    background:#22c55e;
    color:#fff;
    font-size:14px;
    font-weight:900;
}
.token-paid-card{
    border-color:#bbf7d0;
}

/* v2.7 explicit sign flow */
.xdr-copy-wrap{
    display:grid;
    grid-template-columns:1fr auto;
    gap:10px;
    align-items:center;
}
.xdr-copy-wrap .lp-xdr-text{
    margin:0;
}
.xdr-submit-actions{
    margin-top:12px;
}
.xdr-submit-actions .btn{
    min-width:150px;
    text-align:center;
}
#autoLabSignLink[href="#"]{
    opacity:.55;
}

/* v2.8 rate/create pool/action textareas */
.pool-rate-row{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    align-items:center;
    padding:14px;
    border:1px solid #e6e9f0;
    border-radius:16px;
    background:#f8fafc;
    margin:12px 0;
}
.pool-rate-row.compact{
    padding:10px;
}
.pool-rate-input{
    max-width:140px;
    font-weight:900;
}
.wallet-rate-create-card{
    margin:16px 0;
    border-color:#bbf7d0;
    background:linear-gradient(180deg,#fff,#f0fdf4);
}
.advanced-pool-rate-box{
    padding:12px;
    border:1px solid #e6e9f0;
    border-radius:16px;
    background:#fff;
    margin:12px 0;
}
.field-copy-wrap{
    display:grid;
    grid-template-columns:1fr auto;
    gap:10px;
    align-items:center;
}
.action-textarea{
    min-height:58px!important;
    resize:vertical;
    white-space:pre-wrap;
    word-break:break-all;
}
textarea.form-control,
.action-textarea,
.wallet-copy-text,
.key-public,
.key-secret,
.lp-xdr-text{
    padding:12px 14px!important;
    line-height:1.55!important;
}

/* v2.9 market calculator */
.market-calc-card{
    margin:16px 0;
    border-color:#dbeafe;
    background:linear-gradient(180deg,#fff,#eff6ff);
}
.market-calc-grid{
    display:grid;
    grid-template-columns:180px 1fr;
    gap:14px;
    align-items:end;
}
.market-path-results{
    display:grid;
    gap:10px;
    margin:14px 0;
}
.market-path-results div{
    display:grid;
    grid-template-columns:130px 1fr;
    gap:6px 12px;
    padding:12px;
    border:1px solid #dbeafe;
    border-radius:14px;
    background:#fff;
}
.market-path-results small{
    grid-column:2;
    color:#667085;
}
@media(max-width:900px){
    .market-calc-grid,
    .market-path-results div{
        grid-template-columns:1fr;
    }
    .market-path-results small{
        grid-column:auto;
    }
}

/* v3.0 horizon/issuer diagnostics */
.notice.danger{
    overflow-wrap:anywhere;
}
.field-copy-wrap textarea#lpSourceAccount{
    min-height:64px;
}

/* v3.1 account activation */
.account-activation-note{
    margin:14px 0;
}

/* v3.2 global textarea copy wrappers */
.global-copy-textarea-wrap{
    display:grid;
    grid-template-columns:1fr auto;
    gap:10px;
    align-items:center;
    width:100%;
}
.global-copy-textarea-wrap textarea{
    width:100%;
    margin:0!important;
    min-height:54px;
    resize:vertical;
    white-space:pre-wrap;
    word-break:break-all;
    overflow-wrap:anywhere;
}
.global-copy-textarea-btn{
    align-self:center;
}
textarea.form-control,
.action-textarea,
.wallet-copy-text,
.lp-xdr-text,
.key-public,
.key-secret{
    padding:12px 14px!important;
    line-height:1.55!important;
    overflow-wrap:anywhere;
    word-break:break-all;
}

/* v3.3 LP layout/test flow */
.compact-action-textarea,
.is-compact-textarea{
    min-height:44px!important;
    height:auto!important;
    resize:none!important;
}
.lp-technical-workbench .grid2.form-grid{
    align-items:start;
}
.lp-technical-workbench label{
    font-weight:750;
}
.lp-test-flow-card{
    margin:16px 0;
    border-color:#dbeafe;
}
.lp-test-steps{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:10px;
    margin:12px 0;
}
.lp-test-steps div{
    display:flex;
    gap:10px;
    padding:12px;
    border:1px solid #e6e9f0;
    border-radius:14px;
    background:#fff;
}
.lp-test-steps b{
    display:grid;
    place-items:center;
    flex:0 0 28px;
    height:28px;
    border-radius:999px;
    background:#eff6ff;
    color:#1d4ed8;
}
@media(max-width:1000px){
    .lp-test-steps{
        grid-template-columns:1fr;
    }
}

/* v3.4 copy/market/poolid fix */
.wallet-copy-box .global-copy-textarea-wrap,
.field-copy-wrap .global-copy-textarea-wrap,
.key-copy-wrap .global-copy-textarea-wrap,
.xdr-copy-wrap .global-copy-textarea-wrap{
    display:contents;
}
.poolid-not-deadend-note{
    margin:14px 0;
}

/* v3.5 LP test mode panel */
.lp-test-mode-panel{
    margin:16px 0;
    border-color:#bfdbfe;
    background:linear-gradient(180deg,#ffffff,#eff6ff);
}
.lp-test-mode-head{
    display:flex;
    justify-content:space-between;
    gap:18px;
    align-items:flex-start;
}
.lp-test-mode-head h2{
    margin:8px 0;
}
.lp-test-flow-big{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:12px;
    margin:16px 0;
}
.lp-test-flow-big div{
    padding:14px;
    border:1px solid #dbeafe;
    border-radius:16px;
    background:#fff;
}
.lp-test-flow-big b{
    display:grid;
    place-items:center;
    width:30px;
    height:30px;
    border-radius:999px;
    background:#2563eb;
    color:#fff;
    margin-bottom:8px;
}
.lp-test-flow-big strong,
.lp-test-flow-big span{
    display:block;
}
.lp-test-flow-big span{
    color:#667085;
    font-size:13px;
    margin-top:6px;
}
.lp-test-actions{
    flex-wrap:wrap;
}
.lp-test-actions .btn{
    min-height:42px;
}
#testModeSignLink.disabled{
    opacity:.45;
    pointer-events:none;
}
@media(max-width:1000px){
    .lp-test-mode-head{
        display:block;
    }
    .lp-test-flow-big{
        grid-template-columns:1fr;
    }
}

/* v3.7 asset trustlines before LP */
.op_trust_line_missing_note{
    margin:14px 0;
}
#btnAutoBuildAssetTrustlines{
    border-color:#1d4ed8;
}

/* v3.8 step by step LP wizard */
.lp-step-wizard-card{
    margin:16px 0;
    border-color:#bfdbfe;
    background:linear-gradient(180deg,#fff,#eff6ff);
}
.lp-step-wizard-head{
    display:flex;
    justify-content:space-between;
    gap:18px;
    align-items:flex-start;
}
.lp-step-wizard-head h2{
    margin:8px 0;
}
.lp-wizard-mode{
    padding:7px 10px;
    border-radius:999px;
    background:#1d4ed8;
    color:#fff;
    font-weight:800;
    font-size:12px;
}
.lp-stepper{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:12px;
    margin:16px 0;
}
.lp-step{
    padding:14px;
    border:1px solid #dbeafe;
    border-radius:16px;
    background:#fff;
}
.lp-step.active{
    border-color:#2563eb;
    box-shadow:0 0 0 3px rgba(37,99,235,.08);
}
.lp-step.locked{
    opacity:.72;
}
.lp-step b{
    display:grid;
    place-items:center;
    width:30px;
    height:30px;
    border-radius:999px;
    background:#2563eb;
    color:#fff;
    margin-bottom:8px;
}
.lp-step h3{
    margin:0 0 8px;
}
.lp-step p{
    color:#667085;
    font-size:13px;
}
.lp-step ul{
    margin:8px 0 12px;
    padding-left:18px;
    color:#344054;
    font-size:13px;
}
.lp-xdr-work-area{
    display:grid;
    gap:12px;
    padding:14px;
    border:1px solid #dbeafe;
    border-radius:16px;
    background:#fff;
}
.legacy-test-panel{
    display:none;
}
#wizardSignLink.disabled{
    opacity:.45;
    pointer-events:none;
}
@media(max-width:1100px){
    .lp-stepper{
        grid-template-columns:1fr;
    }
    .lp-step-wizard-head{
        display:block;
    }
}


/* v3.8.1 dynamic pool preview */
.dynamic-pool-preview{
    margin:16px 0 18px;
    border:1px solid #dbeafe;
    border-radius:16px;
    overflow:hidden;
    background:#fff;
}

.pool-preview-row{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:16px;
    padding:14px 16px;
    border-bottom:1px solid #eef2ff;
}

.pool-preview-row:last-child{
    border-bottom:none;
}

.pool-preview-row strong{
    color:#0f172a;
}

.pool-preview-row span{
    color:#334155;
    font-weight:600;
}

/* v3.9 before/after LP wizard */
.legacy-lp-wizard{
    display:none;
}
.lp-ba-wizard-card{
    margin:16px 0;
    border-color:#bfdbfe;
    background:linear-gradient(180deg,#fff,#eff6ff);
}
.lp-ba-head{
    display:flex;
    justify-content:space-between;
    gap:18px;
    align-items:flex-start;
}
.lp-ba-head h2{
    margin:8px 0;
}
.lp-ba-layout{
    display:grid;
    grid-template-columns:360px 1fr;
    gap:16px;
    align-items:start;
    margin-top:16px;
}
.lp-ba-left{
    display:grid;
    gap:10px;
}
.lp-ba-step{
    display:flex;
    gap:12px;
    text-align:left;
    padding:14px;
    border:1px solid #dbeafe;
    border-radius:16px;
    background:#fff;
    cursor:pointer;
}
.lp-ba-step.active{
    border-color:#2563eb;
    box-shadow:0 0 0 3px rgba(37,99,235,.08);
}
.lp-ba-step b{
    display:grid;
    place-items:center;
    flex:0 0 32px;
    height:32px;
    border-radius:999px;
    background:#2563eb;
    color:#fff;
}
.lp-ba-step strong,
.lp-ba-step small{
    display:block;
}
.lp-ba-step small{
    margin-top:5px;
    color:#667085;
    line-height:1.35;
}
.lp-ba-right{
    display:grid;
    gap:12px;
    padding:16px;
    border:1px solid #dbeafe;
    border-radius:18px;
    background:#fff;
}
.lp-ba-current span{
    display:inline-flex;
    padding:5px 9px;
    border-radius:999px;
    background:#eff6ff;
    color:#1d4ed8;
    font-weight:800;
}
.lp-ba-current h3{
    margin:10px 0 6px;
}
.lp-ba-before-after{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:12px;
}
.lp-ba-before-after div{
    padding:12px;
    border:1px solid #e6e9f0;
    border-radius:14px;
    background:#f8fafc;
}
.lp-ba-before-after strong{
    display:block;
    margin-bottom:6px;
}
.lp-ba-actions{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
}
.lp-ba-actions .btn{
    min-height:42px;
}
#baSignLink.disabled{
    opacity:.45;
    pointer-events:none;
}
@media(max-width:1100px){
    .lp-ba-layout,
    .lp-ba-before-after{
        grid-template-columns:1fr;
    }
    .lp-ba-head{
        display:block;
    }
}

/* v4.0 xdr signer debug */
.xdr-debug-block{
    padding:14px;
    border:1px solid #fecaca;
    border-radius:16px;
    background:#fff7ed;
}
.xdr-debug-block h4{
    margin:0 0 12px;
}
.xdr-debug-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:12px;
}
.issuer-activation-warning{
    margin:14px 0;
}
@media(max-width:900px){
    .xdr-debug-grid{
        grid-template-columns:1fr;
    }
}

/* v4.1 issuer activation step */
.issuer-activate-now-card{
    margin:16px 0;
    border-color:#fed7aa;
    background:linear-gradient(180deg,#fff,#fff7ed);
}
.issuer-activate-now-card h2{
    margin:8px 0;
}
.issuer-activate-grid{
    display:grid;
    grid-template-columns:1fr 280px;
    gap:14px;
    align-items:end;
    margin-top:12px;
}
.issuer-activate-action{
    display:grid;
    gap:8px;
}
.issuer-activate-action small{
    color:#667085;
}
.lp-ba-step.issuer-activation-step{
    border-color:#fb923c;
    background:#fff7ed;
    text-decoration:none;
    color:inherit;
}
.lp-ba-step.issuer-activation-step b{
    background:#ea580c;
}
@media(max-width:900px){
    .issuer-activate-grid{
        grid-template-columns:1fr;
    }
}

/* v4.2 step progress fix */
.lp-step-progress-panel{
    padding:12px;
    border:1px solid #dbeafe;
    border-radius:14px;
    background:#f8fafc;
}
.lp-step-progress-panel h4{
    margin:0 0 8px;
}
.lp-progress-line{
    display:grid;
    gap:4px;
    margin-bottom:10px;
}
#baStepStateBadge{
    display:inline-flex;
    width:max-content;
    padding:5px 9px;
    border-radius:999px;
    background:#eef2f7;
    color:#475467;
    font-weight:800;
}
#baStepStateBadge.submitted{
    background:#fef3c7;
    color:#92400e;
}
#baStepStateBadge.done{
    background:#dcfce7;
    color:#166534;
}
.lp-ba-step.done{
    border-color:#22c55e;
    background:#f0fdf4;
}
.lp-ba-step.done b{
    background:#22c55e;
}

/* lp-state-engine-v1 */
.lp-state-engine-card{
    border:1px solid rgba(25,135,84,.18);
    background:linear-gradient(180deg,#ffffff 0%,#f8fffb 100%);
}
.lp-real-state-grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:12px;
    margin:16px 0;
}
.lp-real-state-grid>div{
    display:flex;
    align-items:center;
    gap:10px;
    padding:12px;
    border-radius:16px;
    border:1px solid #e5e7eb;
    background:#fff;
}
.lp-real-state-grid b{
    width:28px;
    height:28px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    background:#eef2ff;
}
.lp-real-state-grid .done{
    border-color:rgba(25,135,84,.35);
    background:#f1fff7;
}
.lp-real-state-grid .done b{
    background:#198754;
    color:#fff;
}
.lp-real-state-grid .pending b{
    background:#f1f5f9;
    color:#64748b;
}
.lp-ba-step.done{
    border-color:rgba(25,135,84,.45)!important;
    background:linear-gradient(180deg,#f1fff7 0%,#ffffff 100%)!important;
}
.lp-ba-step.done b{
    background:#198754!important;
    color:#fff!important;
}
.lp-step.done{
    border-color:rgba(25,135,84,.45)!important;
    background:#f1fff7!important;
}
@media (max-width: 900px){
    .lp-real-state-grid{grid-template-columns:1fr 1fr;}
}
@media (max-width: 560px){
    .lp-real-state-grid{grid-template-columns:1fr;}
}

/* MIXT Launchpad v0.8 Auto Bootstrap Engine */
.lp-auto-bootstrap-card{border:1px solid rgba(39,96,178,.14);box-shadow:0 14px 34px rgba(24,43,78,.08)}
.lp-auto-plan-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:16px 0}
.lp-auto-plan-grid>div{border:1px solid rgba(26,74,130,.13);border-radius:18px;background:linear-gradient(135deg,#fff,#f7fbff);padding:14px;min-height:94px}
.lp-auto-plan-grid b{display:block;font-size:20px;color:#163b6b;margin-bottom:5px}
.lp-auto-plan-grid span{display:block;font-weight:700;color:#1f2937}
.lp-auto-plan-grid small{display:block;color:#6b7280;margin-top:5px;line-height:1.35}
.lp-auto-sequence{display:flex;gap:10px;flex-wrap:wrap;margin:12px 0 14px}
.lp-auto-actions{gap:10px;flex-wrap:wrap}
@media(max-width:980px){.lp-auto-plan-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.lp-auto-plan-grid{grid-template-columns:1fr}.lp-auto-actions .btn{width:100%}}

/* v0.9.2 Launch Orchestrator Console */
.launch-orchestrator-console{
    border:1px solid rgba(30,64,175,.18);
    box-shadow:0 18px 45px rgba(15,23,42,.08);
    background:linear-gradient(180deg,#ffffff 0%,#f8fbff 100%);
}
.orchestrator-console-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;margin-bottom:16px}
.orchestrator-console-head h2{margin:4px 0 6px;font-size:26px;line-height:1.15}
.orchestrator-console-head p{margin:0;color:#64748b}
.orchestrator-status-grid,.orchestrator-check-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:14px 0}
.orchestrator-status-grid>div,.orchestrator-check-grid>div{border:1px solid #e2e8f0;border-radius:14px;background:#fff;padding:12px;min-height:62px}
.orchestrator-status-grid small{display:block;color:#64748b;margin-bottom:4px}
.orchestrator-status-grid b{display:block;color:#0f172a;word-break:break-word}
.orchestrator-check-grid>div{display:flex;align-items:center;gap:9px}
.orchestrator-check-grid b{display:inline-flex;width:28px;height:28px;border-radius:999px;align-items:center;justify-content:center;background:#e2e8f0;color:#334155;flex:0 0 28px}
.orchestrator-check-grid .done b{background:#dcfce7;color:#166534}
.orchestrator-check-grid .pending b{background:#fef3c7;color:#92400e}
.orchestrator-next-note{margin-top:12px}
.orchestrator-main-actions{align-items:center;margin-top:14px}
.big-action{font-size:17px;padding:13px 20px;border-radius:14px}
.orchestrator-submit-form{margin-top:16px;border-top:1px solid #e2e8f0;padding-top:14px}
.orchestrator-submit-form label{font-weight:700;margin-top:10px;display:block}
.orchestrator-pair-nav{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px;padding-top:12px;border-top:1px solid #e2e8f0}
.advanced-debug-wrap{margin-top:18px;border:1px dashed #cbd5e1;border-radius:16px;background:#f8fafc;padding:0 14px 14px}
.advanced-debug-wrap>summary{cursor:pointer;font-weight:800;padding:14px 2px;color:#334155;list-style:none}
.advanced-debug-wrap>summary::-webkit-details-marker{display:none}
.advanced-debug-wrap>summary:before{content:'▸';display:inline-block;margin-right:8px;transition:transform .15s ease}
.advanced-debug-wrap[open]>summary:before{transform:rotate(90deg)}
@media (max-width: 900px){
    .orchestrator-console-head{display:block}
    .orchestrator-status-grid,.orchestrator-check-grid{grid-template-columns:1fr 1fr}
}
@media (max-width: 560px){
    .orchestrator-status-grid,.orchestrator-check-grid{grid-template-columns:1fr}
    .orchestrator-main-actions .btn{width:100%;justify-content:center}
}

/* v1.0 create token market calculator */
.market-calculator-box{
    background:linear-gradient(180deg,#ffffff,#f8fafc);
    border-color:#dbe4f0;
}
.market-calc-head{
    display:flex;
    justify-content:space-between;
    gap:16px;
    align-items:flex-start;
    margin-bottom:10px;
}
.market-calc-head p{
    margin:4px 0 0;
    color:#667085;
    font-size:13px;
    line-height:1.45;
}
.market-badge{
    display:inline-flex;
    white-space:nowrap;
    padding:6px 10px;
    border-radius:999px;
    background:#ecfdf3;
    border:1px solid #bbf7d0;
    color:#047857;
    font-size:12px;
    font-weight:800;
}
.market-input-grid{
    margin-top:10px;
}
.market-rate-board{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:10px;
    margin-top:14px;
}
.market-rate-board div,
.market-summary-line,
.market-pool-card{
    padding:12px;
    border-radius:14px;
    background:#fff;
    border:1px solid #edf0f5;
}
.market-rate-board span,
.market-summary-line span,
.market-pool-card span{
    display:block;
    color:#667085;
    font-size:12px;
}
.market-rate-board b,
.market-summary-line b,
.market-pool-card b{
    display:block;
    margin-top:4px;
    color:#182033;
    overflow-wrap:anywhere;
}
.market-pool-board{
    margin-top:16px;
}
.market-pool-board h3{
    margin:0 0 10px;
    font-size:15px;
}
.market-pool-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:10px;
}
.market-pool-card{
    min-width:0;
}
.market-pool-card b{
    margin:0 0 8px;
    font-size:14px;
}
.market-pool-card span{
    margin-top:4px;
    color:#344054;
    font-weight:700;
}
.market-summary-line{
    display:flex;
    justify-content:space-between;
    gap:12px;
    align-items:center;
    margin-top:10px;
    background:#f8fafc;
}
.market-summary-line b{
    margin-top:0;
    text-align:right;
}
@media(max-width:900px){
    .market-calc-head{
        display:block;
    }
    .market-badge{
        margin-top:8px;
    }
    .market-rate-board,
    .market-pool-grid{
        grid-template-columns:1fr;
    }
    .market-summary-line{
        display:block;
    }
    .market-summary-line b{
        text-align:left;
        margin-top:4px;
    }
}

/* v1.1.0 integrated launch session */
.launch-session-inline-note{
    margin:14px 0 4px;
    padding:12px 14px;
    border:1px solid #dbeafe;
    background:linear-gradient(135deg,#f8fbff,#eef6ff);
    border-radius:16px;
    color:#24324a;
    display:grid;
    gap:4px;
}
.launch-session-inline-note b{
    color:#0f3f7a;
}
.launch-session-inline-note span{
    color:#526173;
    font-size:13px;
    line-height:1.45;
}
.launch-session-console{
    margin-bottom:16px;
    border:1px solid #d9e8ff;
    background:linear-gradient(135deg,#ffffff,#f4f9ff);
}
.launch-session-console.launch-session-active{
    border-color:#b7e4c7;
    background:linear-gradient(135deg,#ffffff,#f3fff7);
}
.launch-session-console.launch-session-recovery{
    border-color:#fde3a7;
    background:linear-gradient(135deg,#ffffff,#fffaf0);
}


/* MIXT v1.1.2 real market restore */
.text-danger{color:#b42318!important;}
.market-calculator-box input[readonly]{
    background:#f8fafc;
}
.market-calculator-box .small-help{
    margin-top:4px;
}


/* MIXT v1.2.0 token-page launch flow */
.demo-token-notice,
.launch-after-payment-card .notice{
    line-height:1.55;
}
.launch-after-payment-card .lp-head{
    align-items:flex-start;
}
.token-launch-session-form .actions{
    margin-top:14px;
}
.token-launch-session-form .key-result-box{
    margin-top:14px;
}
.badge.warn{
    background:#fff3cd;
    color:#8a5b00;
    border:1px solid #ffe08a;
}

/* MIXT v1.2.1 invoice recovery */
.payment-create-form,
.inline-action-form{
    margin-top: 12px;
}
.token-payment-mini .inline-action-form .btn{
    width: 100%;
    justify-content: center;
}


/* MIXT v1.2.2 launch key modes */
.launch-key-mode-box{
    display:grid;
    gap:10px;
    margin:14px 0;
}
.launch-key-mode{
    display:flex;
    align-items:flex-start;
    gap:10px;
    padding:12px 14px;
    border:1px solid rgba(15,23,42,.12);
    border-radius:14px;
    background:#fff;
    cursor:pointer;
}
.launch-key-mode input{
    margin-top:4px;
}
.launch-key-mode b{
    display:block;
    font-size:14px;
}
.launch-key-mode small{
    display:block;
    color:#64748b;
    margin-top:3px;
    line-height:1.35;
}
.launch-existing-keys{
    margin:12px 0;
}

/* MIXT v1.2.4 active launch buttons */
.launch-after-payment-card .btn.is-active,
.launch-after-payment-card .launch-generate-btn,
.launch-after-payment-card #btnGenerateKeys:not(:disabled){
  opacity:1 !important;
  pointer-events:auto !important;
  cursor:pointer !important;
  box-shadow:0 10px 24px rgba(37,99,235,.18);
}
.launch-after-payment-card #btnGenerateKeys.disabled,
.launch-after-payment-card #btnGenerateKeys:disabled{
  opacity:1 !important;
  pointer-events:auto !important;
  cursor:pointer !important;
}
.launch-after-payment-card .launch-start-btn.disabled,
.launch-after-payment-card #btnStartLaunchSession:disabled{
  opacity:.55;
  cursor:not-allowed;
}
.launch-after-payment-card .small-help.success{ color:#047857; font-weight:600; }
.launch-after-payment-card .small-help.error{ color:#b91c1c; font-weight:600; }


/* MIXT v1.2.5 critical token launch form isolation */
.launch-after-payment-card,
.launch-after-payment-card *{
    user-select:text;
}
.launch-after-payment-card .btn.is-active,
.launch-after-payment-card button.is-active{
    opacity:1 !important;
    cursor:pointer !important;
    pointer-events:auto !important;
    filter:none !important;
}
.launch-after-payment-card button[disabled],
.launch-after-payment-card .btn.disabled{
    opacity:.55;
    cursor:not-allowed;
}
.launch-key-mode{
    position:relative;
    user-select:text;
}
.launch-key-mode.is-selected{
    border-color:#2563eb;
    box-shadow:0 0 0 3px rgba(37,99,235,.12);
    background:#f8fbff;
}
.token-launch-session-form textarea,
.token-launch-session-form input{
    user-select:text !important;
}


/* MIXT v1.2.6 restored key warning and session handoff */
.launch-key-warning{
    margin:14px 0;
    padding:14px 16px;
    border-radius:14px;
    border:1px solid rgba(245,158,11,.35);
    background:#fffbeb;
    color:#7c2d12;
}
.launch-key-warning h3{
    margin:0 0 6px;
    font-size:16px;
}
.launch-key-warning p{
    margin:0 0 8px;
}
.launch-key-warning ul{
    margin:0;
    padding-left:20px;
}
.launch-key-warning li{
    margin:3px 0;
}
.launch-session-active{
    border-color:rgba(34,197,94,.35);
}
.launch-session-recovery{
    border-color:rgba(245,158,11,.35);
}


/* MIXT v1.2.7 TOKEN funding gate */
.token-funding-gate-card{border:1px solid rgba(245,158,11,.35);}
.token-funding-gate-card.primary-flow{border-color:rgba(34,197,94,.35);}
.prelaunch-action-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px;margin:14px 0;}
.prelaunch-result{white-space:pre-wrap;overflow:auto;max-height:260px;background:#0f172a;color:#e2e8f0;border-radius:12px;padding:12px;font-size:12px;}
.btn.disabled,button.disabled{opacity:.55;cursor:not-allowed;pointer-events:none;}


/* MIXT v1.2.8 restored original key warning behavior */
.launch-key-warning{
    margin:14px 0;
    padding:14px 16px;
    border-radius:14px;
    border:1px solid rgba(245,158,11,.35);
    background:#fffbeb;
    color:#7c2d12;
}
.launch-key-warning .actions{
    margin-top:12px;
    display:flex;
    flex-wrap:wrap;
    gap:8px;
}


/* MIXT v1.3.3 funding -> LP phase gate */
.v133-phase-gate-card{
    margin:16px 0;
    border:1px solid #fed7aa;
    border-radius:18px;
    background:linear-gradient(180deg,#fff,#fff7ed);
    padding:18px;
}
.v133-phase-head{
    display:flex;
    justify-content:space-between;
    gap:16px;
    align-items:flex-start;
}
.v133-phase-head h2{ margin:8px 0; }
.v133-pill-ok,
.v133-pill-lock{
    display:inline-flex;
    padding:7px 11px;
    border-radius:999px;
    font-weight:900;
    font-size:12px;
}
.v133-pill-ok{ background:#dcfce7; color:#166534; }
.v133-pill-lock{ background:#fee2e2; color:#991b1b; }
.v133-phase-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:12px;
    margin:14px 0;
}
.v133-phase-grid > div{
    padding:14px;
    border:1px solid #e6e9f0;
    border-radius:16px;
    background:#fff;
}
.v133-phase-grid > div.done{ border-color:#22c55e; background:#f0fdf4; }
.v133-phase-grid > div.active{ border-color:#2563eb; background:#eff6ff; }
.v133-phase-grid > div.locked{ opacity:.7; background:#f8fafc; }
.v133-phase-grid b{
    display:grid;
    place-items:center;
    width:30px;
    height:30px;
    border-radius:999px;
    background:#2563eb;
    color:#fff;
    margin-bottom:8px;
}
.v133-phase-grid strong,
.v133-phase-grid span{ display:block; }
.v133-phase-grid span{
    margin-top:5px;
    color:#667085;
    font-size:13px;
}
.v133-locked-action{
    opacity:.45!important;
    pointer-events:none!important;
    cursor:not-allowed!important;
}
@media(max-width:900px){
    .v133-phase-head{ display:block; }
    .v133-phase-grid{ grid-template-columns:1fr; }
}


/* MIXT v1.3.4 single launch orchestrator */
.v134-single-orchestrator-card,
.v134-old-lp-disabled{
    margin:16px 0;
    border:1px solid #bfdbfe;
    border-radius:18px;
    background:linear-gradient(180deg,#fff,#eff6ff);
    padding:18px;
}
.v134-old-lp-disabled{
    border-color:#fecaca;
    background:linear-gradient(180deg,#fff,#fef2f2);
}
.v134-head{
    display:flex;
    justify-content:space-between;
    gap:16px;
    align-items:flex-start;
}
.v134-head h2{ margin:8px 0; }
.v134-pill-ok,
.v134-pill-lock{
    display:inline-flex;
    padding:7px 11px;
    border-radius:999px;
    font-weight:900;
    font-size:12px;
}
.v134-pill-ok{ background:#dcfce7; color:#166534; }
.v134-pill-lock{ background:#fee2e2; color:#991b1b; }
.v134-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:12px;
    margin:14px 0;
}
.v134-grid > div{
    padding:14px;
    border:1px solid #e6e9f0;
    border-radius:16px;
    background:#fff;
}
.v134-grid > div.done{ border-color:#22c55e; background:#f0fdf4; }
.v134-grid > div.active{ border-color:#2563eb; background:#eff6ff; }
.v134-grid > div.locked{ opacity:.72; background:#f8fafc; }
.v134-grid b{
    display:grid;
    place-items:center;
    width:30px;
    height:30px;
    border-radius:999px;
    background:#2563eb;
    color:#fff;
    margin-bottom:8px;
}
.v134-grid strong,
.v134-grid span{ display:block; }
.v134-grid span{
    margin-top:5px;
    color:#667085;
    font-size:13px;
}
@media(max-width:900px){
    .v134-head{ display:block; }
    .v134-grid{ grid-template-columns:1fr; }
}


/* MIXT v1.3.5 one production orchestrator */
.v135-debug-hidden{
    display:none!important;
}
.v135-production-flow-card,
.v135-recovery-note{
    margin:16px 0;
    border:1px solid #bfdbfe;
    border-radius:18px;
    background:linear-gradient(180deg,#fff,#eff6ff);
    padding:18px;
}
.v135-production-head{
    display:flex;
    justify-content:space-between;
    gap:16px;
    align-items:flex-start;
}
.v135-production-head h2{
    margin:8px 0;
}
.v135-flow-steps{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:12px;
    margin:14px 0;
}
.v135-flow-steps > div{
    padding:14px;
    border:1px solid #e6e9f0;
    border-radius:16px;
    background:#fff;
}
.v135-flow-steps > div.done{
    border-color:#22c55e;
    background:#f0fdf4;
}
.v135-flow-steps > div.active{
    border-color:#2563eb;
    background:#eff6ff;
}
.v135-flow-steps > div.locked{
    opacity:.68;
    background:#f8fafc;
}
.v135-flow-steps b{
    display:grid;
    place-items:center;
    width:30px;
    height:30px;
    border-radius:999px;
    background:#2563eb;
    color:#fff;
    margin-bottom:8px;
}
.v135-flow-steps .done b{
    background:#22c55e;
}
.v135-flow-steps strong,
.v135-flow-steps span{
    display:block;
}
.v135-flow-steps span{
    margin-top:5px;
    color:#667085;
    font-size:13px;
}
.v135-recovery-note details{
    cursor:pointer;
}
@media(max-width:1000px){
    .v135-production-head{
        display:block;
    }
    .v135-flow-steps{
        grid-template-columns:1fr;
    }
}


/* MIXT v1.3.6 auto funding phase */
.prelaunch-auto-action{
    display:grid;
    gap:8px;
    margin:14px 0;
    padding:14px;
    border:1px solid #bfdbfe;
    border-radius:16px;
    background:#eff6ff;
}
.prelaunch-auto-action .big-action{
    width:100%;
    min-height:48px;
    font-size:16px;
    font-weight:900;
}
.prelaunch-auto-action small{
    color:#475467;
}


/* MIXT Launchpad v3.6 — production token market/pools UI */
.token-market-hero{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin:10px 0 14px;
}
.token-market-hero span{
    display:inline-flex;
    align-items:center;
    gap:6px;
    padding:7px 10px;
    border-radius:999px;
    background:#f1f5f9;
    color:#475569;
    font-size:13px;
}
.token-market-hero strong{color:#0f172a}
.token-pools-card .token-pools-head{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:16px;
    margin-bottom:14px;
}
.token-pools-card .token-pools-head h2{margin:0 0 4px}
.token-pools-card .token-pools-head p{margin:0;color:#64748b}
.pool-market-summary{
    display:flex;
    flex-direction:column;
    gap:6px;
    min-width:220px;
    padding:12px;
    border-radius:16px;
    background:#f8fafc;
    border:1px solid #e2e8f0;
    font-size:13px;
}
.token-pool-cards{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:14px;
}
.token-pool-card{
    border:1px solid #e2e8f0;
    border-radius:20px;
    padding:14px;
    background:linear-gradient(180deg,#fff,#f8fafc);
    box-shadow:0 10px 30px rgba(15,23,42,.06);
}
.token-pool-card.is-active{border-color:#bbf7d0;background:linear-gradient(180deg,#fff,#f0fdf4)}
.token-pool-card-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    margin-bottom:10px;
}
.token-pool-card h3{margin:0;font-size:18px}
.pool-status{
    display:inline-flex;
    padding:4px 9px;
    border-radius:999px;
    background:#e2e8f0;
    color:#334155;
    font-size:12px;
    font-weight:800;
}
.pool-status.ok{background:#dcfce7;color:#166534}
.pool-status.wait{background:#fff7ed;color:#9a3412}
.pool-stats{
    display:grid;
    gap:8px;
    margin:10px 0;
}
.pool-stats div{
    display:flex;
    justify-content:space-between;
    gap:10px;
    padding-bottom:7px;
    border-bottom:1px dashed #e2e8f0;
    font-size:13px;
}
.pool-stats span{color:#64748b}
.pool-id{
    display:block;
    padding:8px;
    border-radius:12px;
    background:#f1f5f9;
    color:#475569;
    font-size:11px;
    word-break:break-all;
    margin:8px 0;
}
@media(max-width:980px){
    .token-pool-cards{grid-template-columns:1fr}
    .token-pools-card .token-pools-head{flex-direction:column}
    .pool-market-summary{width:100%}
}


/* MIXT Launchpad v3.7 — inline launch engine on token page */
.inline-launch-panel{
    margin-top:18px;
    padding:18px;
    border-radius:20px;
    border:1px solid #dbeafe;
    background:linear-gradient(180deg,#ffffff,#f8fbff);
}
.inline-launch-head{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:14px;
    margin-bottom:12px;
}
.inline-launch-head h3{margin:0 0 4px;font-size:20px}
.inline-launch-head p{margin:0;color:#64748b}
.inline-launch-status{
    display:inline-flex;
    white-space:nowrap;
    padding:7px 10px;
    border-radius:999px;
    font-size:12px;
    font-weight:800;
    background:#fff7ed;
    color:#9a3412;
}
.inline-launch-status.ok{background:#dcfce7;color:#166534}
.inline-launch-status.warn{background:#fff7ed;color:#9a3412}
.inline-launch-recovery-form{
    margin-top:12px;
}
.inline-launch-log-box{
    margin-top:16px;
    display:none;
}
.inline-launch-log-box.is-open{
    display:block;
}
.inline-launch-log-title{
    display:inline-flex;
    padding:8px 12px;
    border-radius:14px 14px 0 0;
    background:#16a34a;
    color:#fff;
    font-weight:800;
    min-width:110px;
    justify-content:center;
}
#inlineLaunchFrame{
    width:100%;
    min-height:720px;
    border:2px solid #16a34a;
    border-radius:0 18px 18px 18px;
    background:#fff;
}
@media(max-width:760px){
    .inline-launch-head{flex-direction:column}
    #inlineLaunchFrame{min-height:620px}
}

/* MIXT Launchpad v3.8 — footer pool sync status */
.pool-sync-footer-status{
    display:inline-flex;
    margin-top:6px;
    padding:4px 8px;
    border-radius:999px;
    background:#f1f5f9;
    color:#64748b;
    font-size:12px;
}
.pool-sync-footer-status.is-running{background:#fff7ed;color:#9a3412}
.pool-sync-footer-status.is-ok{background:#dcfce7;color:#166534}
.pool-sync-footer-status.is-error{background:#fee2e2;color:#991b1b}
.pool-sync-footer-status.is-muted{background:#f1f5f9;color:#64748b}


/* MIXT Launchpad v3.9 — token page cleanup */
.logo-update-form{margin-top:10px}
.logo-edit-icon-btn{
    display:inline-flex;align-items:center;justify-content:center;
    width:34px;height:34px;border-radius:999px;border:1px solid #d0d5dd;
    background:#fff;color:#344054;cursor:pointer;font-size:18px;line-height:1;
    box-shadow:0 4px 12px rgba(15,23,42,.06)
}
.logo-edit-icon-btn:hover{background:#f8fafc;border-color:#94a3b8}
.logo-edit-icon-btn input[type=file]{display:none}
.token-pools-table-wrap{width:100%;overflow-x:auto;border:1px solid #e2e8f0;border-radius:18px;background:#fff}
.token-pools-table{width:100%;border-collapse:separate;border-spacing:0;min-width:920px}
.token-pools-table th,.token-pools-table td{padding:12px 14px;border-bottom:1px solid #e2e8f0;text-align:left;vertical-align:middle;font-size:13px}
.token-pools-table th{background:#f8fafc;color:#475569;font-weight:800}
.token-pools-table tr:last-child td{border-bottom:0}
.token-pools-table tr.is-active{background:#fcfffd}
.token-payment-mini.paid{display:none}

/* MIXT Launchpad v3.4.3 — token page layout cleanup */
.token-detail.is-paid{
    grid-template-columns:120px minmax(0,1fr);
    align-items:center;
}
.token-detail.is-unpaid{
    grid-template-columns:120px minmax(0,1fr) minmax(240px,280px);
}
.token-title-row{
    display:flex;
    align-items:center;
    gap:10px;
    flex-wrap:wrap;
    margin-bottom:8px;
}
.token-title-row h1{
    margin:0;
}
.network-inline-badge{
    display:inline-flex;
    align-items:center;
    padding:5px 10px;
    border-radius:999px;
    background:#eef2f7;
    color:#475569;
    font-size:12px;
    font-weight:800;
    line-height:1;
}
/* MIXT Launchpad v3.4.4 — second row equal columns */
.token-main-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:18px;
    align-items:stretch;
}
.token-main-grid>.card{
    min-width:0;
    width:100%;
    height:100%;
}
.token-pools-card{
    overflow:hidden;
}
.token-pools-table-wrap{
    overflow-x:visible;
}
.token-pools-table{
    min-width:0;
    table-layout:fixed;
}
.token-pools-table th,
.token-pools-table td{
    padding:10px 12px;
    line-height:1.35;
}
.token-pools-table th:nth-child(1),
.token-pools-table td:nth-child(1){width:26%;}
.token-pools-table th:nth-child(2),
.token-pools-table td:nth-child(2){width:38%;}
.token-pools-table th:nth-child(3),
.token-pools-table td:nth-child(3){width:18%;}
.token-pools-table th:nth-child(4),
.token-pools-table td:nth-child(4){width:18%;}
.pool-reserves-cell{
    white-space:normal;
    overflow-wrap:anywhere;
}
.pool-reserve-separator{
    display:inline-block;
    margin:0 8px;
    color:#94a3b8;
    font-weight:900;
}
.token-wallet-copy-box{
    margin:0;
    gap:6px;
}
.token-wallet-text{
    min-height:58px!important;
    padding:8px 10px!important;
    font-size:11px;
    line-height:1.35!important;
}
.token-main-grid .card{
    padding:22px 24px;
}
.token-main-grid .info-table td{
    padding:8px 6px;
}
.logo-update-form{
    position:absolute;
    left:104px;
    top:104px;
    margin:0;
}
.token-logo-side{
    position:relative;
}
@media(max-width:1000px){
    .token-detail.is-paid,
    .token-detail.is-unpaid,
    .token-main-grid{
        grid-template-columns:1fr;
    }
    .token-pools-table-wrap{
        overflow-x:auto;
    }
    .token-pools-table{
        min-width:620px;
    }
    .logo-update-form{
        left:calc(50% + 34px);
        top:88px;
    }
}

/* MIXT Launchpad v3.4.5 — bind logo edit button to token image */
.token-logo-side{
    position:relative;
    width:120px;
    min-width:120px;
    align-self:center;
}
.token-logo-side .token-logo.big{
    display:block;
}
.token-logo-side .logo-update-form{
    position:absolute;
    right:-8px;
    top:-8px;
    left:auto;
    margin:0;
    z-index:3;
}
.token-logo-side .logo-edit-icon-btn{
    width:32px;
    height:32px;
    font-size:16px;
    background:#fff;
}
@media(max-width:1000px){
    .token-logo-side{
        width:120px;
        min-width:120px;
    }
    .token-logo-side .logo-update-form{
        right:-8px;
        top:-8px;
        left:auto;
    }
}

/* MIXT Launchpad v3.4.8 — inherited layout + logo edit button bottom-right */
.token-logo-frame{
    position:relative;
    width:120px;
    height:120px;
    flex:0 0 120px;
}
.token-logo-frame .token-logo.big{
    width:120px;
    height:120px;
}
.token-logo-frame .logo-update-form{
    position:absolute;
    right:-8px;
    bottom:-8px;
    top:auto;
    left:auto;
    margin:0;
    z-index:5;
}
.token-logo-side>.logo-update-form{
    display:none!important;
}
@media(max-width:1000px){
    .token-logo-frame .logo-update-form{
        right:-8px;
        bottom:-8px;
        top:auto;
        left:auto;
    }
}

/* v3.5 production launch job flow */
.token-create-action{margin:14px 0 8px}.token-create-btn{font-size:18px;padding:14px 22px;border-radius:16px;background:#16a34a!important;border-color:#16a34a!important;color:#fff!important}.launch-after-payment-card .launch-key-mode-box .launch-key-mode:not(.is-selected){display:none}.launch-token-summary{margin-bottom:16px}.launch-processing-card{margin-top:16px}.launch-processing-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}.launch-processing-head h2{margin:0 0 6px}.launch-progress-pill{min-width:74px;height:74px;border-radius:50%;display:grid;place-items:center;background:#ecfdf3;border:1px solid #bbf7d0;color:#047857;font-weight:900;font-size:20px}.launch-status-alert{margin:14px 0}.launch-human-log{border:1px solid #e6e9f0;border-radius:18px;background:#f8fafc;overflow:hidden}.launch-log-row{padding:14px 16px;border-bottom:1px solid #e6e9f0;display:flex;flex-direction:column;gap:4px}.launch-log-row:last-child{border-bottom:0}.launch-log-row strong{color:#111827}.launch-log-row span{color:#667085}.launch-log-row.success strong{color:#047857}.launch-log-row.error strong{color:#b42318}.launch-log-row.warning strong,.launch-log-row.warn strong{color:#b54708}.launch-started-alert{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.launch-processing-card .notice .btn{margin-left:10px}


.launch-human-state-box{margin-top:12px;padding:12px 14px;border:1px solid #bfdbfe;background:#eff6ff;border-radius:14px;display:flex;gap:10px;align-items:flex-start;flex-wrap:wrap;color:#0f172a}
.launch-human-state-box strong{font-weight:800;color:#0f172a}
.launch-human-state-box span{color:#475569;line-height:1.45}

/* v3.5.5 temporary technical start-stage log */
.launch-tech-log-box pre{
    margin:10px 0 0;
    padding:12px;
    max-height:360px;
    overflow:auto;
    white-space:pre-wrap;
    word-break:break-word;
    border-radius:12px;
    background:#111827;
    color:#e5e7eb;
    font-size:12px;
    line-height:1.45;
}

/* v3.6.3 token-page processing block: background processor stays invisible, user sees only human AJAX log */
.token-page-processing-card{margin:0 0 16px 0;width:100%;}
.launch-background-frame{position:absolute!important;width:1px!important;height:1px!important;left:-9999px!important;top:auto!important;border:0!important;opacity:0!important;pointer-events:none!important;visibility:hidden!important;}
.launch-status-alert-static{margin:12px 0 14px;}

/* v3.6.5: token page processing action row */
.launch-processing-actions{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px 12px;
  margin:14px 0 12px;
  padding:12px 14px;
  border:1px solid rgba(37,99,235,.16);
  border-radius:16px;
  background:linear-gradient(135deg, rgba(37,99,235,.06), rgba(14,165,233,.04));
}
.launch-processing-actions .small-help{
  flex:1 1 260px;
  margin:0;
  color:#64748b;
}
.launch-processing-actions .btn.primary{
  min-width:190px;
}

/* v3.6.6 temporary launch processing debug */
.launch-tech-debug{
  margin: 14px 0 16px;
  border: 1px dashed rgba(30, 64, 175, .28);
  border-radius: 14px;
  background: rgba(248, 250, 252, .95);
  padding: 10px 12px;
}
.launch-tech-debug summary{
  cursor: pointer;
  font-weight: 700;
  color: #1e3a8a;
}
.launch-tech-debug pre{
  margin: 10px 0 0;
  max-height: 360px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 12px;
  line-height: 1.45;
}
.launch-processing-actions .btn.is-loading{
  opacity: .72;
  cursor: wait;
}


/* MIXT Geen Admin v3.7.5.1 */
.geen-layout{display:grid;grid-template-columns:280px minmax(0,1fr);gap:18px;align-items:start}
.geen-sidebar{position:sticky;top:92px;padding:18px}
.geen-sidebar-title{font-size:18px;font-weight:800;color:#0f172a}
.geen-sidebar-subtitle{font-size:12px;color:#64748b;margin:2px 0 14px}
.geen-nav-group{padding:10px 0;border-top:1px solid #e5e7eb}
.geen-nav-group-title{font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:#94a3b8;margin-bottom:7px;font-weight:800}
.geen-nav-link{display:block;padding:8px 10px;border-radius:10px;color:#334155;text-decoration:none;font-size:14px}
.geen-nav-link:hover,.geen-nav-link.active{background:#eef6ff;color:#0f3b82}
.geen-workspace{min-width:0}
.geen-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;margin-bottom:16px;padding:20px}
.geen-head h1{margin:4px 0 6px;font-size:26px}
.geen-head p{margin:0;color:#64748b}
.geen-head-actions{display:flex;gap:8px;flex-wrap:wrap}
.geen-stat-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:16px}
.geen-stat-card{text-decoration:none;color:#0f172a;padding:18px}
.geen-stat-card span{display:block;color:#64748b;font-size:13px}
.geen-stat-card b{display:block;font-size:30px;line-height:1.1;margin:7px 0;font-variant-numeric:tabular-nums}
.geen-stat-card small{color:#94a3b8}
.geen-filter{display:grid;grid-template-columns:2fr 1fr 1fr 1fr 100px;gap:10px;margin-bottom:14px;padding:14px}
.geen-inline-form{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:12px}
.geen-table-card{padding:0;overflow:hidden}
.geen-table-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px 16px;border-bottom:1px solid #e5e7eb}
.geen-table-toolbar small{display:block;color:#64748b;font-size:12px}
.geen-bulk-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.geen-table-wrap{overflow:auto}
.geen-table{width:100%;border-collapse:collapse;font-size:13px}
.geen-table th,.geen-table td{padding:9px 10px;border-bottom:1px solid #eef2f7;text-align:left;vertical-align:top}
.geen-table th{background:#f8fafc;color:#475569;font-weight:800;white-space:nowrap}
.geen-table tr:hover td{background:#fbfdff}
.geen-row-actions{white-space:nowrap}
.geen-empty{text-align:center;color:#94a3b8;padding:26px!important}
.geen-pagination{display:flex;justify-content:center;align-items:center;gap:10px;padding:12px;border-top:1px solid #e5e7eb}
.geen-detail{margin-top:16px}
.geen-detail pre{white-space:pre-wrap;word-break:break-word;max-height:520px;overflow:auto;background:#0f172a;color:#dbeafe;border-radius:12px;padding:14px;font-size:12px}
@media(max-width:980px){
  .geen-layout{grid-template-columns:1fr}
  .geen-sidebar{position:static}
  .geen-stat-grid{grid-template-columns:1fr}
  .geen-filter{grid-template-columns:1fr}
  .geen-head{display:block}
  .geen-head-actions{margin-top:12px}
}


/* v3.7.5.2 status checkbox dropdown */
.geen-status-filter{position:relative;min-width:190px}
.geen-status-filter summary{list-style:none;cursor:pointer;background:#fff;border:1px solid #dbe3ef;border-radius:12px;padding:10px 12px;color:#334155;min-height:42px}
.geen-status-filter summary::-webkit-details-marker{display:none}
.geen-status-filter[open] summary{border-color:#93c5fd;box-shadow:0 0 0 3px rgba(147,197,253,.25)}
.geen-status-menu{position:absolute;z-index:30;top:48px;left:0;width:260px;max-height:340px;overflow:auto;background:#fff;border:1px solid #dbe3ef;border-radius:14px;box-shadow:0 18px 45px rgba(15,23,42,.14);padding:8px}
.geen-check{display:grid;grid-template-columns:22px 1fr auto;gap:8px;align-items:center;padding:8px;border-radius:10px;color:#334155}
.geen-check:hover{background:#f8fafc}
.geen-check input{width:16px;height:16px}
.geen-check small{color:#94a3b8;font-variant-numeric:tabular-nums}


/* v3.7.5.3 human admin states */
.geen-state-badge{display:inline-flex;align-items:center;gap:4px;border-radius:999px;padding:4px 9px;font-size:12px;font-weight:800;white-space:nowrap;background:#e5e7eb;color:#334155}
.geen-state-badge.muted{background:#f1f5f9;color:#64748b}
.geen-state-badge.secondary{background:#e5e7eb;color:#334155}
.geen-state-badge.info{background:#dbeafe;color:#1d4ed8}
.geen-state-badge.primary{background:#dbeafe;color:#1e40af}
.geen-state-badge.warning{background:#fef3c7;color:#92400e}
.geen-state-badge.danger{background:#fee2e2;color:#991b1b}
.geen-state-badge.success{background:#dcfce7;color:#166534}
.geen-state-badge.dark{background:#1f2937;color:#fff}
.geen-state-hint{display:block;color:#64748b;margin-top:4px;max-width:220px}
.geen-state-filter summary{font-weight:700}


/* v3.7.5.4 visible token state presets */
.geen-state-presets{margin-bottom:14px;padding:0;overflow:hidden}
.geen-preset-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:14px}
.geen-preset-card{display:block;text-decoration:none;border:1px solid #e5e7eb;border-radius:14px;padding:12px;background:#fff;color:#0f172a}
.geen-preset-card:hover,.geen-preset-card.active{border-color:#93c5fd;background:#f8fbff;box-shadow:0 8px 24px rgba(59,130,246,.10)}
.geen-preset-card small{display:block;color:#64748b;margin-top:7px;line-height:1.35}
@media(max-width:980px){.geen-preset-grid{grid-template-columns:1fr}}


/* v3.7.5.5 admin state query alignment */
.geen-preset-top{display:flex;align-items:center;justify-content:space-between;gap:10px}
.geen-preset-top b{font-size:22px;color:#0f172a;font-variant-numeric:tabular-nums;line-height:1}
.geen-preset-card.active .geen-preset-top b{color:#1d4ed8}


/* v3.7.5.6 unified overview log */
.geen-unified-log-card h2{margin:0 0 4px}
.geen-unified-log{width:100%;min-height:360px;border:0;border-top:1px solid #e5e7eb;background:#0f172a;color:#dbeafe;padding:14px;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:12px;line-height:1.45;white-space:pre;overflow:auto;box-sizing:border-box}
.btn.danger{background:#fee2e2;color:#991b1b;border-color:#fecaca}
.btn.danger:hover{background:#fecaca}


/* v3.7.5.7 live unified overview log */
.geen-live-toggle{display:inline-flex;align-items:center;gap:6px;font-size:13px;color:#334155;background:#f8fafc;border:1px solid #e5e7eb;border-radius:999px;padding:7px 10px}
.geen-live-toggle input{width:15px;height:15px}
.geen-live-dot{display:inline-block;width:10px;height:10px;border-radius:999px;background:#94a3b8;box-shadow:0 0 0 0 rgba(148,163,184,.45)}
.geen-live-dot.active{background:#2563eb;animation:geenPulse 1s infinite}
.geen-live-dot.error{background:#dc2626}
.geen-log-status{display:flex;justify-content:space-between;gap:12px;padding:8px 12px;border-top:1px solid #1e293b;background:#111827;color:#93c5fd;font-size:12px}
@keyframes geenPulse{0%{box-shadow:0 0 0 0 rgba(37,99,235,.45)}70%{box-shadow:0 0 0 8px rgba(37,99,235,0)}100%{box-shadow:0 0 0 0 rgba(37,99,235,0)}}


/* v3.7.5.8 admin overview/ajax unification */
.geen-workspace pre{white-space:pre-wrap;word-break:break-word}


/* v3.7.5.9 overview polish */
.geen-unified-log{
    min-height:700px;
    max-height:none;
}

.geen-state-info-card{
    margin-top:16px;
    opacity:.88;
}


/* v3.7.5.10 overview state presets */
.geen-overview-state-presets{margin-top:16px}
.geen-overview-state-presets h2{margin:0 0 4px}


/* v3.8.4 unified log reader fix */
.geen-log-status span:first-child{font-weight:600}


/* v3.8.9 admin bulk actions */
.geen-bulk-panel{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:8px 0}
.geen-bulk-panel-bottom{padding:12px 0;border-top:1px solid rgba(15,23,42,.08);border-bottom:1px solid rgba(15,23,42,.08)}
.geen-bulk-label{font-weight:700;font-size:.9rem;color:#334155}
.geen-bulk-select{min-width:220px;border:1px solid #cbd5e1;border-radius:12px;padding:10px 12px;background:#fff}
.geen-bulk-submit{min-width:130px}
.geen-table-toolbar{align-items:flex-start}


/* v3.8.12 recovery-core visible build marker */
.app-version-badge{
    display:inline-flex!important;
    align-items:center;
    width:max-content;
    margin-top:3px;
    padding:2px 7px;
    border-radius:999px;
    background:#eef6ff;
    border:1px solid #bfdbfe;
    color:#175cd3!important;
    font-size:11px!important;
    font-weight:800;
    letter-spacing:.01em;
}
