/* Modern Design System - Notion‑inspired light theme */
:root {
    /* Brand & accents - Notion colors */
    --primary: rgba(55, 53, 47, 0.9);
    --primary-dark: rgba(55, 53, 47, 1);
    --primary-light: rgba(55, 53, 47, 0.6);
    --danger: #ef4444;
    --danger-dark: #dc2626;
    --danger-color: #ef4444;
    --success: #10b981;
    --success-dark: #059669;
    --warning: #f59e0b;

    /* Surface colors – Notion white */
    --bg-primary: #ffffff;
    --bg-secondary: #ffffff;
    --bg-tertiary: rgba(55, 53, 47, 0.03);

    /* Typography - Notion text colors (darker for readability) */
    --text-primary: rgba(55, 53, 47, 0.95);
    --text-secondary: rgba(55, 53, 47, 0.85);
    --text-tertiary: rgba(55, 53, 47, 0.7);

    /* Borders & shadows – Notion style */
    --border: rgba(55, 53, 47, 0.09);
    --shadow-sm: rgba(15, 15, 15, 0.03) 0px 0px 0px 1px;
    --shadow: rgba(15, 15, 15, 0.05) 0px 0px 0px 1px, rgba(15, 15, 15, 0.1) 0px 3px 6px;
    --shadow-md: rgba(15, 15, 15, 0.05) 0px 0px 0px 1px, rgba(15, 15, 15, 0.1) 0px 3px 6px, rgba(15, 15, 15, 0.2) 0px 9px 24px;
    --shadow-lg: rgba(15, 15, 15, 0.05) 0px 0px 0px 1px, rgba(15, 15, 15, 0.1) 0px 3px 6px, rgba(15, 15, 15, 0.2) 0px 9px 24px;
    --shadow-xl: rgba(15, 15, 15, 0.05) 0px 0px 0px 1px, rgba(15, 15, 15, 0.1) 0px 3px 6px, rgba(15, 15, 15, 0.2) 0px 9px 24px;

    /* Radii - Notion minimal */
    --radius: 3px;
    --radius-lg: 3px;
    --radius-xl: 3px;
}

/* Reset */
.mran-container * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Keep normal page scroll on desktop while plugin is visible */
@media (min-width: 1025px) {
    body:has(.mran-container) {
        overflow: hidden;
        height: 100vh;
        display: block;
    }
}

.mran-container {
    font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, "Apple Color Emoji", Arial, sans-serif, "Segoe UI Emoji", "Segoe UI Symbol";
    background: #ffffff;
    padding: 0;
    margin: 0;
    color: rgba(55, 53, 47, 0.9);
    line-height: 1.5;
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: row;
    height: 100vh;
    box-sizing: border-box;
    overflow: hidden;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

/* Sidebar - ChatGPT Style */
.mran-sidebar {
    width: 260px;
    min-width: 260px;
    background: #f7f7f5;
    border-right: 1px solid rgba(55, 53, 47, 0.09);
    display: flex;
    flex-direction: column;
    transition: width 0.2s ease, min-width 0.2s ease;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1000;
    overflow-y: auto;
    overflow-x: hidden;
    height: 100vh;
    flex-shrink: 0;
}


.mran-sidebar.collapsed {
    width: 60px;
    min-width: 60px;
}

.mran-sidebar.collapsed ~ .mran-main-content {
    margin-left: 60px;
}

.mran-sidebar-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-bottom: 1px solid rgba(55, 53, 47, 0.09);
    flex-shrink: 0;
    justify-content: flex-start;
}

.mran-sidebar.collapsed .mran-sidebar-header {
    justify-content: center;
    padding: 0.75rem 0;
}

.mran-sidebar-toggle {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: rgba(55, 53, 47, 0.7);
    transition: all 0.15s ease;
    flex-shrink: 0;
    padding: 0;
}

.mran-sidebar-toggle:hover {
    background: rgba(55, 53, 47, 0.06);
    color: rgba(55, 53, 47, 0.9);
}

.mran-sidebar-toggle svg {
    width: 20px;
    height: 20px;
}

.mran-sidebar-logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    flex: 1;
    min-width: 0;
}

.mran-sidebar.collapsed .mran-sidebar-logo {
    display: none;
}

.mran-sidebar-logo svg {
    width: 24px;
    height: 24px;
    color: rgba(55, 53, 47, 0.9);
    flex-shrink: 0;
}

.mran-sidebar-logo-text {
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(55, 53, 47, 0.9);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: opacity 0.2s ease, width 0.2s ease;
    opacity: 1;
    width: auto;
}

.mran-sidebar.collapsed .mran-sidebar-logo-text {
    opacity: 0;
    width: 0;
}

.mran-sidebar-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0.5rem 0;
}

.mran-sidebar-content::-webkit-scrollbar {
    width: 6px;
}

.mran-sidebar-content::-webkit-scrollbar-track {
    background: transparent;
}

.mran-sidebar-content::-webkit-scrollbar-thumb {
    background: rgba(55, 53, 47, 0.2);
    border-radius: 3px;
}

.mran-sidebar-content::-webkit-scrollbar-thumb:hover {
    background: rgba(55, 53, 47, 0.3);
}

.mran-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    padding: 0 0.5rem;
}

