.anon-workspace {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 0 auto;
}

.workspace-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0 0.5rem;
}

.workspace-title h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.workspace-title .sub {
    margin-top: 0.3rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.workspace-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.editor-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: stretch;
    height: calc(100dvh - 280px);
    max-height: calc(100dvh - 280px);
    min-height: 320px;
}

@media (min-width: 820px) {
    .editor-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.editor-pane {
    display: grid;
    grid-template-rows: auto 1fr;
    padding: 1.5rem;
    gap: 1rem;
    overflow: hidden;
    height: 100%;
    min-height: 0;
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    box-shadow: 0 8px 32px var(--shadow-glass);
}

.pane-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.input-textarea {
    width: 100%;
    height: 100%;
    min-height: 0;
    border-radius: 12px;
    border: 1px solid var(--border-glass);
    background: var(--bg-input);
    padding: 1rem;
    color: inherit;
    outline: none;
    font-family: inherit;
    font-size: 0.95rem;
    line-height: 1.6;
    box-sizing: border-box;
    resize: none;
    overflow: auto;
}

.result-area {
    width: 100%;
    height: 100%;
    min-height: 0;
    border-radius: 12px;
    border: 1px solid var(--border-glass);
    background: var(--bg-input);
    padding: 1rem;
    color: inherit;
    outline: none;
    font-family: inherit;
    font-size: 0.95rem;
    line-height: 1.6;
    box-sizing: border-box;
    overflow-y: auto !important;
    overflow-x: hidden;
    white-space: pre-wrap;
    word-break: break-word;
}

#result-wrapper {
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

.anon-progress-bar {
    width: 100%;
    height: 4px;
    background: var(--bg-input);
    border-radius: 2px;
    overflow: hidden;
    display: none;
    margin-top: 0.5rem;
}

.anon-progress-bar.active {
    display: block;
}

.anon-progress-bar::after {
    content: '';
    display: block;
    width: 40%;
    height: 100%;
    background: var(--accent);
    border-radius: 2px;
    animation: progress-indeterminate 1.5s infinite linear;
}

@keyframes progress-indeterminate {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(250%);
    }
}

/* Drop zone */
#drop-zone {
    position: relative;
}

.drop-overlay {
    position: absolute;
    inset: 0;
    display: none !important;
    align-items: center;
    justify-content: center;
    z-index: 10;
    pointer-events: none;
    transition: display 0.15s ease-out;
}

.drop-overlay.is-visible {
    display: flex !important;
}

.drop-overlay-bg {
    position: absolute;
    inset: 0;
    background: rgba(var(--accent-rgb, 59, 130, 246), 0.15);
    border-radius: 24px;
    backdrop-filter: blur(4px);
    border: 2px dashed var(--accent);
}

.drop-overlay-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem 1.4rem;
    border-radius: 12px;
    background: var(--bg-glass);
    box-shadow: 0 4px 20px var(--shadow-glass);
}

.drop-icon {
    font-size: 1.3rem;
}

.drop-text {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
}

@keyframes drop-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}
