.page-tool .hash-tools-card.converter-card-fill {
    height: min(40rem, calc(100dvh - 9.5rem));
}

@media (width >= 40rem) {
    .page-tool .hash-tools-card.converter-card-fill {
        height: min(42rem, calc(100dvh - 9rem));
    }
}

.hash-tools-result {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    gap: 0.75rem;
    min-height: 0;
    overflow: auto;
}

.hash-output-block {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    min-width: 0;
}

.hash-output-label {
    margin: 0;
    font-size: 0.6875rem;
    font-weight: 650;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.hash-output-value {
    margin: 0;
    padding: 0.625rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    background: var(--surface-muted);
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    line-height: 1.45;
    color: var(--text-primary);
    word-break: break-all;
    white-space: pre-wrap;
}

.hash-compare-status {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    padding: 1rem 1.125rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    background: var(--surface-muted);
}

.hash-compare-status--match {
    border-color: color-mix(in srgb, #16a34a 45%, var(--border));
    background: color-mix(in srgb, #16a34a 10%, var(--surface-muted));
}

.hash-compare-status--mismatch {
    border-color: color-mix(in srgb, #dc2626 45%, var(--border));
    background: color-mix(in srgb, #dc2626 10%, var(--surface-muted));
}

.hash-compare-title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 650;
    color: var(--text-primary);
}

.hash-compare-note {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.hash-compare-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
    gap: 0.5rem;
}

.hash-detail-card {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.625rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    background: var(--surface);
}

.hash-detail-key {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.hash-detail-value {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    color: var(--text-primary);
    word-break: break-all;
}

.hash-file-name {
    margin: 0;
    font-size: 0.75rem;
    color: var(--text-muted);
    word-break: break-all;
}

.hmac-input-stack {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    gap: 0.75rem;
    min-height: 0;
    overflow: hidden;
}

.hmac-input-stack > .hmac-message-panel {
    flex: 1 1 0;
    min-height: 0;
}

.hmac-input-stack > .hmac-secret-panel {
    flex: 0 0 8.75rem;
    min-height: 8.75rem;
    max-height: 8.75rem;
    overflow: hidden;
}

.hmac-secret-panel .code-editor,
.hmac-secret-panel > .code-input {
    flex: 1 1 0;
    min-height: 0;
}