.mran-nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    border-radius: 6px;
    color: rgba(55, 53, 47, 0.7);
    text-decoration: none;
    transition: all 0.15s ease;
    font-size: 0.875rem;
    font-weight: 400;
    white-space: nowrap;
}

.mran-nav-item:hover {
    background: rgba(55, 53, 47, 0.06);
    color: rgba(55, 53, 47, 0.9);
}

.mran-nav-item.active {
    background: rgba(55, 53, 47, 0.08);
    color: rgba(55, 53, 47, 0.95);
    font-weight: 500;
}

.mran-nav-item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.mran-nav-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: opacity 0.2s ease, width 0.2s ease;
    opacity: 1;
    width: auto;
}

.mran-sidebar.collapsed .mran-nav-text {
    opacity: 0;
    width: 0;
}

.mran-sidebar-footer {
    border-top: 1px solid rgba(55, 53, 47, 0.09);
    padding: 0.75rem;
    flex-shrink: 0;
}

.mran-sidebar.collapsed .mran-sidebar-footer {
    padding: 0.75rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mran-user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: 6px;
    margin-bottom: 0.5rem;
    transition: background 0.15s ease;
}

.mran-sidebar.collapsed .mran-user-info {
    justify-content: center;
    padding: 0.5rem 0;
    margin: 0 auto 0.5rem auto;
    width: auto;
    gap: 0;
}

.mran-user-info:hover {
    background: rgba(55, 53, 47, 0.04);
}

.mran-sidebar.collapsed .mran-user-info:hover {
    padding: 0.5rem 0;
}

.mran-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: rgba(55, 53, 47, 0.1);
}

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

.mran-user-details {
    flex: 1;
    min-width: 0;
    transition: opacity 0.2s ease, width 0.2s ease;
    opacity: 1;
    width: auto;
}

.mran-sidebar.collapsed .mran-user-details {
    opacity: 0;
    width: 0;
}

.mran-user-name {
    font-size: 0.8125rem;
    font-weight: 500;
    color: rgba(55, 53, 47, 0.9);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mran-user-email {
    font-size: 0.75rem;
    color: rgba(55, 53, 47, 0.6);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mran-logout-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.625rem 0.75rem;
    border: none;
    background: transparent;
    border-radius: 6px;
    color: rgba(55, 53, 47, 0.7);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.mran-sidebar.collapsed .mran-logout-btn {
    justify-content: center;
    padding: 0.625rem 0;
    width: auto;
    margin: 0 auto;
    gap: 0;
}

.mran-sidebar.collapsed .mran-logout-btn:hover {
    padding: 0.625rem 0;
    width: auto;
    margin: 0 auto;
}

.mran-logout-btn:hover {
    background: rgba(55, 53, 47, 0.06);
    color: rgba(55, 53, 47, 0.9);
}

.mran-logout-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.mran-logout-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: opacity 0.2s ease, width 0.2s ease;
    opacity: 1;
    width: auto;
}

.mran-sidebar.collapsed .mran-logout-text {
    opacity: 0;
    width: 0;
}

/* Sidebar Overlay (Mobile) */
.mran-sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.mran-sidebar-overlay.active {
    display: block;
    opacity: 1;
}

.mran-main-content {
    display: flex;
    gap: 0;
    flex: 1;
    height: 100vh;
    overflow: hidden;
    align-items: stretch;
    transition: margin-left 0.2s ease;
    position: relative;
    margin-left: 260px;
    z-index: 1;
}

/* Cards - Notion Style */
.mran-card {
    background: #ffffff;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    margin-bottom: 0;
    border: none;
    transition: none;
    box-sizing: border-box;
}

/* Recorder Card - Fixed Left Side */
.mran-recorder-card {
    flex: 0 0 420px;
    width: 420px;
    max-width: 420px;
    padding: 1.5rem;
    margin: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
    border-right: 1px solid rgba(55, 53, 47, 0.09);
    position: relative;
    z-index: 5;
}

.mran-recorder-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
    justify-content: center;
    min-height: 0;
    overflow: visible;
    position: relative;
    z-index: 5;
}

.mran-recorder-circle {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    isolation: isolate;
}

.mran-recorder-inner {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
}

.mran-record-btn {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: none;
    background: var(--danger);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 22;
}

.mran-record-btn:hover:not(:disabled) {
    background: var(--danger-dark);
}

.mran-record-btn:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: var(--shadow-xl);
}

.mran-record-btn:active:not(:disabled) {
    transform: scale(0.95);
}

.mran-record-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.mran-record-icon {
    width: 48px;
    height: 48px;
    transition: transform 0.3s;
    position: relative;
    z-index: 23;
}

.mran-record-btn.recording .mran-record-icon {
    animation: pulse-icon 1.5s ease-in-out infinite;
}

.mran-recording-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--danger);
    opacity: 0;
    z-index: 21;
    top: 0;
    left: 0;
    pointer-events: none;
}

.mran-recording-pulse.active {
    opacity: 0.4;
    animation: pulse-ring 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 0.4;
    }
    50% {
        transform: scale(1.06);
        opacity: 0.2;
    }
    100% {
        transform: scale(1.1125);
        opacity: 0;
    }
}

@keyframes pulse-icon {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Controls */
.mran-recorder-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.mran-control-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(55, 53, 47, 0.16);
    background: #ffffff;
    color: rgba(55, 53, 47, 0.8);
    border-radius: 3px;
    font-size: 0.875rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.1s ease;
}

