/* ===========================================
   Quotes Page Styles
   Matches FamilyRack design language
   =========================================== */

/* Page Container */
.quotes-container {
    flex: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 24px 16px;
    width: 100%;
}

/* Page Header */
.quotes-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.quotes-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
}

/* Create Quote Card (Dashed Border) */
.create-quote-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px;
    border: 2px dashed var(--primary);
    border-radius: 16px;
    background: white;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: background 0.2s, border-color 0.2s;
    margin-bottom: 16px;
}

.create-quote-card:hover {
    background: var(--primary-soft);
    border-color: var(--primary-dark);
}

.create-quote-card .mdi {
    font-size: 20px;
}

/* Quote Card (List/Index Page) */
.quotes-container .quote-card {
    display: flex;
    align-items: flex-start;
    background: white;
    padding: 20px 16px;
    border-radius: 20px;
    margin-bottom: 8px;
    border: 1px solid #E8E0DB;
    text-decoration: none;
    color: inherit;
    transition: transform 0.1s, box-shadow 0.2s;
}

.quotes-container .quote-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Speaker Avatar in Quote Card (List Page) */
.quotes-container .quote-speaker-avatar {
    width: 48px;
    height: 48px;
    border-radius: 24px;
    overflow: hidden;
    background: var(--primary-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    flex-shrink: 0;
}

.quotes-container .quote-speaker-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.quotes-container .quote-speaker-avatar .avatar-initials {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
}

/* Quote Content (List Page) */
.quote-content {
    flex: 1;
    min-width: 0;
}

.quote-content .quote-body {
    font-size: 16px;
    font-weight: 500;
    color: var(--text);
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.quote-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 14px;
    color: var(--text-secondary);
}

.quote-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.quote-meta-item .mdi {
    font-size: 16px;
    color: var(--text-light);
}

.quotes-container .quote-chevron {
    color: var(--text-light);
    font-size: 24px;
    margin-left: 8px;
}

/* Empty State */
.quotes-empty {
    text-align: center;
    padding: 60px 24px;
    background: white;
    border-radius: 16px;
    border: 1px solid var(--border);
}

.quotes-empty .mdi {
    font-size: 64px;
    color: var(--text-light);
    margin-bottom: 16px;
}

.quotes-empty-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.quotes-empty-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Loading Spinner for Infinite Scroll */
.quotes-loading {
    display: flex;
    justify-content: center;
    padding: 24px;
}

.quotes-loading .mdi {
    font-size: 24px;
    color: var(--primary);
}

.quotes-list {
    display: flex;
    flex-direction: column;
}

/* ===========================================
   Quote Form (New/Edit)
   =========================================== */

.quote-form-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 24px 16px;
}

.quote-form-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
    text-align: center;
    margin-bottom: 32px;
}

/* Quote Input */
.quote-input-container {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.quote-input {
    width: 100%;
    min-height: 100px;
    background: transparent;
    border: none;
    outline: none;
    font-size: 16px;
    font-weight: 400;
    color: var(--text);
    resize: none;
    font-family: inherit;
    line-height: 1.5;
}

.quote-input::placeholder {
    color: var(--text-light);
}

/* Context Input */
.quote-context-group {
    margin-bottom: 16px;
}

.quote-context-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
    display: block;
}

.quote-context-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 16px;
    color: var(--text);
    background: white;
    font-family: inherit;
}

.quote-context-input::placeholder {
    color: var(--text-light);
}

/* Selector Rows (Speaker, Date) */
.quote-selector {
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 12px;
    cursor: pointer;
}

.quote-selector .mdi {
    font-size: 24px;
    color: var(--text-secondary);
    margin-right: 12px;
}

.quote-selector select,
.quote-selector input[type="date"] {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 16px;
    color: var(--text);
    cursor: pointer;
    outline: none;
    font-family: inherit;
}

.quote-selector select {
    appearance: none;
    -webkit-appearance: none;
}

.quote-selector .chevron {
    font-size: 24px;
    color: var(--text-secondary);
}

/* Share With Section */
.share-section {
    margin-top: 24px;
    margin-bottom: 32px;
}

.share-section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.share-section-header .mdi {
    font-size: 22px;
    color: var(--text);
}

.share-section-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
}

/* Family Option */
.family-option {
    display: flex;
    align-items: center;
    background: white;
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: border-color 0.2s;
}

.family-option:hover {
    border-color: var(--border);
}

.family-option.selected {
    border-color: var(--primary);
}

.family-option-avatar {
    width: 44px;
    height: 44px;
    border-radius: 22px;
    background: var(--primary-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
    overflow: hidden;
}

.family-option-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.family-option-avatar .avatar-initial {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary);
}

