/* Bank Integrations panel + Secure Form (WIP) */

.attach-menu-wip-pill {
    flex: 0 0 auto;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #92400e;
    background: #fef3c7;
    border-radius: 4px;
    padding: 2px 6px;
}

.bank-int-panel {
    position: fixed;
    inset: 0;
    /* Above .mobile-top-bar (12501) / hamburger (12502); below auth modal overlays */
    z-index: 12600;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.bank-int-panel.is-open {
    pointer-events: auto;
    opacity: 1;
}

.bank-int-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.35);
}

.bank-int-sheet {
    position: absolute;
    top: 0;
    right: 0;
    width: min(400px, 100%);
    height: 100%;
    background: #fff;
    box-shadow: -12px 0 40px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    transform: translateX(12px);
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.bank-int-panel.is-open .bank-int-sheet {
    transform: translateX(0);
}

.bank-int-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 18px 8px;
}

.bank-int-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 650;
    color: #111827;
}

.bank-int-wip {
    display: inline-block;
    margin-top: 4px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #92400e;
    background: #fef3c7;
    border-radius: 4px;
    padding: 2px 7px;
}

.bank-int-close {
    border: none;
    background: transparent;
    font-size: 1.5rem;
    line-height: 1;
    color: #6b7280;
    cursor: pointer;
    padding: 0 4px;
}

.bank-int-banner {
    margin: 0 18px 10px;
    padding: 10px 12px;
    font-size: 12px;
    line-height: 1.4;
    color: #374151;
    background: #f3f4f6;
    border-radius: 8px;
}

.bank-int-tabs {
    display: flex;
    gap: 4px;
    padding: 0 18px;
}

.bank-int-tab {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px 8px;
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    border-bottom: 2px solid transparent;
    cursor: pointer;
}

.bank-int-tab.is-active {
    color: #111827;
    border-bottom-color: #111827;
}

.bank-int-search-wrap {
    padding: 12px 18px 8px;
}

.bank-int-search {
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 9px 12px;
    font-size: 14px;
}

.bank-int-body {
    flex: 1;
    overflow: auto;
    padding: 4px 12px 16px;
}

.bank-int-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 8px;
    border-radius: 8px;
}

.bank-int-row:hover {
    background: #f9fafb;
}

.bank-int-row-main {
    flex: 1;
    min-width: 0;
}

.bank-int-row-name {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

.bank-int-row-meta {
    font-size: 12px;
    color: #6b7280;
    margin-top: 2px;
}

.bank-int-action {
    border: 1px solid #e5e7eb;
    background: #fff;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.bank-int-action.is-linked {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #065f46;
}

.bank-int-action.is-challenge {
    background: #fff7ed;
    border-color: #fed7aa;
    color: #9a3412;
}

.bank-int-action.is-danger {
    color: #991b1b;
    border-color: #fecaca;
}

.bank-int-footer {
    padding: 12px 18px 18px;
    border-top: 1px solid #f3f4f6;
}

.bank-int-hub-link {
    font-size: 13px;
    color: #2563eb;
    text-decoration: none;
}

.bank-int-hub-link:hover {
    text-decoration: underline;
}

.bank-int-empty,
.bank-int-loading,
.bank-int-error {
    padding: 16px 8px;
    font-size: 13px;
    color: #6b7280;
}

/* Secure Form card in chat */
.bank-secure-form-wrap .message-content,
.bank-secure-form-wrap {
    max-width: min(420px, 100%);
}

.bank-secure-card {
    margin: 8px 0;
    padding: 16px 18px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: linear-gradient(180deg, #fafafa 0%, #fff 40%);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}

.bank-secure-card.is-done {
    background: #ecfdf5;
    border-color: #a7f3d0;
}

.bank-secure-lock {
    color: #059669;
    margin-bottom: 6px;
}

.bank-secure-title {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 650;
    color: #111827;
}

.bank-secure-sub {
    margin: 0 0 14px;
    font-size: 12px;
    line-height: 1.45;
    color: #6b7280;
}

.bank-secure-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 10px;
    font-size: 12px;
    font-weight: 600;
    color: #374151;
}

.bank-secure-field input {
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 9px 11px;
    font-size: 14px;
    font-weight: 400;
}

.bank-secure-option {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #4b5563;
    margin: 4px 0 12px;
}

.bank-secure-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.bank-secure-submit {
    border: none;
    background: #111827;
    color: #fff;
    border-radius: 8px;
    padding: 9px 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.bank-secure-cancel {
    border: none;
    background: transparent;
    color: #6b7280;
    font-size: 13px;
    cursor: pointer;
}

.bank-secure-error {
    margin: 8px 0 0;
    font-size: 12px;
    color: #b91c1c;
}

.bank-int-notice .message-content {
    font-size: 13px;
    color: #374151;
}

/* Hub page */
.bank-int-hub {
    max-width: 920px;
    margin: 0 auto;
    padding: 24px 16px 64px;
}

.bank-int-hub-hero h1 {
    margin: 0 0 8px;
    font-size: 1.75rem;
}

.bank-int-hub-hero p {
    margin: 0 0 16px;
    color: #4b5563;
    line-height: 1.5;
}

.bank-int-hub-grid {
    display: grid;
    gap: 8px;
}

@media (min-width: 720px) {
    .bank-int-hub-grid {
        grid-template-columns: 1fr 1fr;
    }
}
