
.sparky-unified-model-control {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 40px;
    padding: 5px 8px 5px 11px;
    border: 1px solid rgba(148, 163, 184, .28);
    border-radius: 11px;
    background: rgba(15, 23, 42, .72);
}

.sparky-unified-model-control span {
    font-size: 12px;
    opacity: .7;
}

.sparky-unified-model-control select {
    max-width: 230px;
    min-width: 150px;
    min-height: 32px;
    border: 0;
    outline: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

.sparky-unified-model-control option {
    color: #111827;
    background: #fff;
}

.sparky-internet-toggle {
    min-height: 40px;
    border: 1px solid rgba(148, 163, 184, .28);
    border-radius: 11px;
    padding: 8px 12px;
    background: rgba(15, 23, 42, .72);
    color: inherit;
    font: inherit;
    cursor: pointer;
    white-space: nowrap;
}

.sparky-internet-toggle.is-enabled {
    border-color: rgba(34, 197, 94, .8);
    background: rgba(22, 101, 52, .35);
    box-shadow: 0 0 0 2px rgba(34, 197, 94, .12);
}

.sparky-select-model-button {
    min-width: 105px;
    min-height: 42px;
    margin-left: auto;
    border: 1px solid rgba(96, 165, 250, .45);
    border-radius: 9px;
    background: rgba(30, 64, 175, .22);
    color: inherit;
    cursor: pointer;
}

.sparky-select-model-button.is-selected {
    border-color: rgba(34, 197, 94, .65);
    background: rgba(22, 101, 52, .35);
}

.sparky-policy-modal {
    position: fixed;
    inset: 0;
    z-index: 20000;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(2, 6, 23, .78);
    backdrop-filter: blur(5px);
}

.sparky-policy-modal.hidden {
    display: none !important;
}

.sparky-policy-card {
    width: min(720px, 96vw);
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid rgba(148, 163, 184, .35);
    border-radius: 18px;
    padding: 24px;
    background: #0f172a;
    color: #e2e8f0;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .48);
}

.sparky-policy-card h2 {
    margin: 0 0 14px;
}

.sparky-policy-warning {
    margin-bottom: 14px;
    border: 1px solid rgba(245, 158, 11, .5);
    border-radius: 10px;
    padding: 11px 13px;
    background: rgba(120, 53, 15, .25);
}

.sparky-policy-card li {
    margin: 8px 0;
    line-height: 1.45;
}

.sparky-policy-checkbox {
    display: flex;
    gap: 11px;
    margin-top: 18px;
    border: 1px solid rgba(96, 165, 250, .35);
    border-radius: 11px;
    padding: 13px;
    background: rgba(30, 64, 175, .14);
}

.sparky-policy-checkbox input {
    width: 19px;
    height: 19px;
    flex: 0 0 auto;
}

.sparky-policy-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.sparky-policy-actions button {
    min-height: 42px;
    border: 1px solid rgba(148, 163, 184, .35);
    border-radius: 9px;
    padding: 8px 16px;
    background: rgba(30, 41, 59, .9);
    color: inherit;
    font: inherit;
    cursor: pointer;
}

#sparkyPolicyAccept:not(:disabled) {
    border-color: #6366f1;
    background: #4f46e5;
}

#sparkyPolicyAccept:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.sparky-control-toast {
    position: fixed;
    top: 76px;
    right: 18px;
    z-index: 21000;
    max-width: 380px;
    border: 1px solid rgba(34, 197, 94, .45);
    border-radius: 10px;
    padding: 11px 14px;
    background: rgba(15, 23, 42, .98);
    color: #e2e8f0;
    box-shadow: 0 15px 40px rgba(0, 0, 0, .35);
}

.sparky-control-toast.is-error {
    border-color: rgba(239, 68, 68, .6);
}

@media (max-width: 900px) {
    .sparky-unified-model-control span {
        display: none;
    }

    .sparky-unified-model-control select {
        min-width: 125px;
        max-width: 165px;
    }

    .sparky-internet-toggle {
        max-width: 180px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}