.mran-control-btn:hover:not(:disabled) {
    background: rgba(55, 53, 47, 0.06);
    border-color: rgba(55, 53, 47, 0.2);
    color: rgba(55, 53, 47, 0.9);
}

.mran-control-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.mran-control-btn svg {
    width: 18px;
    height: 18px;
}

.mran-stop-btn {
    border-color: rgba(239, 68, 68, 0.3);
    color: rgba(239, 68, 68, 0.8);
}

.mran-stop-btn:hover:not(:disabled) {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.4);
}

/* Status */
.mran-recording-status {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
}

.mran-status-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.mran-status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--success);
    transition: all 0.3s;
}

.mran-status-indicator.recording {
    background: var(--danger);
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.2);
    animation: pulse-dot 1.5s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

.mran-status-text {
    font-size: 0.875rem;
    color: rgba(55, 53, 47, 0.8);
    font-weight: 400;
}

.mran-timer {
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
    font-size: 1.25rem;
    font-weight: 500;
    color: rgba(55, 53, 47, 0.9);
    letter-spacing: 0.02em;
}

/* Audio Preview */
.mran-audio-preview {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    width: 100%;
    flex-shrink: 0;
    overflow: hidden;
}

.mran-preview-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.mran-audio-wrapper {
    margin-bottom: 1.5rem;
}

.mran-audio-wrapper audio {
    width: 100%;
    border-radius: 3px;
    outline: none;
    border: 1px solid rgba(55, 53, 47, 0.09);
}

.mran-preview-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* File Upload Section */
.mran-upload-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(55, 53, 47, 0.09);
    width: 100%;
    text-align: center;
}

.mran-upload-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin-bottom: 1.5rem;
    color: rgba(55, 53, 47, 0.7);
    font-size: 0.8125rem;
    font-weight: 400;
}

.mran-upload-divider::before,
.mran-upload-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(55, 53, 47, 0.09);
}

.mran-upload-divider span {
    padding: 0 1rem;
}

.mran-file-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #ffffff;
    border: 1px dashed rgba(55, 53, 47, 0.16);
    border-radius: 3px;
    color: rgba(55, 53, 47, 0.85);
    font-size: 0.875rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.1s ease;
}

.mran-file-upload-btn:hover {
    background: rgba(55, 53, 47, 0.03);
    border-color: rgba(55, 53, 47, 0.24);
    color: rgba(55, 53, 47, 0.95);
}

.mran-file-upload-btn svg {
    width: 20px;
    height: 20px;
}

.mran-file-hint {
    margin-top: 0.75rem;
    font-size: 0.75rem;
    color: rgba(55, 53, 47, 0.7);
    font-weight: 400;
}

.mran-action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border: none;
    border-radius: var(--radius);
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.mran-action-btn svg {
    width: 18px;
    height: 18px;
}

.mran-upload-btn {
    background: linear-gradient(135deg, var(--success) 0%, var(--success-dark) 100%);
    color: white;
    box-shadow: var(--shadow);
}

.mran-upload-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.mran-discard-btn {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.mran-discard-btn:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

/* Progress */
.mran-upload-progress {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    width: 100%;
    flex-shrink: 0;
    overflow: hidden;
}

.mran-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.mran-progress-text {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.mran-progress-percent {
    font-size: 0.9375rem;
    color: var(--text-primary);
    font-weight: 600;
}

.mran-progress-bar {
    width: 100%;
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    overflow: hidden;
}

.mran-progress-fill {
    height: 100%;
    background: var(--text-primary);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 4px;
}

/* List Card - Scrollable Right Side */
.mran-list-card {
    flex: 1;
    min-width: 0;
    padding: 1.5rem;
    margin: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
}

.mran-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.25rem;
    gap: 1rem;
    flex-shrink: 0;
    min-height: 0;
}

.mran-section-header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.mran-mobile-menu-toggle {
    display: none;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    color: rgba(55, 53, 47, 0.7);
    transition: all 0.15s ease;
    padding: 0;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
}

.mran-mobile-menu-toggle:hover {
    background: rgba(55, 53, 47, 0.06);
    color: rgba(55, 53, 47, 0.9);
}

.mran-mobile-menu-toggle svg {
    width: 22px;
    height: 22px;
}

.mran-section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.mran-section-subtitle {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.mran-refresh-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.1s ease;
    color: rgba(55, 53, 47, 0.5);
    flex-shrink: 0;
}

.mran-refresh-btn:hover {
    background: rgba(55, 53, 47, 0.06);
    color: rgba(55, 53, 47, 0.8);
}

.mran-refresh-btn svg {
    width: 20px;
    height: 20px;
}

/* Recordings List */
.mran-recordings-list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
    padding-right: 0.5rem;
    box-sizing: border-box;
}

.mran-recordings-list::-webkit-scrollbar {
    width: 6px;
}

.mran-recordings-list::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 3px;
}

.mran-recordings-list::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.6);
    border-radius: 3px;
}

.mran-recordings-list::-webkit-scrollbar-thumb:hover {
    background: var(--text-tertiary);
}

