.name-tool-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 1rem;
}

.name-textarea,
.name-output {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 0.95rem 1rem;
    background: #fafafa;
    color: #333;
    font-family: 'Fira Code', monospace;
    font-size: 0.95rem;
    line-height: 1.7;
    resize: vertical;
}

.name-textarea:focus,
.name-output:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
    background: #fff;
}

.name-hint {
    margin: 0.5rem 0 0;
    color: #777;
    font-size: 0.82rem;
    line-height: 1.6;
}

.check-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.85rem;
    color: #555;
    font-size: 0.9rem;
}

.name-actions {
    margin-top: 1rem;
    flex-wrap: wrap;
}

.name-status {
    margin-top: 1rem;
    padding: 0.8rem 0.95rem;
    border: 1px solid #e8eaf0;
    border-radius: 8px;
    background: #f8f9fb;
    color: #666;
    font-size: 0.85rem;
    line-height: 1.6;
}

.name-status.success {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #047857;
}

.name-status.error {
    background: #fef2f2;
    border-color: #fecaca;
    color: #b91c1c;
}

.name-result {
    margin-top: 1.1rem;
}

.name-result-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.7rem;
}

.name-result-title {
    color: #1a1a1a;
    font-size: 1rem;
    font-weight: 600;
}

.name-result-meta {
    color: #666;
    font-size: 0.85rem;
}

.name-copy-actions {
    margin-top: 0.9rem;
}

.formula-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.formula-row {
    display: grid;
    grid-template-columns: 170px 1fr 1fr;
    gap: 1rem;
    align-items: center;
    padding: 0.85rem 1rem;
    border: 1px solid #e8eaf0;
    border-radius: 8px;
    background: #fff;
}

.formula-name {
    color: #333;
    font-size: 0.9rem;
    font-weight: 600;
}

.formula-expr {
    color: #2563eb;
    font-family: 'Fira Code', monospace;
    font-size: 0.88rem;
}

.formula-example {
    color: #777;
    font-size: 0.84rem;
}

@media (max-width: 760px) {
    .name-tool-grid {
        grid-template-columns: 1fr;
    }

    .formula-row {
        grid-template-columns: 1fr;
    }
}
