.text-tool-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    padding-bottom: 54px;
}

.text-tool-panel {
    border: 1px solid var(--border);
    background: var(--surface);
    box-shadow: var(--shadow-soft);
    border-radius: 30px;
    padding: 22px;
    min-width: 0;
}

.text-tool-header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-bottom: 16px;
}

.text-tool-header h2 {
    margin-bottom: 0;
}

.text-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.text-tool-panel textarea {
    width: 100%;
    min-height: 380px;
    resize: vertical;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 16px;
    background: var(--bg);
    color: var(--text);
    outline: none;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    line-height: 1.55;
}

.code-output {
    min-height: 380px;
    max-height: 620px;
    overflow: auto;
    margin: 0;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--bg);
    color: var(--text);
    white-space: pre-wrap;
    word-break: break-word;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    line-height: 1.55;
}

.code-output.is-hidden {
    display: none;
}

.tool-message {
    min-height: 24px;
    margin-top: 12px;
    font-weight: 800;
    color: var(--muted);
}

.tool-message.is-success {
    color: var(--success);
}

.tool-message.is-error {
    color: var(--danger);
}

.hash-results {
    display: grid;
    gap: 10px;
}

.hash-item {
    text-align: left;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 14px;
    background: var(--bg);
    color: var(--text);
    cursor: pointer;
}

.hash-item span,
.hash-item strong {
    display: block;
}

.hash-item span {
    color: var(--primary);
    font-weight: 900;
    margin-bottom: 6px;
}

.hash-item strong {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    word-break: break-all;
    font-size: .88rem;
}

@media (max-width: 900px) {
    .text-tool-layout {
        grid-template-columns: 1fr;
    }

    .text-tool-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .text-tool-panel textarea,
    .code-output {
        min-height: 280px;
    }
}