.mran-recording-item {
    padding: 0.875rem 1rem;
    border: none;
    border-radius: 0;
    background: #ffffff;
    border-bottom: 1px solid rgba(55, 53, 47, 0.09);
    transition: background-color 0.1s ease;
    cursor: pointer;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
}

.mran-recording-item:hover {
    background: rgba(55, 53, 47, 0.03);
    border-bottom-color: rgba(55, 53, 47, 0.09);
    box-shadow: none;
}

.mran-recording-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.mran-recording-item-header > div:first-child {
    flex: 1;
    min-width: 0;
}

.mran-recording-item-title {
    font-weight: 500;
    color: rgba(55, 53, 47, 0.9);
    margin-bottom: 0.25rem;
    font-size: 0.9375rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.5;
}

.mran-recording-item-date {
    font-size: 0.8125rem;
    color: rgba(55, 53, 47, 0.7);
    font-weight: 400;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.mran-date-label {
    font-weight: 500;
    color: rgba(55, 53, 47, 0.6);
    font-size: 0.75rem;
}

.mran-recording-item-status {
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    font-size: 0.6875rem;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
    align-self: flex-start;
    background: rgba(55, 53, 47, 0.08);
    border: none;
}

.mran-status-uploaded {
    background: rgba(55, 53, 47, 0.08);
    color: rgba(55, 53, 47, 0.7);
}

.mran-status-transcribing {
    background: rgba(55, 53, 47, 0.08);
    color: rgba(55, 53, 47, 0.7);
}

.mran-status-transcribed {
    background: rgba(55, 53, 47, 0.08);
    color: rgba(55, 53, 47, 0.7);
}

.mran-status-summarizing {
    background: rgba(55, 53, 47, 0.08);
    color: rgba(55, 53, 47, 0.7);
}

.mran-status-summarized {
    background: rgba(55, 53, 47, 0.08);
    color: rgba(55, 53, 47, 0.7);
}

.mran-status-error {
    background: rgba(239, 68, 68, 0.1);
    color: rgba(239, 68, 68, 0.8);
}

/* Status wrapper for multiple badges */
.mran-recording-item-status-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    align-items: center;
}

/* Additional status badges */
.mran-status-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    font-size: 0.6875rem;
    font-weight: 500;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
}

.mran-status-regenerated {
    background: rgba(34, 197, 94, 0.1);
    color: rgba(34, 197, 94, 0.9);
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.mran-status-deleted {
    background: rgba(239, 68, 68, 0.1);
    color: rgba(239, 68, 68, 0.9);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.mran-status-api-limit {
    background: rgba(251, 191, 36, 0.1);
    color: rgba(251, 191, 36, 0.9);
    border: 1px solid rgba(251, 191, 36, 0.2);
}

.mran-recording-item-duration {
    display: inline-flex;
    align-items: center;
}

.mran-duration-label {
    font-size: 0.75rem;
    color: rgba(55, 53, 47, 0.7);
    margin-right: 0.25rem;
}

.mran-duration-value {
    font-size: 0.75rem;
    color: rgba(55, 53, 47, 0.85);
    font-weight: 500;
}

.mran-recording-item-preview {
    margin-top: 0.75rem;
    padding-top: 0;
}

.mran-recording-item-preview h4 {
    font-size: 0.6875rem;
    color: rgba(55, 53, 47, 0.7);
    margin-bottom: 0.5rem;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
}

.mran-recording-item-preview p {
    font-size: 0.8125rem;
    color: rgba(55, 53, 47, 0.85);
    line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: break-word;
    font-weight: 400;
}

/* Recording Item Actions */
.mran-recording-item {
    position: relative;
}

.mran-recording-item-actions {
    position: absolute;
    bottom: 0.75rem;
    right: 1rem;
    display: flex;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.mran-recording-item:hover .mran-recording-item-actions {
    opacity: 1;
}

.mran-action-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(55, 53, 47, 0.12);
    border-radius: 4px;
    background: #ffffff;
    color: rgba(55, 53, 47, 0.7);
    cursor: pointer;
    transition: all 0.15s ease;
    padding: 0;
    flex-shrink: 0;
}

.mran-action-btn:hover {
    background: rgba(55, 53, 47, 0.06);
    border-color: rgba(55, 53, 47, 0.2);
    color: rgba(55, 53, 47, 0.9);
}

.mran-action-btn:active {
    transform: scale(0.95);
}

.mran-action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.mran-action-btn.loading {
    pointer-events: none;
}

.mran-action-btn svg {
    width: 16px;
    height: 16px;
}

.mran-delete-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.mran-restore-btn:hover {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.mran-permanently-delete-btn:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.4);
    color: #ef4444;
}

/* Loading */
.mran-loading {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.mran-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--text-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Modal - Full Screen Grid Layout */
.mran-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.mran-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Prevent body scroll when modal is open */
body:has(.mran-modal.show) {
    overflow: hidden !important;
}

.mran-modal-backdrop {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(55, 53, 47, 0.4);
    backdrop-filter: blur(4px);
}

.mran-modal-content {
    position: relative;
    background: #ffffff;
    margin: 1.5rem;
    border-radius: 3px;
    width: calc(100% - 3rem);
    height: calc(100% - 3rem);
    max-width: 1800px;
    max-height: calc(100vh - 3rem);
    overflow: hidden;
    box-shadow: rgba(15, 15, 15, 0.05) 0px 0px 0px 1px, rgba(15, 15, 15, 0.1) 0px 3px 6px, rgba(15, 15, 15, 0.2) 0px 9px 24px;
    z-index: 1;
    display: flex;
    flex-direction: column;
}

.mran-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.3rem;
    background: #ffffff;
    border-bottom: 1px solid rgba(55, 53, 47, 0.09);
    flex-shrink: 0;
}

.mran-modal-header h2 {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(55, 53, 47, 0.9);
    letter-spacing: 0;
}

.mran-modal-close {
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.1s ease;
    color: rgba(55, 53, 47, 0.5);
}

.mran-modal-close:hover {
    background: rgba(55, 53, 47, 0.06);
    color: rgba(55, 53, 47, 0.8);
}

.mran-modal-close svg {
    width: 20px;
    height: 20px;
}

.mran-modal-body {
    padding: 0;
    overflow: hidden;
    flex: 1;
    display: flex;
    background: #ffffff;
}

/* 6-Panel Grid Layout - Notion Style */
.mran-grid-layout {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 0.875rem;
    width: 100%;
    height: 100%;
}

.mran-grid-panel {
    background: #ffffff;
    border-radius: 0;
    border: none;
    border-right: 1px solid rgba(55, 53, 47, 0.09);
    border-bottom: 1px solid rgba(55, 53, 47, 0.09);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
    transition: background-color 0.1s ease;
}

.mran-grid-panel:hover {
    background: rgba(55, 53, 47, 0.02);
}

/* Remove right border from last column (3rd, 6th panels) */
.mran-grid-panel:nth-child(3n) {
    border-right: none;
}

/* Remove bottom border from last row (4th, 5th, 6th panels) */
.mran-grid-panel:nth-child(4),
.mran-grid-panel:nth-child(5),
.mran-grid-panel:nth-child(6) {
    border-bottom: none;
}

.mran-panel-header {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.3rem 0.875rem;
    background: #ffffff;
    border-bottom: 1px solid rgba(55, 53, 47, 0.09);
    flex-shrink: 0;
}

.mran-panel-icon {
    width: 14px;
    height: 14px;
    color: rgba(55, 53, 47, 0.65);
    flex-shrink: 0;
    opacity: 1;
}

.mran-panel-header span {
    font-size: 0.6875rem;
    font-weight: 500;
    color: rgba(55, 53, 47, 0.75);
    text-transform: none;
    letter-spacing: 0;
}

.mran-panel-content {
    padding: 0.875rem 1rem 1rem;
    flex: 1;
    overflow: hidden;
    background: #ffffff;
}

.mran-panel-scroll {
    overflow-y: auto;
}

.mran-panel-scroll::-webkit-scrollbar {
    width: 8px;
}

.mran-panel-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.mran-panel-scroll::-webkit-scrollbar-thumb {
    background: rgba(55, 53, 47, 0.12);
    border-radius: 4px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.mran-panel-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(55, 53, 47, 0.2);
    background-clip: padding-box;
}

/* Recording Info Panel - Notion Style */
.mran-recording-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(55, 53, 47, 0.9);
    margin-bottom: 0.875rem;
    line-height: 1.5;
}

