
*{box-sizing:border-box}

html,body{
    margin:0;
    min-height:100%;
    background:#090a0b;
    color:#f0ede8;
    font-family:Segoe UI,Arial,sans-serif;
}

.wpa-beta-body{
    min-height:calc(100vh - 80px);
}

.wpa-beta-app{
    width:min(1050px,96vw);
    height:100vh;
    margin:auto;
    display:flex;
    flex-direction:column;
    padding:18px 0 14px;
}

.wpa-beta-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    border-bottom:1px solid #252525;
    padding:0 4px 14px;
}

.wpa-beta-head h1{
    margin:0;
    font-size:25px;
    font-weight:650;
}

.wpa-beta-head h1 span{
    color:#d9aa47;
    font-weight:500;
}

.wpa-beta-meta{
    margin-top:5px;
    color:#8f8f8f;
    font-size:12px;
}

.wpa-beta-status{
    border:1px solid #353535;
    border-radius:999px;
    padding:7px 11px;
    font-size:11px;
    letter-spacing:.08em;
}

.wpa-beta-status.good{
    border-color:#315d3b;
    color:#79d58e;
}

.wpa-beta-power{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:9px;
    padding:10px 0;
}

.power-card{
    min-height:62px;
    border:1px solid #242424;
    border-radius:10px;
    background:#101112;
    padding:10px 13px;
    display:flex;
    align-items:center;
    gap:12px;
}

.power-card>span{
    color:#aaa;
    font-size:12px;
}

.power-card strong{
    font-size:14px;
}

.power-card small{
    color:#777;
    font-size:11px;
}

.compute-card{
    display:grid;
    grid-template-columns:auto 1fr auto;
}

.compute-dot{
    display:inline-block;
    width:8px;
    height:8px;
    border-radius:50%;
    background:#555;
    margin-right:6px;
}

.compute-dot.active{
    background:#56c971;
    box-shadow:0 0 9px #56c97177;
}

.compute-dot.paused{
    background:#d8a93f;
}

#computePauseBtn,
.small-btn{
    background:#171717;
    color:#d8d8d8;
    border:1px solid #333;
    border-radius:7px;
    padding:7px 10px;
    cursor:pointer;
}

.wpa-beta-tools{
    display:flex;
    align-items:flex-start;
    gap:8px;
    padding-bottom:9px;
}

.history{
    position:relative;
    font-size:12px;
}

.history summary{
    cursor:pointer;
    color:#aaa;
    padding:7px 9px;
}

#conversationList{
    position:absolute;
    z-index:10;
    width:280px;
    max-height:330px;
    overflow:auto;
    background:#111;
    border:1px solid #292929;
    border-radius:9px;
    padding:7px;
}

.wpaai-conversation{
    width:100%;
    text-align:left;
    background:none;
    border:0;
    color:#aaa;
    padding:8px;
    cursor:pointer;
    border-radius:6px;
}

.wpaai-conversation:hover,
.wpaai-conversation.active{
    background:#202020;
    color:white;
}

.wpaai-empty{
    color:#777;
    padding:8px;
}

.wpa-beta-chat{
    flex:1;
    min-height:0;
    overflow-y:auto;
    border-top:1px solid #1e1e1e;
    padding:24px 3px;
}

.wpaai-welcome{
    height:100%;
    min-height:220px;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    color:#888;
}

.wpaai-welcome h2{
    color:#e8e3da;
    margin:0 0 5px;
}

.wpaai-msg{
    margin:12px 0;
    max-width:85%;
}

.wpaai-msg.user{
    margin-left:auto;
}

.wpaai-msg-head{
    display:flex;
    gap:8px;
    font-size:11px;
    color:#777;
    margin-bottom:4px;
}

.wpaai-msg-text{
    padding:11px 13px;
    border-radius:11px;
    background:#151617;
    border:1px solid #242424;
    line-height:1.5;
    font-size:14px;
}

.wpaai-msg.user .wpaai-msg-text{
    background:#211b11;
    border-color:#3b3020;
}

.wpaai-feedback{
    display:flex;
    align-items:center;
    gap:5px;
    margin-top:4px;
}

.wpaai-feedback button{
    border:0;
    background:none;
    opacity:.45;
    cursor:pointer;
}

.wpaai-feedback button.active,
.wpaai-feedback button:hover{
    opacity:1;
}

.wpaai-feedback small{
    color:#555;
}

.wpa-beta-form{
    display:grid;
    grid-template-columns:1fr auto;
    gap:8px;
    border-top:1px solid #252525;
    padding-top:10px;
}

