.editor-container {
    max-width: 900px;
    margin: 120px auto 40px;
    background: #fffdf9; /* Paper texture base */
    background-image: repeating-linear-gradient(transparent, transparent 39px, #e5e7eb 39px, #e5e7eb 40px);
    background-attachment: local;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    position: relative;
    padding-bottom: 80px; /* Space for collaborator strip */
}

.editor-toolbar {
    position: sticky;
    top: 80px;
    background: rgba(255, 253, 249, 0.95);
    backdrop-filter: blur(8px);
    padding: 1rem 2rem;
    border-bottom: 2px solid #f1950b;
    border-radius: 8px 8px 0 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.editor-title {
    font-family: 'Caveat', cursive;
    font-size: 2.5rem;
    border: none;
    background: transparent;
    color: #451d00;
    outline: none;
    width: 50%;
}

.editor-lines {
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.editor-row {
    display: flex;
    align-items: center;
    height: 40px;
    gap: 15px;
}

.row-number {
    width: 40px;
    text-align: right;
    font-weight: 600;
    color: #9ca3af;
    font-family: monospace;
}

.row-input {
    flex: 1;
    border: none;
    background: transparent;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    color: #1f2937;
    outline: none;
}

/* History Drawer */
.history-drawer {
    position: fixed;
    top: 0; right: -400px;
    width: 400px; height: 100vh;
    background: #fff;
    box-shadow: -5px 0 25px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    z-index: 10001;
    overflow-y: auto;
    padding: 2rem;
}
.history-drawer.open { right: 0; }

/* Collaborator Strip (Pure CSS Tooltips) */
.collaborator-strip {
    position: absolute;
    bottom: 0; left: 0; width: 100%;
    background: #f8fafc;
    padding: 0.75rem 2rem;
    border-radius: 0 0 8px 8px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: -10px;
}

.avatar-collab {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 2px solid #fff;
    display: flex; justify-content: center; align-items: center;
    color: #fff; font-weight: 600; font-size: 0.8rem;
    position: relative;
    margin-right: -10px;
    cursor: pointer;
}

.avatar-collab:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 120%; left: 50%;
    transform: translateX(-50%);
    background: #1e293b; color: #fff;
    padding: 0.5rem; border-radius: 6px;
    font-size: 0.75rem; white-space: pre;
    z-index: 10;
}