.mran-recording-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 0.875rem;
}

.mran-meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.mran-meta-label {
    font-size: 0.625rem;
    font-weight: 500;
    color: rgba(55, 53, 47, 0.6);
    text-transform: none;
    letter-spacing: 0;
}

.mran-meta-value {
    font-size: 0.8125rem;
    color: rgba(55, 53, 47, 0.85);
    font-weight: 400;
    line-height: 1.5;
}

.mran-recording-tags {
    padding-top: 0.75rem;
    border-top: 1px solid rgba(55, 53, 47, 0.08);
    margin-bottom: 0.875rem;
}

.mran-audio-player {
    margin-top: auto;
    margin-bottom: 1rem;
}

.mran-audio-player audio {
    display: none;
}

.mran-player-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(55, 53, 47, 0.09);
    border-radius: 4px;
}

.mran-player-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(55, 53, 47, 0.8);
    transition: color 0.2s;
    flex-shrink: 0;
    border-radius: 4px;
}

.mran-player-btn:hover {
    color: rgba(55, 53, 47, 1);
    background: rgba(55, 53, 47, 0.05);
}

.mran-player-btn:active {
    transform: scale(0.95);
}

.mran-player-btn svg {
    width: 20px;
    height: 20px;
}

.mran-player-progress-wrapper {
    flex: 1;
    position: relative;
    height: 4px;
    background: rgba(55, 53, 47, 0.09);
    border-radius: 2px;
    cursor: pointer;
    transition: height 0.2s;
}

.mran-player-progress-wrapper:hover {
    height: 6px;
}

.mran-player-progress {
    position: relative;
    width: 100%;
    height: 100%;
}

.mran-player-progress-bar {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: rgba(55, 53, 47, 0.4);
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s linear;
}

.mran-player-progress-handle {
    position: absolute;
    top: 50%;
    left: 0%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: rgba(55, 53, 47, 0.8);
    border-radius: 50%;
    cursor: grab;
    transition: left 0.1s linear, width 0.2s, height 0.2s;
    opacity: 0;
}

.mran-player-progress-wrapper:hover .mran-player-progress-handle {
    opacity: 1;
}

