/* Encrypted pastebin — builds on the shared tokens in site.css */

.paste-app [hidden] {
    display: none !important;
}

.paste-mono,
.paste-text {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.92rem;
    line-height: 1.5;
}

.field textarea.paste-mono {
    min-height: 260px;
    tab-size: 4;
}

.paste-app a.btn {
    display: inline-block;
    text-decoration: none;
}

.paste-copy-row {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
}

.paste-copy-row input {
    flex: 1;
    min-width: 0;
    padding: 0.65rem 0.75rem;
    font-size: 0.95rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

.paste-copy-row input:focus {
    outline: none;
    border-color: var(--accent-color);
}

.paste-note {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.paste-status {
    text-align: center;
    color: var(--text-secondary);
    margin: 1rem 0;
}

.paste-gate {
    max-width: 560px;
    margin: 1.5rem auto 0;
}

.paste-meta {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.paste-meta.paste-burned {
    color: #e53935;
    font-weight: 600;
}

.paste-text {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    max-height: 70vh;
    overflow: auto;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    color: var(--text-primary);
}

.paste-code {
    white-space: pre;
    overflow-wrap: normal;
    counter-reset: line;
    padding-left: 0;
}

.paste-code span {
    display: block;
    padding-left: 4em;
    position: relative;
    min-height: 1.5em;
}

.paste-code span::before {
    counter-increment: line;
    content: counter(line);
    position: absolute;
    left: 0;
    width: 3em;
    text-align: right;
    color: var(--text-secondary);
    opacity: 0.6;
    user-select: none;
}

.paste-attachment h2 {
    overflow-wrap: anywhere;
}

.paste-preview {
    display: block;
    max-width: 100%;
    max-height: 480px;
    border-radius: 6px;
    margin-bottom: 0.5rem;
}

.btn.paste-danger {
    background-color: #e53935;
}

.btn.paste-danger:hover {
    background-color: #c62828;
}

.btn:disabled {
    opacity: 0.6;
    cursor: progress;
    transform: none;
}

@media (max-width: 600px) {
    .paste-copy-row {
        flex-direction: column;
    }
}
