.rg-wrap {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin: 8px 0 24px;
}

.rg-desc {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 16px;
    line-height: 1.6;
}

.rg-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rg-input {
    width: 100%;
    height: 38px;
    padding: 8px 12px;
    font-size: 14px;
    line-height: 1.4;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.rg-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.rg-input::placeholder {
    color: #bbb;
}

.rg-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.rg-btn {
    padding: 7px 18px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    background: transparent;
    line-height: 1.4;
    transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.rg-btn-outline {
    border: 1px solid #3b82f6;
    color: #3b82f6;
}

.rg-btn-outline:hover {
    background: #eff6ff;
    border-color: #2563eb;
    color: #2563eb;
}

.rg-btn-outline:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.rg-btn-ghost {
    border: 1px solid #d1d5db;
    color: #6b7280;
}

.rg-btn-ghost:hover {
    border-color: #9ca3af;
    color: #374151;
    background: #f9fafb;
}

.rg-tips {
    margin-top: 12px;
    font-size: 13px;
    min-height: 1.2em;
    color: #6b7280;
}

.rg-tips.error {
    color: #dc2626;
}

.rg-result {
    margin-top: 16px;
    border: 1px solid #bfdbfe;
    background: #eff6ff;
    border-radius: 8px;
    overflow: hidden;
}

.rg-result-title {
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #1e40af;
    border-bottom: 1px solid #bfdbfe;
    background: #dbeafe;
}

.rg-result-body {
    padding: 14px 16px;
}

.rg-detail-row {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.6;
    color: #1f2937;
}

.rg-detail-row:last-child {
    margin-bottom: 0;
}

.rg-detail-label {
    color: #4b5563;
    white-space: nowrap;
    font-weight: 600;
}

.rg-detail-value {
    word-break: break-all;
}

.rg-list {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
}

.rg-list th,
.rg-list td {
    border: 1px solid #e5e7eb;
    padding: 9px 10px;
    text-align: left;
}

.rg-list th {
    background: #f8fafc;
    color: #64748b;
    font-weight: 600;
}

.rg-list tr:hover td {
    background: #f8fafc;
}

.rg-list .rg-pick {
    color: #3b82f6;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    font-size: 13px;
}

.rg-list .rg-pick:hover {
    text-decoration: underline;
}

.rg-intro {
    margin-top: 20px;
    padding: 14px 16px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.rg-intro-title {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.rg-intro ul {
    margin: 0;
    padding-left: 18px;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.8;
}

@media (max-width: 640px) {
    .rg-wrap {
        margin-left: 0;
        margin-right: 0;
    }
}