.mran-player-progress-handle:active {
    cursor: grabbing;
    width: 14px;
    height: 14px;
}

.mran-player-time {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: rgba(55, 53, 47, 0.7);
    flex-shrink: 0;
    min-width: 80px;
    justify-content: flex-end;
    font-variant-numeric: tabular-nums;
}

.mran-player-separator {
    color: rgba(55, 53, 47, 0.4);
}

.mran-player-current-time,
.mran-player-duration {
    font-variant-numeric: tabular-nums;
}

.mran-recording-preview-modal {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(55, 53, 47, 0.09);
}

.mran-recording-preview-modal h4 {
    font-size: 0.6875rem;
    font-weight: 600;
    color: rgba(55, 53, 47, 0.7);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mran-recording-preview-modal p {
    font-size: 0.8125rem;
    color: rgba(55, 53, 47, 0.85);
    line-height: 1.6;
    margin: 0;
}

/* Grid List Styles - Notion Style */
.mran-grid-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.mran-grid-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.6;
    color: rgba(55, 53, 47, 0.85);
    padding: 0.125rem 0;
    font-weight: 400;
}

.mran-bullet {
    color: rgba(55, 53, 47, 0.6);
    font-weight: 400;
    flex-shrink: 0;
    width: 1.25rem;
    margin-top: 0.125rem;
    font-size: 0.875rem;
}

