/* RSA tools: tabs + field layout (buttons use tool-page.css H6 scheme) */

.w-tabs {
    display: flex;
    margin-bottom: 20px;
    position: relative;
}

.w-tab {
    padding: 6px 16px;
    cursor: pointer;
    border-bottom: 1px solid #ddd;
    background-color: #f6f6f6;
    border-radius: 4px 4px 0 0;
    position: relative;
    z-index: 1;
    font-size: .875rem;
    color: #666;
}

.w-tab.active {
    background-color: #fff;
    border: 1px solid #ddd;
    border-bottom: none;
    z-index: 2;
    color: #333;
}

.w-tabs::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #ddd;
    z-index: 0;
}

.w-tab-content {
    display: none;
}

.w-tab-content.active {
    display: block;
}

.w-form-row {
    display: flex;
    margin-bottom: .4rem;
    flex-wrap: wrap;
}

.w-form-col {
    margin-bottom: .5rem;
}

.w-field-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    margin-bottom: 6px;
}

.w-field-header .w-form-label {
    margin-bottom: 0;
    font-size: .875rem;
    font-weight: 400;
    color: #888;
}

/* 字段标题旁复制：紧跟标题的文字链 */
.main-three-part-grid-container .w-field-header .rsa-copy-link {
    color: #3280f8;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    height: auto !important;
    min-height: 0;
    line-height: 1.4;
    font-size: .8125rem;
    font-weight: 400;
    cursor: pointer;
    box-shadow: none !important;
    text-decoration: none !important;
    -webkit-appearance: none;
    appearance: none;
    user-select: none;
}

.main-three-part-grid-container .w-field-header .rsa-copy-link:hover,
.main-three-part-grid-container .w-field-header .rsa-copy-link:focus,
.main-three-part-grid-container .w-field-header .rsa-copy-link:active {
    color: #4d93f9;
    background: transparent !important;
    border: none !important;
    text-decoration: none !important;
    outline: none;
}

.main-three-part-grid-container .tool-form[class*="tool-form-rsa"] > p {
    margin: .35rem 0 .25rem;
    font-size: .875rem;
    color: #888;
}