.family-option-info {
    flex: 1;
}

.family-option-name {
    font-size: 16px;
    font-weight: 500;
    color: var(--text);
}

.family-option-count {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.family-option-checkbox {
    width: 24px;
    height: 24px;
    border-radius: 12px;
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.family-option.selected .family-option-checkbox {
    background: var(--primary);
    border-color: var(--primary);
}

.family-option-checkbox .mdi {
    font-size: 16px;
    color: white;
    opacity: 0;
    transition: opacity 0.2s;
}

.family-option.selected .family-option-checkbox .mdi {
    opacity: 1;
}

/* Submit Button */
.quote-submit-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.quote-submit-btn:hover {
    background: var(--primary-dark);
}

.quote-submit-btn .mdi {
    font-size: 20px;
}

/* ===========================================
   Quote Detail Page (Show)
   =========================================== */

.quote-detail-container {
    max-width: 800px;
    margin: 24px auto;
    padding: 16px;
}

.quote-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    color: var(--text);
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.2s;
}

.btn-back:hover {
    background: var(--background);
}

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

.btn-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--primary-soft);
    color: var(--primary);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s;
    border: none;
    font-family: inherit;
    cursor: pointer;
}

.btn-action:hover {
    background: var(--primary);
    color: white;
}

.btn-action:focus {
    outline: none;
}

.btn-action.btn-delete {
    background: rgba(220, 38, 38, 0.1);
    color: rgb(220, 38, 38);
}

.btn-action.btn-delete:hover {
    background: rgb(220, 38, 38);
    color: white;
}

/* Quote Card (Detail Page) */
.quote-detail-container .quote-card {
    background: white;
    border-radius: 16px;
    border: 1px solid var(--border);
    overflow: hidden;
}

.quote-detail-container .quote-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.quote-detail-container .quote-speaker-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--primary-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.quote-detail-container .quote-speaker-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.quote-detail-container .quote-speaker-avatar .avatar-initials {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary);
}

.quote-detail-container .quote-speaker-info {
    flex: 1;
    min-width: 0;
}

.quote-detail-container .quote-speaker-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

.quote-detail-container .quote-meta-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.quote-detail-container .quote-meta-row {
    font-size: 14px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.quote-detail-container .quote-body {
    padding: 20px;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.6;
    color: var(--text);
    white-space: pre-wrap;
    word-wrap: break-word;
}

.quote-detail-container .quote-context {
    padding: 0 20px 20px 20px;
    font-size: 15px;
    font-style: italic;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Comments Section (matches posts.css) */
.quote-detail-container .comments-section {
    margin-top: 24px;
    background: white;
    border-radius: 16px;
    border: 1px solid var(--border);
    padding: 20px;
}

.quote-detail-container .comments-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.quote-detail-container .comments-list {
    margin-bottom: 20px;
}

.quote-detail-container .comment-item {
    display: flex;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.quote-detail-container .comment-item:last-child {
    border-bottom: none;
}

.quote-detail-container .comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--primary-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.quote-detail-container .comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.quote-detail-container .comment-avatar .avatar-initials {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
}

.quote-detail-container .comment-content {
    flex: 1;
    min-width: 0;
}

.quote-detail-container .comment-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
}

.quote-detail-container .comment-author {
    font-weight: 600;
    color: var(--text);
    font-size: 15px;
}

.quote-detail-container .comment-time {
    font-size: 13px;
    color: var(--text-secondary);
}

.quote-detail-container .comment-body {
    font-size: 15px;
    color: var(--text);
    line-height: 1.5;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.quote-detail-container .comment-actions {
    display: flex;
    gap: 0;
    flex-shrink: 0;
}

.quote-detail-container .comment-delete-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--text-light);
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    flex-shrink: 0;
    font-family: inherit;
}

.quote-detail-container .comment-delete-btn:hover {
    background: rgba(220, 38, 38, 0.1);
    color: rgb(220, 38, 38);
}

.quote-detail-container .comment-delete-btn:focus {
    outline: none;
}

.quote-detail-container .comment-edit-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--text-light);
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    flex-shrink: 0;
    font-family: inherit;
}

.quote-detail-container .comment-edit-btn:hover {
    background: rgba(59, 130, 246, 0.1);
    color: rgb(59, 130, 246);
}

.quote-detail-container .comment-edit-btn:focus {
    outline: none;
}