.mran-action-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.mran-action-meta {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.mran-assignee,
.mran-deadline {
    font-size: 0.75rem;
    padding: 0.125rem 0.5rem;
    border-radius: 4px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
}

.mran-empty-state {
    color: rgba(55, 53, 47, 0.65);
    font-size: 0.8125rem;
    font-style: normal;
    text-align: center;
    padding: 1.75rem 1rem;
    font-weight: 400;
}

.mran-plain-text {
    font-size: 0.875rem;
    line-height: 1.7;
    color: rgba(55, 53, 47, 0.85);
    white-space: pre-wrap;
    font-weight: 400;
}

/* Summary Panel - Notion Style */
.mran-grid-panel[data-panel="summary"] .mran-panel-content p {
    font-size: 0.875rem;
    line-height: 1.7;
    color: rgba(55, 53, 47, 0.85);
    font-weight: 400;
}

/* Transcript Panel - Notion Style */
.mran-grid-panel[data-panel="transcript"] .mran-transcript-list {
    gap: 0;
}

.mran-grid-panel[data-panel="transcript"] .mran-transcript-item {
    padding: 0.75rem 0;
    border-bottom-color: rgba(55, 53, 47, 0.09);
}

.mran-grid-panel[data-panel="transcript"] .mran-transcript-item:hover {
    background: rgba(55, 53, 47, 0.03);
}

.mran-grid-panel[data-panel="transcript"] .mran-transcript-speaker {
    font-size: 0.8125rem;
    color: rgba(55, 53, 47, 0.9);
    font-weight: 500;
}

.mran-grid-panel[data-panel="transcript"] .mran-transcript-time {
    font-size: 0.6875rem;
    color: rgba(55, 53, 47, 0.65);
}

.mran-grid-panel[data-panel="transcript"] .mran-transcript-text {
    font-size: 0.875rem;
    line-height: 1.7;
    color: rgba(55, 53, 47, 0.85);
    font-weight: 400;
}

/* Modal Responsive - Tablet */
@media (max-width: 1200px) {
    .mran-grid-layout {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }

    .mran-grid-panel {
        min-height: 200px;
        max-height: 300px;
    }

    .mran-grid-panel[data-panel="transcript"] {
        grid-column: span 2;
        max-height: 350px;
    }
}

/* Modal Responsive - Mobile */
@media (max-width: 768px) {
    .mran-modal-content {
        margin: 0;
        width: 100%;
        height: 100%;
        max-height: 100vh;
        border-radius: 0;
    }

    .mran-modal-body {
        padding: 0;
    }

    .mran-grid-layout {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        overflow-y: auto;
    }

    .mran-grid-panel {
        min-height: 150px;
        max-height: none;
    }

    .mran-grid-panel[data-panel="transcript"],
    .mran-grid-panel[data-panel="summary"] {
        grid-column: span 1;
        min-height: 250px;
    }

    .mran-panel-content {
        padding: 0.75rem;
    }

    .mran-recording-meta {
        grid-template-columns: 1fr 1fr;
    }

    .mran-recording-meta .mran-meta-item:last-child {
        grid-column: span 2;
    }
}

.mran-detail-section {
    margin-bottom: 2.5rem;
}

.mran-detail-section:last-child {
    margin-bottom: 0;
}

.mran-detail-section h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.mran-section-icon {
    width: 20px;
    height: 20px;
    color: var(--text-primary);
    flex-shrink: 0;
}

.mran-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.mran-detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mran-detail-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mran-detail-value {
    font-size: 0.9375rem;
    color: var(--text-primary);
    font-weight: 500;
}

.mran-detail-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.mran-detail-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.mran-detail-tags-row {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
    margin-top: 0.5rem;
}

.mran-detail-tags-row .mran-detail-label {
    flex-shrink: 0;
}

.mran-detail-tags-row .mran-tags-inline {
    flex: 1;
}

@media (max-width: 600px) {
    .mran-detail-grid-3 {
        grid-template-columns: 1fr 1fr;
    }
    
    .mran-detail-grid-3 .mran-detail-item:last-child {
        grid-column: span 2;
    }
}

@media (max-width: 400px) {
    .mran-detail-grid-3 {
        grid-template-columns: 1fr;
    }
    
    .mran-detail-grid-3 .mran-detail-item:last-child {
        grid-column: span 1;
    }
    
    .mran-detail-tags-row {
        flex-direction: column;
        gap: 0.5rem;
    }
}

.mran-detail-content {
    color: var(--text-secondary);
    line-height: 1.8;
}

.mran-detail-content p {
    color: var(--text-secondary);
    line-height: 1.8;
    white-space: pre-wrap;
    margin-bottom: 0;
    font-size: 0.9375rem;
}

.mran-detail-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mran-detail-list li {
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    transition: all 0.2s;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.mran-detail-list li:hover {
    background: var(--bg-tertiary);
    transform: translateX(4px);
}

.mran-list-icon {
    width: 18px;
    height: 18px;
    color: var(--text-primary);
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.mran-detail-list li span {
    flex: 1;
    color: var(--text-primary);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.mran-detail-section audio {
    width: 100%;
    margin-top: 1rem;
    border-radius: var(--radius);
}

/* Transcript with Speaker Separation - REMOVED (using minimalist design below) */

/* Responsive */
/* Sidebar Responsive */
@media (max-width: 1024px) {
    body:has(.mran-container) {
        overflow: auto;
        height: auto;
    }
    
    .mran-container {
        position: relative;
        height: auto;
        min-height: 100vh;
    }
    
    .mran-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        height: 100vh;
        z-index: 100;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .mran-sidebar.open {
        transform: translateX(0);
    }
    
    .mran-sidebar.collapsed {
        width: 260px;
        min-width: 260px;
    }
    
    .mran-sidebar.collapsed.open {
        transform: translateX(0);
    }
    
    .mran-sidebar.collapsed ~ .mran-main-content {
        margin-left: 0;
    }
    
    .mran-main-content {
        flex-direction: column;
        gap: 0;
        align-items: stretch;
        margin-left: 0;
        height: auto;
        min-height: 100vh;
    }
    
    .mran-sidebar-overlay {
        display: block;
    }
    
    .mran-mobile-menu-toggle {
        display: flex;
    }
    
    .mran-recorder-card {
        flex: 0 0 auto;
        width: 100%;
        max-width: 100%;
        height: auto;
        max-height: none;
        position: static;
        border-right: none;
        border-bottom: 1px solid rgba(55, 53, 47, 0.09);
    }

    .mran-list-card {
        height: auto;
        min-height: auto;
        max-height: none;
    }
}

@media (max-width: 768px) {
    body:has(.mran-container) {
        overflow: auto;
        height: auto;
    }

    .mran-container {
        padding: 0;
        height: auto;
        min-height: 100vh;
        max-height: none;
    }

    .mran-main-content {
        flex-direction: column;
        gap: 0;
        height: auto;
        align-items: stretch;
    }

    .mran-recorder-card {
        flex: 0 0 auto;
        width: 100%;
        max-width: 100%;
        padding: 1.25rem;
        max-height: none;
        position: static;
        border-right: none;
        border-bottom: 1px solid rgba(55, 53, 47, 0.09);
    }

    .mran-list-card {
        padding: 1.25rem;
        min-height: auto;
        max-height: none;
    }

    .mran-recording-item-title {
        font-size: 1rem;
    }

    .mran-recording-item-date {
        font-size: 0.8125rem;
    }

    .mran-upload-section {
        margin-top: 1.5rem;
        padding-top: 1.5rem;
    }

    .mran-file-upload-btn {
        width: 100%;
        justify-content: center;
    }

    .mran-recorder-circle {
        width: 120px;
        height: 120px;
    }

    .mran-record-btn {
        width: 80px;
        height: 80px;
    }

    .mran-record-icon {
        width: 32px;
        height: 32px;
    }

    .mran-recorder-controls {
        flex-direction: column;
        width: 100%;
    }

    .mran-control-btn {
        width: 100%;
        justify-content: center;
    }

    .mran-preview-actions {
        flex-direction: column;
    }

    .mran-action-btn {
        width: 100%;
        justify-content: center;
    }

    .mran-section-header {
        flex-direction: column;
    }

    .mran-modal-content {
        margin: 1rem;
        max-height: 95vh;
    }

    .mran-modal-header {
        padding: 0.3rem;
    }
    
    .mran-modal-body {
        padding: 0;
    }

    .mran-card {
        padding: 1.5rem;
    }

    .mran-detail-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .mran-recorder-circle {
        width: 100px;
        height: 100px;
    }

    .mran-record-btn {
        width: 70px;
        height: 70px;
    }

    .mran-record-icon {
        width: 28px;
        height: 28px;
    }

    .mran-timer {
        font-size: 1.25rem;
    }
}

/* ===== Tags Styles ===== */
.mran-tag-inline {
    color: var(--text-secondary);
    font-size: 0.8125rem;
    cursor: pointer;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.mran-tag-inline:hover {
    color: var(--text-primary);
    text-decoration: underline;
}

.mran-tag-separator {
    color: var(--text-tertiary);
}

.mran-tags-inline {
    display: inline;
}

.mran-meta-separator {
    color: var(--text-tertiary);
    margin: 0 0.375rem;
}

.mran-recording-item-meta {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.5;
    gap: 0;
}

.mran-recording-item-size {
    color: var(--text-secondary);
}

.mran-detail-item-full {
    grid-column: 1 / -1;
}

/* Filter Header - Compact */
.mran-filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.75rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 0.75rem;
    gap: 0.5rem;
}

.mran-filter-label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-primary);
}

.mran-clear-filter {
    padding: 0.25rem 0.5rem;
    background: transparent;
    border: none;
    border-radius: var(--radius);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.mran-clear-filter:hover {
    background: var(--bg-primary);
    color: var(--text-primary);
}

@media (max-width: 480px) {
    .mran-recording-item-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.125rem;
    }

    .mran-meta-separator {
        display: none;
    }

    .mran-tags-inline {
        display: block;
    }
}

/* Login Required Screen */
.mran-login-required {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    padding: 3rem;
    text-align: center;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 400px;
    margin: 2rem auto;
}

.mran-login-icon {
    width: 80px;
    height: 80px;
    background: var(--bg-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.mran-login-icon svg {
    width: 40px;
    height: 40px;
    color: var(--text-secondary);
}

.mran-login-required h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.mran-login-required p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.mran-login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all 0.2s;
}

.mran-login-btn:hover {
    background: var(--primary-dark);
    color: #fff;
    transform: translateY(-1px);
}

/* Minimalist Transcript Design - No boxes, clean lines */
.mran-transcript-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    margin: 0;
}

.mran-transcript-item {
    padding: 0.875rem 0;
    border: none;
    background: transparent;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    transition: background 0.15s ease;
}

.mran-transcript-item:last-child {
    border-bottom: none;
}

.mran-transcript-item:hover {
    background: var(--bg-secondary);
}

.mran-transcript-header {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.mran-transcript-speaker {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--primary);
    line-height: 1.4;
}

.mran-transcript-time {
    font-size: 0.6875rem;
    color: var(--text-tertiary);
    font-weight: 400;
    font-family: 'Courier New', monospace;
    margin-left: 0.25rem;
}

.mran-transcript-text {
    font-size: 0.875rem;
    line-height: 1.7;
    color: var(--text-primary);
    padding-left: 0;
}

/* Todo/Action Items with Checkboxes - Notion Style */
.mran-todo-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.mran-todo-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding-bottom: 0.875rem;
    border-bottom: 1px solid rgba(55, 53, 47, 0.08);
    transition: opacity 0.15s ease;
}

.mran-todo-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}