#wpaChatInput{
    resize:none;
    width:100%;
    min-height:48px;
    max-height:150px;
    background:#111213;
    border:1px solid #303030;
    border-radius:10px;
    color:white;
    padding:13px 14px;
    outline:none;
}

#wpaChatInput:focus{
    border-color:#745d2d;
}

#wpaChatSend,
.terms-accept{
    border:0;
    border-radius:9px;
    padding:0 20px;
    background:#d3a94c;
    color:#111;
    font-weight:650;
    cursor:pointer;
}

#wpaChatSend:disabled{
    opacity:.4;
    cursor:default;
}

.wpa-beta-hint{
    min-height:18px;
    color:#777;
    font-size:11px;
    padding-top:5px;
}

.terms-modal{
    position:fixed;
    inset:0;
    z-index:100;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#000c;
    padding:18px;
}

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

.terms-box{
    width:min(570px,100%);
    background:#121313;
    border:1px solid #333;
    border-radius:14px;
    padding:23px;
    box-shadow:0 25px 80px #000;
}

.terms-box h2{
    margin-top:0;
}

.terms-box p,
.terms-check{
    color:#aaa;
    font-size:13px;
    line-height:1.5;
}

.terms-check{
    display:block;
    margin:18px 0;
}

.terms-check a{
    color:#d8a93f;
}

.terms-error{
    min-height:19px;
    color:#e06e6e;
    font-size:12px;
}

.terms-accept{
    min-height:42px;
}

body.modal-open{
    overflow:hidden;
}

@media(max-width:700px){

    .wpa-beta-app{
        width:94vw;
    }

    .wpa-beta-head h1{
        font-size:21px;
    }

    .wpa-beta-power{
        grid-template-columns:1fr;
    }

    .compute-card{
        grid-template-columns:1fr auto;
    }

    .compute-card small{
        grid-column:1/-1;
    }

    .wpaai-msg{
        max-width:94%;
    }

    .wpa-beta-form{
        grid-template-columns:1fr;
    }

    #wpaChatSend{
        min-height:42px;
    }
}


/* === WPA 0.9.2: integracja z głównym nagłówkiem strony === */

.wpa-beta-body > header {
    flex-shrink: 0;
}

.wpa-beta-app {
    min-height: calc(100vh - 80px);
}

@media(max-width:700px) {
    .wpa-beta-app {
        height: auto;
        min-height: calc(100vh - 70px);
    }
}


/* WPA 0.9.3 POOL DOTS */
.pool093 {
    width: 100%;
}

.pool093 strong {
    display: block;
    margin-bottom: 8px;
}

.pool-dots093 {
    display: flex;
    gap: 7px;
    align-items: center;
}

.pool-dot093 {
    display: block;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: rgba(255,255,255,.09);
    border: 1px solid rgba(216,169,63,.28);
    box-shadow: inset 0 0 0 1px rgba(0,0,0,.24);
}

.pool-dot093.active {
    background: #d8a93f;
    box-shadow: 0 0 11px rgba(216,169,63,.55);
}

/* === WPA UI FIX 094 START === */

.wpa-beta-app .compute-card.wpa-compute-bottom-card {
    width: min(100%, 1180px) !important;
    margin: 34px auto 12px !important;
    order: 9999 !important;
    display: grid !important;
    grid-template-columns: minmax(0,1fr) auto !important;
    align-items: center !important;
    gap: 14px 24px !important;
    padding: 18px 20px !important;
    border: 1px solid rgba(224,174,57,.28) !important;
    background: rgba(12,11,9,.92) !important;
}
.wpa-beta-app .compute-card.wpa-compute-bottom-card #computePauseBtn {
    grid-column: 2 !important;
    grid-row: 1 / span 2 !important;
    align-self: center !important;
    min-width: 112px !important;
}
.wpa-beta-app .compute-card.wpa-compute-bottom-card #computeDetails {
    display: block !important;
    margin-top: 5px !important;
}
#computeMiniDot.compute-dot {
    width: 9px !important;
    height: 9px !important;
    min-width: 9px !important;
    border-radius: 50% !important;
}
@media (max-width: 700px) {
    .wpa-beta-app .compute-card.wpa-compute-bottom-card {
        grid-template-columns: 1fr !important;
    }
    .wpa-beta-app .compute-card.wpa-compute-bottom-card #computePauseBtn {
        grid-column: 1 !important;
        grid-row: auto !important;
        width: 100% !important;
    }
}

/* === WPA UI FIX 094 END === */