/* Comment Form */
.quote-detail-container .comment-form {
    display: flex;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.quote-detail-container .comment-input {
    flex: 1;
    min-height: 60px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.2s;
}

.quote-detail-container .comment-input:focus {
    outline: none;
    border-color: var(--primary);
}

.quote-detail-container .comment-submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 20px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    height: fit-content;
}

.quote-detail-container .comment-submit-btn:hover {
    background: var(--primary-dark);
}

/* Delete Confirmation Modal */
.delete-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
}

.delete-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.delete-modal {
    background: white;
    border-radius: 16px;
    padding: 24px;
    max-width: 400px;
    width: 90%;
    text-align: center;
}

.delete-modal-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.delete-modal-message {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.delete-modal-actions {
    display: flex;
    gap: 12px;
}

.delete-modal-actions form {
    flex: 1;
    margin: 0;
}

.delete-modal-actions form .delete-modal-confirm {
    width: 100%;
}

.delete-modal-cancel {
    flex: 1;
    padding: 12px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
}

.delete-modal-confirm {
    flex: 1;
    padding: 12px;
    background: #DC2626;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: white;
    cursor: pointer;
}

.save-modal-confirm {
    flex: 1;
    padding: 12px;
    background: var(--primary);
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: white;
    cursor: pointer;
}

.save-modal-confirm:hover {
    background: var(--primary-dark);
}

/* Responsive */
@media (max-width: 640px) {

    .quotes-container,
    .quote-form-container,
    .quote-detail-container {
        padding: 16px;
    }

    .quote-detail-body {
        font-size: 18px;
    }
}
/* ===========================================
   Like Button Styles
   =========================================== */

.engagement-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 12px;
}

.like-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: transparent;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

.like-btn:hover {
    background: #fef2f2;
    border-color: #fca5a5;
}

.like-btn[data-liked="true"] {
    background: #fef2f2;
    border-color: #ef4444;
    color: #dc2626;
}

.like-btn[data-liked="true"] .mdi-heart {
    color: #ef4444;
}

.like-btn .mdi-heart-outline {
    color: #9ca3af;
    font-size: 20px;
}

.like-btn .mdi-heart {
    color: #ef4444;
    font-size: 20px;
}

.like-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.like-count {
    font-weight: 600;
    min-width: 16px;
    text-align: center;
}

/* Heartbeat Animation */
@keyframes heartbeat {
    0% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.3);
    }
    50% {
        transform: scale(1);
    }
    75% {
        transform: scale(1.15);
    }
    100% {
        transform: scale(1);
    }
}

/* ===========================================
   Conversation Timeline Styles (Form)
   =========================================== */

/* Context mode section */
.context-mode-section {
    margin-bottom: 24px;
}

/* Empty state */
.context-empty-state {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border: 2px dashed var(--border);
    border-radius: 12px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s, border-color 0.2s;
    background: white;
}

.context-empty-state:hover {
    opacity: 1;
    border-color: var(--primary);
}

.context-empty-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px dashed var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--background);
    flex-shrink: 0;
}

.context-empty-circle .mdi {
    font-size: 20px;
    color: var(--text-light);
}

.context-empty-text {
    display: flex;
    flex-direction: column;
}

.context-empty-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

.context-empty-subtitle {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 2px;
}

/* Timeline container */
.context-timeline {
    position: relative;
}

.context-timeline.hidden {
    display: none;
}

.context-empty-state.hidden {
    display: none;
}

/* Conversation lines container */
.conversation-lines-container {
    position: relative;
    padding-left: 52px;
}

/* Individual conversation line */
.conversation-line {
    position: relative;
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    margin-left: -52px;
}

/* Avatar wrapper */
.line-avatar-wrapper {
    position: relative;
    flex-shrink: 0;
    z-index: 1;
    align-self: flex-start;
}

.line-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.line-avatar.context-icon {
    background: var(--card, white);
    border: 1px solid var(--border);
}

.line-avatar.context-icon .mdi {
    font-size: 18px;
    color: var(--text-secondary);
}

.line-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.line-avatar .avatar-initials {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
}

/* Speaker select overlay on avatar and badge */
.line-speaker-select {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100% + 14px);
    opacity: 0;
    cursor: pointer;
    z-index: 3;
}

/* Avatar badge (chevron) */
.line-avatar-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    z-index: 2;
}

.line-avatar-badge .mdi {
    font-size: 10px;
    color: white;
}

/* Connector line (dashed) */
.line-connector {
    position: absolute;
    left: 19px;
    top: 40px;
    bottom: -20px;
    width: 2px;
    background: repeating-linear-gradient(
        to bottom,
        var(--border) 0,
        var(--border) 4px,
        transparent 4px,
        transparent 8px
    );
    z-index: 0;
}