.mran-todo-item.completed {
    opacity: 0.5;
}

.mran-todo-item.completed .mran-todo-text {
    text-decoration: line-through;
    color: rgba(55, 53, 47, 0.5);
}

.mran-todo-checkbox {
    width: 18px;
    height: 18px;
    min-width: 18px;
    border: 1.5px solid rgba(55, 53, 47, 0.3);
    border-radius: 3px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    margin-top: 0.0625rem;
    flex-shrink: 0;
    background: #ffffff;
    position: relative;
    overflow: visible;
    align-self: flex-start;
}

.mran-todo-checkbox:hover {
    border-color: rgba(55, 53, 47, 0.5);
    background: rgba(55, 53, 47, 0.03);
}

.mran-todo-checkbox.checked {
    background: rgba(55, 53, 47, 0.9);
    border-color: rgba(55, 53, 47, 0.9);
}

.mran-todo-checkbox.checked svg {
    display: block;
    position: absolute;
    z-index: 2;
    width: 16px;
    height: 16px;
}

.mran-todo-checkbox svg {
    display: none;
    width: 16px;
    height: 16px;
    color: #ffffff;
    stroke-width: 3;
}

.mran-todo-content {
    flex: 1;
    padding-top: 0;
    margin-top: 0;
}

.mran-todo-text {
    font-size: 0.875rem;
    line-height: 1.7;
    color: rgba(55, 53, 47, 0.9);
    font-weight: 400;
    display: block;
    margin: 0;
    padding: 0;
}

.mran-todo-meta {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.375rem;
    flex-wrap: wrap;
}

.mran-todo-assignee,
.mran-todo-deadline {
    font-size: 0.6875rem;
    padding: 0.125rem 0.5rem;
    border-radius: 3px;
    background: rgba(55, 53, 47, 0.06);
    color: rgba(55, 53, 47, 0.6);
    font-weight: 400;
}

/* Summary with Sections - Notion Style */
.mran-summary-sections {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.mran-summary-section {
    padding-bottom: 0.875rem;
    border-bottom: 1px solid rgba(55, 53, 47, 0.08);
}

.mran-summary-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.mran-summary-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(55, 53, 47, 0.95);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mran-summary-title::before {
    content: '';
    width: 1.5px;
    height: 14px;
    background: rgba(55, 53, 47, 0.3);
    border-radius: 1px;
    flex-shrink: 0;
}

.mran-summary-percentage {
    font-size: 0.75rem;
    color: rgba(55, 53, 47, 0.9);
    font-weight: 600;
    margin-left: auto;
}

.mran-summary-content {
    font-size: 0.875rem;
    line-height: 1.7;
    color: rgba(55, 53, 47, 0.85);
    font-weight: 400;
}
