/* Floating Bottom-Left Layout - Less Intrusive */

.sc-pnl-root {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: auto;
    height: auto;
    z-index: 2147483647;
    display: none;
    align-items: flex-end;
    justify-content: flex-start;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    pointer-events: none; /* Allow clicking through root */
}

.sc-pnl-bg {
    display: none; /* Remove dark backdrop */
}

.sc-pnl-cnt {
    position: relative;
    width: 420px; /* Slimmer for side placement */
    max-width: calc(100vw - 60px);
    pointer-events: auto; /* Enable clicks on the panel itself */
}

.sc-pnl-inner {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    animation: sc-slide-in 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes sc-slide-in {
    from { transform: translateX(-50px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.sc-pnl-top h2 {
    margin: 0 0 8px 0;
    font-size: 22px;
    font-weight: 800;
    color: #111827;
}

.sc-pnl-top p {
    margin: 0;
    font-size: 14px;
    color: #4b5563;
    line-height: 1.5;
}

.sc-pnl-mid {
    margin: 25px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sc-pnl-row {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sc-row-info strong {
    display: block;
    font-size: 14px;
    color: #111827;
}

.sc-row-info p {
    margin: 0;
    font-size: 11px;
    color: #6b7280;
    line-height: 1.3;
}

/* Toggle */
.sc-tgl-w {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.sc-tgl-w input { opacity: 0; width: 0; height: 0; }

.sc-tgl-s {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #d1d5db;
    transition: .3s;
    border-radius: 34px;
}

.sc-tgl-s:before {
    position: absolute;
    content: "";
    height: 18px; width: 18px;
    left: 3px; bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

input:checked + .sc-tgl-s { background-color: #2271b1; }
input:checked + .sc-tgl-s:before { transform: translateX(20px); }

.sc-pnl-btm {
    display: flex;
    flex-direction: column; /* Stack buttons for smaller width */
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.sc-p-link {
    font-size: 13px;
    color: #6b7280;
    text-decoration: underline;
    align-self: flex-start;
}

.sc-actions {
    display: flex;
    gap: 10px;
    width: 100%;
}

.sc-btn {
    flex: 1;
    padding: 12px 15px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-align: center;
}

.sc-btn-o { background: #f3f4f6; color: #4b5563; }
.sc-btn-f { background: #2271b1; color: #fff; }

.sc-btn:hover { transform: translateY(-2px); }

@media (max-width: 480px) {
    .sc-pnl-root { left: 15px; right: 15px; bottom: 15px; }
    .sc-pnl-cnt { width: 100%; max-width: 100%; }
}