.conversation-line:last-child .line-connector {
    display: none;
}

/* Content column */
.line-content {
    flex: 1;
    min-width: 0;
}

.line-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.line-speaker-name {
    font-size: 11px;
    font-weight: 600;
    color: var(--primary-dark);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.line-speaker-name.context-label {
    color: var(--text-secondary);
}

.line-remove-btn {
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    color: var(--text-light);
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
    padding: 0;
}

.line-remove-btn:hover {
    background: rgba(220, 38, 38, 0.1);
    color: rgb(220, 38, 38);
}

.line-remove-btn .mdi {
    font-size: 16px;
}

.line-body-input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    resize: none;
    min-height: 60px;
    background: var(--card, white);
    color: var(--text);
}

.line-body-input::placeholder {
    color: var(--text-light);
}

.line-body-input:focus {
    outline: none;
    border-color: var(--primary);
}

/* Drag handle */
.line-drag-handle {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    color: var(--text-light);
    padding: 4px;
    opacity: 0.3;
    transition: opacity 0.2s;
    align-self: center;
}

.line-drag-handle .mdi {
    font-size: 20px;
}

.conversation-line:hover .line-drag-handle {
    opacity: 1;
}

/* Sortable states */
.conversation-line.sortable-ghost {
    opacity: 0.4;
}

.conversation-line.sortable-chosen {
    background: var(--primary-soft);
    border-radius: 12px;
    padding: 8px;
    margin-left: -60px;
    padding-left: 8px;
}

/* Add line button */
.add-line-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0;
}

.add-line-divider {
    flex: 1;
    height: 1px;
    background: var(--border);
}

.add-line-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: transparent;
    border: none;
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    font-family: inherit;
}

.add-line-btn:hover {
    text-decoration: underline;
}

.add-line-btn .mdi {
    font-size: 16px;
}

/* ===========================================
   Conversation Timeline Styles (Show Page)
   =========================================== */

.show-conversation-timeline {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    position: relative;
}

.show-timeline-line {
    display: flex;
    gap: 12px;
    position: relative;
    margin-bottom: 16px;
    padding-left: 52px;
}

.show-timeline-line:last-child {
    margin-bottom: 0;
}

.show-timeline-avatar {
    position: absolute;
    left: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 1;
}

.show-timeline-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.show-timeline-avatar .avatar-initials {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
}

.show-timeline-content {
    flex: 1;
}

.show-timeline-speaker {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    display: block;
}

.show-timeline-body {
    font-size: 15px;
    color: var(--text);
    line-height: 1.5;
    margin: 0;
    white-space: pre-wrap;
}

.show-timeline-connector {
    position: absolute;
    left: 19px;
    top: 40px;
    bottom: -16px;
    width: 2px;
    background: repeating-linear-gradient(
        to bottom,
        var(--border) 0,
        var(--border) 4px,
        transparent 4px,
        transparent 8px
    );
    z-index: 0;
}

.show-timeline-line:last-child .show-timeline-connector {
    display: none;
}

/* Legacy context line (show page) */
.show-context-line {
    display: flex;
    gap: 12px;
    position: relative;
    padding: 16px 20px;
    padding-left: 72px;
    border-bottom: 1px solid var(--border);
}

.show-context-icon {
    position: absolute;
    left: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

.show-timeline-speaker.context-label {
    color: var(--text-secondary);
}

/* Quote line (speaker + quote text) */
.show-quote-line {
    display: flex;
    gap: 12px;
    position: relative;
    padding: 20px;
    padding-left: 72px;
}

.show-quote-avatar {
    position: absolute;
    left: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.show-quote-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.show-quote-avatar .avatar-initials {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
}

.show-quote-content {
    flex: 1;
}

.show-quote-speaker {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    display: block;
}

.show-quote-body {
    font-size: 18px;
    font-weight: 500;
    color: var(--text);
    line-height: 1.5;
    margin: 0;
    font-style: italic;
}

/* Quote metadata section */
.quote-metadata {
    padding: 16px 20px;
    border-top: 1px solid var(--border);
    background: var(--background, #f8f8f8);
    border-radius: 0 0 16px 16px;
}

.quote-metadata .quote-meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.quote-metadata .quote-meta-row:last-child {
    margin-bottom: 0;
}

.quote-metadata .quote-meta-row .mdi {
    font-size: 16px;
    color: var(--text-light);
    width: 20px;
}

/* Quote index card - conversation indicator */
.quote-conversation-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--text-secondary);
}

.quote-conversation-indicator .mdi {
    font-size: 14px;
}
