/* ═════════════════════════════════════════════════════════════════════
   LEGAL-FIRAQ AUDIO WORKSPACE (ChimeNote 1:1 Layout)
   ═════════════════════════════════════════════════════════════════════ */

.chime-layout {
    position: fixed;
    inset: 0;
    z-index: 50000;
    display: flex;
    background: #140b07;
    color: #ffffff;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

/* ════ COLUMN 1: LEFT SIDEBAR ════ */
.chime-sidebar {
    width: 220px;
    min-width: 220px;
    max-width: 220px;
    background: #190e09;
    border-right: 1px solid rgba(184, 134, 11, 0.2);
    display: flex;
    flex-direction: column;
    padding: 24px 16px;
    user-select: none;
    box-sizing: border-box;
}

.chime-brand {
    margin-bottom: 24px;
}

.chime-logo-text {
    font-size: 19px;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--primary, #b8860b);
    display: flex;
    align-items: center;
    gap: 8px;
}

.chime-audio-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(184, 134, 11, 0.2);
    color: var(--primary, #b8860b);
    font-size: 10px;
}

.chime-brand-sub {
    font-size: 11px;
    color: rgba(245, 245, 220, 0.5);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Primary Import Button */
.chime-import-btn {
    width: 100%;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(74, 44, 28, 0.8) 0%, rgba(50, 27, 17, 0.95) 100%);
    border: 1px solid rgba(184, 134, 11, 0.35);
    border-radius: 10px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
    transition: all 0.2s ease;
    margin-bottom: 28px;
}

.chime-import-btn:hover {
    background: linear-gradient(135deg, rgba(94, 56, 36, 0.9) 0%, rgba(70, 38, 24, 0.98) 100%);
    border-color: var(--primary, #b8860b);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(184, 134, 11, 0.2);
}

.chime-import-btn i {
    font-size: 14px;
    color: var(--primary, #b8860b);
}

/* Nav Menu */
.chime-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.chime-nav-item {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: rgba(245, 245, 220, 0.65);
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: left;
}

.chime-nav-label {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chime-nav-label i {
    width: 16px;
    text-align: center;
    font-size: 14px;
}

.chime-nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

.chime-nav-item.active {
    background: rgba(184, 134, 11, 0.15);
    color: var(--primary, #b8860b);
    font-weight: 600;
}

.chime-badge {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(245, 245, 220, 0.8);
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
}

.chime-badge.tier-tag {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.chime-nav-divider {
    height: 1px;
    background: rgba(184, 134, 11, 0.15);
    margin: 16px 0;
}

/* User Profile Footer */
.chime-user-footer {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid rgba(184, 134, 11, 0.15);
}

.chime-user-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s;
}

.chime-user-card:hover {
    background: rgba(255, 255, 255, 0.05);
}

.chime-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(184, 134, 11, 0.2);
    border: 1px solid rgba(184, 134, 11, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary, #b8860b);
    font-size: 13px;
}

.chime-user-info {
    flex: 1;
    overflow: hidden;
}

.chime-username {
    font-size: 12.5px;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chime-user-role {
    font-size: 10.5px;
    color: rgba(245, 245, 220, 0.5);
}

.chime-user-chevron {
    font-size: 11px;
    color: rgba(245, 245, 220, 0.3);
}

.chime-feedback-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: none;
    color: rgba(245, 245, 220, 0.55);
    font-size: 12px;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 6px;
    transition: color 0.15s;
}

.chime-feedback-btn:hover {
    color: var(--primary, #b8860b);
}

/* ════ COLUMN 2: RECORDINGS DRAWER ════ */
.chime-drawer {
    width: 300px;
    min-width: 300px;
    max-width: 300px;
    background: #1e110a;
    border-right: 1px solid rgba(184, 134, 11, 0.18);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-sizing: border-box;
}

.chime-drawer-header {
    height: 60px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(184, 134, 11, 0.12);
}

.chime-drawer-title {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.chime-drawer-title i {
    color: var(--primary, #b8860b);
}

.chime-icon-btn {
    background: transparent;
    border: none;
    color: rgba(245, 245, 220, 0.6);
    font-size: 14px;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    transition: all 0.15s;
}

.chime-icon-btn:hover {
    color: var(--primary, #b8860b);
    background: rgba(255, 255, 255, 0.05);
}

.chime-search-bar {
    padding: 12px 16px;
    position: relative;
    border-bottom: 1px solid rgba(184, 134, 11, 0.1);
}

.chime-search-bar i {
    position: absolute;
    left: 28px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: rgba(245, 245, 220, 0.4);
}

.chime-search-bar input {
    width: 100%;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(184, 134, 11, 0.2);
    border-radius: 8px;
    padding: 8px 12px 8px 32px;
    color: #ffffff;
    font-size: 12.5px;
    outline: none;
    box-sizing: border-box;
}

.chime-search-bar input:focus {
    border-color: var(--primary, #b8860b);
}

.chime-doc-list {
    flex: 1;
    overflow-y: auto;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Audio Document Card */
.chime-doc-card {
    background: rgba(74, 44, 28, 0.35);
    border: 1px solid rgba(184, 134, 11, 0.18);
    border-radius: 12px;
    padding: 14px 16px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.chime-doc-card:hover {
    background: rgba(74, 44, 28, 0.6);
    border-color: rgba(184, 134, 11, 0.4);
    transform: translateY(-1px);
}

.chime-doc-card.active {
    background: rgba(184, 134, 11, 0.18);
    border-color: var(--primary, #b8860b);
    box-shadow: 0 0 20px rgba(184, 134, 11, 0.18);
}

.chime-card-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chime-card-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(184, 134, 11, 0.15);
    color: var(--primary, #b8860b);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
}

.chime-card-name {
    font-size: 13.5px;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.chime-card-sub-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    color: rgba(245, 245, 220, 0.55);
}

.chime-card-duration {
    background: rgba(0, 0, 0, 0.4);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    color: var(--primary, #b8860b);
}

/* Empty State (Identical 1:1 to Screenshot 2) */
.chime-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
    color: rgba(245, 245, 220, 0.4);
}

.chime-empty-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    opacity: 0.45;
}

.chime-empty-text {
    font-size: 13.5px;
    font-weight: 500;
}

/* ════ COLUMN 3: DETAILED AUDIO WORKSPACE ════ */
.chime-workspace {
    flex: 1;
    background: #160c08;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    height: 100vh;
    box-sizing: border-box;
}

.chime-work-header {
    height: 70px;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(184, 134, 11, 0.15);
    background: #1a0f0a;
}

.chime-work-title-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
}

.chime-mobile-back {
    display: none;
    background: transparent;
    border: none;
    color: var(--primary, #b8860b);
    font-size: 20px;
    cursor: pointer;
}

.chime-audio-title {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    outline: none;
    border-bottom: 1px dashed transparent;
    padding-bottom: 2px;
}

.chime-audio-title:focus {
    border-bottom-color: var(--primary, #b8860b);
}

.chime-audio-sub {
    font-size: 11.5px;
    color: rgba(245, 245, 220, 0.5);
    margin-top: 3px;
}

.chime-work-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chime-tier-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.35);
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 600;
    color: #34d399;
}

.tier-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
}

.chime-action-btn {
    padding: 8px 14px;
    font-size: 12.5px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 8px;
}

/* Audio Player Bar */
.chime-player-bar {
    margin: 24px 32px 16px;
    padding: 16px 24px;
    background: linear-gradient(135deg, rgba(60, 33, 21, 0.95) 0%, rgba(36, 18, 12, 0.98) 100%);
    border: 1px solid rgba(184, 134, 11, 0.35);
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    gap: 20px;
}

.chime-player-controls {
    display: flex;
    align-items: center;
    gap: 14px;
}

.chime-play-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
    border: none;
    color: #190e09;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(184, 134, 11, 0.45);
    transition: transform 0.15s, box-shadow 0.15s;
}

.chime-play-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(184, 134, 11, 0.6);
}

.chime-skip-btn {
    background: transparent;
    border: none;
    color: rgba(245, 245, 220, 0.7);
    font-size: 15px;
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6px;
    transition: color 0.15s;
}

.chime-skip-btn:hover {
    color: var(--primary, #b8860b);
}

.skip-sec {
    font-size: 9px;
    font-weight: 700;
    margin-top: 2px;
}

.chime-time-pill {
    font-size: 12px;
    font-family: monospace;
    color: rgba(245, 245, 220, 0.8);
    background: rgba(0, 0, 0, 0.4);
    padding: 4px 10px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.chime-time-divider {
    color: rgba(245, 245, 220, 0.4);
}

/* Scrubber / Waveform */
.chime-scrubber-wrap {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    height: 40px;
}

.chime-waveform {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    gap: 3px;
    opacity: 0.65;
    pointer-events: none;
}

.wave-bar {
    flex: 1;
    background: rgba(184, 134, 11, 0.35);
    border-radius: 2px;
    min-height: 4px;
    transition: background 0.1s;
}

.wave-bar.played {
    background: var(--primary, #b8860b);
}

.chime-progress-slider {
    position: relative;
    width: 100%;
    z-index: 2;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    height: 40px;
    cursor: pointer;
    margin: 0;
}

.chime-progress-slider::-webkit-slider-runnable-track {
    height: 4px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
}

.chime-progress-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #d4af37;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.8);
    cursor: pointer;
    margin-top: -5px;
    transition: transform 0.1s;
}

.chime-progress-slider::-webkit-slider-thumb:hover {
    transform: scale(1.25);
}

.chime-player-options {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chime-speed-btn {
    padding: 4px 8px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(184, 134, 11, 0.25);
    border-radius: 6px;
    color: var(--primary, #b8860b);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
}

.chime-speed-btn:hover {
    background: rgba(184, 134, 11, 0.2);
}

.chime-vol-btn {
    background: transparent;
    border: none;
    color: rgba(245, 245, 220, 0.7);
    font-size: 15px;
    cursor: pointer;
    padding: 6px;
}

.chime-vol-btn:hover {
    color: var(--primary, #b8860b);
}

/* Workspace Tabs */
.chime-tabs-bar {
    display: flex;
    gap: 24px;
    padding: 0 32px;
    border-bottom: 1px solid rgba(184, 134, 11, 0.15);
}

.chime-tab {
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 14px 4px;
    color: rgba(245, 245, 220, 0.6);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.chime-tab:hover {
    color: #ffffff;
}

.chime-tab.active {
    color: var(--primary, #b8860b);
    border-bottom-color: var(--primary, #b8860b);
}

/* Tab Content Panels */
.chime-tab-content {
    display: none;
    padding: 24px 32px 60px;
    flex: 1;
}

.chime-tab-content.active {
    display: block;
}

.chime-tab-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.chime-section-title {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.chime-section-sub {
    font-size: 12.5px;
    color: rgba(245, 245, 220, 0.5);
    margin-top: 4px;
}

.chime-btn-row {
    display: flex;
    gap: 10px;
}

/* Transcript Lines */
.chime-transcript-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.transcript-entry {
    background: rgba(74, 44, 28, 0.25);
    border: 1px solid rgba(184, 134, 11, 0.15);
    border-radius: 12px;
    padding: 14px 18px;
    transition: background 0.15s, border-color 0.15s;
    display: flex;
    gap: 16px;
}

.transcript-entry:hover, .transcript-entry.active-playing {
    background: rgba(184, 134, 11, 0.12);
    border-color: rgba(184, 134, 11, 0.4);
}

.transcript-ts-btn {
    background: rgba(184, 134, 11, 0.15);
    border: 1px solid rgba(184, 134, 11, 0.3);
    border-radius: 6px;
    color: var(--primary, #b8860b);
    font-size: 11.5px;
    font-family: monospace;
    font-weight: 700;
    padding: 4px 8px;
    height: fit-content;
    cursor: pointer;
    transition: all 0.15s;
}

.transcript-ts-btn:hover {
    background: var(--primary, #b8860b);
    color: #1a0f0a;
}

.transcript-content-wrap {
    flex: 1;
}

.transcript-speaker-name {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary, #b8860b);
    margin-bottom: 4px;
}

.transcript-text {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(245, 245, 220, 0.9);
}

.chime-textarea {
    width: 100%;
    min-height: 320px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(184, 134, 11, 0.3);
    border-radius: 12px;
    padding: 18px;
    color: #ffffff;
    font-size: 14px;
    line-height: 1.6;
    outline: none;
    box-sizing: border-box;
    font-family: inherit;
    resize: vertical;
}

.chime-textarea:focus {
    border-color: var(--primary, #b8860b);
}

/* FIRAQ Grid */
.chime-firaq-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.firaq-card {
    background: rgba(74, 44, 28, 0.3);
    border: 1px solid rgba(184, 134, 11, 0.2);
    border-radius: 12px;
    padding: 18px 20px;
}

.firaq-card-head {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary, #b8860b);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.firaq-letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: var(--primary, #b8860b);
    color: #1a0f0a;
    font-weight: 900;
    font-size: 13px;
}

.firaq-card-body {
    font-size: 13.5px;
    line-height: 1.6;
    color: rgba(245, 245, 220, 0.85);
}

/* Summary Box */
.chime-summary-box {
    background: rgba(74, 44, 28, 0.25);
    border: 1px solid rgba(184, 134, 11, 0.2);
    border-radius: 12px;
    padding: 24px;
    font-size: 14px;
    line-height: 1.7;
    color: rgba(245, 245, 220, 0.9);
}

/* Forensic Table */
.chime-forensic-table-wrap {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(184, 134, 11, 0.2);
    border-radius: 12px;
    overflow: hidden;
}

.chime-forensic-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}

.chime-forensic-table td {
    padding: 14px 20px;
    border-bottom: 1px solid rgba(184, 134, 11, 0.1);
}

.chime-forensic-table tr:last-child td {
    border-bottom: none;
}

.chime-forensic-table td:first-child {
    width: 200px;
    font-weight: 600;
    color: var(--primary, #b8860b);
}

/* ═════════════════════════════════════════════════════════════════════
   MOBILE VIEW 1:1 REPLICATION (LEGAL-FIRAQ Warm Luxury Gold Theme)
   ═════════════════════════════════════════════════════════════════════ */

/* Always hide main app navigation dock and global header when audio workspace is present */
body.audio-workspace-active .bottom-nav-wrap,
body:has(#audioWorkspaceRoot) .bottom-nav-wrap,
body:has(.chime-mobile-root) .bottom-nav-wrap,
.bottom-nav-wrap.audio-workspace-hidden,
.tool-content:has(#audioWorkspaceRoot) .bottom-nav-wrap,
.tool-content:has(.chime-mobile-root) .bottom-nav-wrap,
body.mobile-preview.audio-workspace-active .bottom-nav-wrap,
body.mobile-preview .bottom-nav-wrap.audio-workspace-hidden,
body.mobile-preview:has(#audioWorkspaceRoot) .bottom-nav-wrap,
#audioWorkspaceRoot ~ .bottom-nav-wrap,
#appContainer:has(#audioWorkspaceRoot) ~ .bottom-nav-wrap,
body.audio-workspace-active #toolHeader,
body:has(#audioWorkspaceRoot) #toolHeader {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
    height: 0 !important;
    min-height: 0 !important;
    opacity: 0 !important;
}

.chime-mobile-root {
    display: none;
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: #1e100a;
    color: #ffffff;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    z-index: 2147483647 !important; /* Maximum z-index above all other elements */
    overflow: hidden;
    flex-direction: column;
}

/* Activate on small screens or when mobile-mode is toggled */
@media (max-width: 768px) {
    .chime-sidebar,
    .chime-drawer,
    .chime-workspace {
        display: none !important;
    }
    .chime-mobile-root {
        display: flex !important;
    }
}

.chime-layout.mobile-mode .chime-sidebar,
.chime-layout.mobile-mode .chime-drawer,
.chime-layout.mobile-mode .chime-workspace {
    display: none !important;
}

.chime-layout.mobile-mode .chime-mobile-root {
    display: flex !important;
}

/* Screens */
.chime-mobile-screen {
    display: none;
    flex-direction: column;
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
    background: #1e100a;
}

.chime-mobile-screen.active {
    display: flex;
}

/* ════ DETAIL SCREEN (Screenshots 2, 3, 4) ════ */

/* Mobile AppBar */
.mobile-appbar {
    height: 56px;
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    background: #170c07;
    border-bottom: 1px solid rgba(184, 134, 11, 0.25);
}

.mobile-icon-btn {
    background: transparent;
    border: none;
    color: var(--primary, #b8860b);
    font-size: 19px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.15s, color 0.15s;
}

.mobile-icon-btn:active {
    background: rgba(184, 134, 11, 0.15);
    color: #d4af37;
}

.mobile-appbar-title {
    font-size: 17px;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    flex: 1;
    margin: 0 8px;
    letter-spacing: 0.3px;
}

.mobile-appbar-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Waveform Scrubber Card (1:1 with Screenshot 2 in LEGAL-FIRAQ Palette) */
.mobile-waveform-card {
    height: 116px;
    min-height: 116px;
    background: #2a160c;
    border-top: 1px solid rgba(184, 134, 11, 0.25);
    border-bottom: 1px solid rgba(184, 134, 11, 0.25);
    display: flex;
    align-items: center;
    padding: 0 16px;
    position: relative;
    gap: 16px;
    user-select: none;
}

.mobile-play-btn {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #1a0e08;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(184, 134, 11, 0.45);
    transition: transform 0.15s, box-shadow 0.15s;
}

.mobile-play-btn:active {
    transform: scale(0.94);
    box-shadow: 0 2px 10px rgba(184, 134, 11, 0.3);
}

.mobile-waveform-track {
    flex: 1;
    height: 90px;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mobile-time-ticks {
    display: flex;
    justify-content: space-between;
    width: 100%;
    font-size: 10px;
    color: rgba(245, 245, 220, 0.5);
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    padding: 0 4px;
}

.mobile-waveform-bars {
    display: flex;
    align-items: center;
    gap: 2px;
    height: 50px;
    width: 100%;
    overflow: hidden;
}

.m-wave-bar {
    flex: 1;
    min-width: 2px;
    background: rgba(184, 134, 11, 0.25);
    border-radius: 1px;
    transition: height 0.1s, background 0.15s;
}

.m-wave-bar.played {
    background: #d4af37;
    box-shadow: 0 0 4px rgba(212, 175, 55, 0.6);
}

.mobile-scrubber-needle {
    position: absolute;
    top: 14px;
    bottom: 4px;
    left: 0%;
    width: 2.5px;
    background: #d4af37;
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.9);
    pointer-events: none;
    transition: left 0.08s linear;
}

/* Recording Header */
.mobile-rec-header {
    padding: 16px 20px 10px 20px;
}

.mobile-rec-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.mobile-rec-title {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.2px;
    word-break: break-word;
}

.mobile-rec-edit-btn {
    background: transparent;
    border: none;
    color: var(--primary, #b8860b);
    font-size: 14px;
    cursor: pointer;
    padding: 2px;
}

.mobile-rec-meta-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: rgba(245, 245, 220, 0.6);
}

.mobile-rec-divider {
    color: rgba(184, 134, 11, 0.3);
    margin: 0 4px;
}

/* Pill Tabs Selector (Screenshots 2, 3, 4) */
.mobile-tabs-pill-wrap {
    padding: 6px 20px 14px 20px;
}

.mobile-tabs-pill {
    background: rgba(44, 24, 16, 0.85);
    border: 1px solid rgba(184, 134, 11, 0.3);
    border-radius: 24px;
    padding: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.mobile-tab-btn {
    flex: 1;
    border: 1px solid transparent;
    background: transparent;
    border-radius: 18px;
    padding: 9px 4px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(245, 245, 220, 0.65);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: center;
    white-space: nowrap;
    user-select: none;
}

.mobile-tab-btn.active {
    background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
    border-color: rgba(255, 255, 255, 0.2);
    color: #1a0e08;
    font-weight: 700;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

/* Tab Viewport */
.mobile-tab-viewport {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0 20px 100px 20px;
    -webkit-overflow-scrolling: touch;
}

.mobile-tab-page {
    display: none;
    animation: fadeIn 0.2s ease-in-out;
}

.mobile-tab-page.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Transover Content */
.mobile-transcript-body {
    font-size: 14.5px;
    line-height: 1.65;
    color: rgba(245, 245, 220, 0.9);
}

.mobile-transcript-empty {
    text-align: center;
    padding: 48px 16px;
    background: rgba(74, 44, 28, 0.25);
    border: 1px dashed rgba(184, 134, 11, 0.3);
    border-radius: 14px;
    margin-top: 10px;
}

.mobile-transcript-empty i {
    font-size: 36px;
    color: var(--primary, #b8860b);
    opacity: 0.7;
    margin-bottom: 12px;
    display: block;
}

.mobile-transcript-empty p {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 6px 0;
}

.mobile-transcript-empty span {
    font-size: 13px;
    color: rgba(245, 245, 220, 0.75);
    line-height: 1.5;
    display: inline-block;
}

.mobile-transcript-empty strong {
    color: #d4af37;
}

.mobile-transcript-bubble {
    margin-bottom: 14px;
    padding: 14px 16px;
    background: rgba(74, 44, 28, 0.45);
    border-radius: 12px;
    border: 1px solid rgba(184, 134, 11, 0.25);
    transition: border-color 0.15s;
}

.mobile-transcript-bubble:active {
    border-color: var(--primary, #b8860b);
}

.mobile-transcript-ts {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    color: #d4af37;
    margin-bottom: 6px;
    cursor: pointer;
}

.mobile-transcript-ts:active {
    color: #ffffff;
}

.mobile-transcript-speaker {
    font-size: 11px;
    font-weight: 700;
    color: var(--primary, #B8860B);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 6px;
}

.mobile-transcript-txt {
    font-size: 14px;
    color: rgba(245, 245, 220, 0.9);
}

/* Summarize Content */
.mobile-summary-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 4px;
}

.mobile-firaq-card {
    background: rgba(74, 44, 28, 0.45);
    border: 1px solid rgba(184, 134, 11, 0.3);
    border-radius: 12px;
    padding: 14px 16px;
}

.mobile-firaq-head {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--primary, #B8860B);
    margin-bottom: 6px;
}

.mobile-firaq-badge {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: var(--primary, #B8860B);
    color: #1a0e08;
    font-weight: 900;
    font-size: 11.5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-firaq-text {
    font-size: 13.5px;
    line-height: 1.6;
    color: rgba(245, 245, 220, 0.85);
}

/* Mind Mapping View */
.mobile-mindmap-placeholder {
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 1:1 Dark Toast Bubble from Screenshot 4 in Luxury Theme */
.mobile-dark-toast {
    background: #4A2C1C;
    border: 1px solid rgba(184, 134, 11, 0.45);
    color: #F5F5DC;
    font-size: 14.5px;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
    letter-spacing: 0.2px;
}

.mobile-mindmap-canvas {
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mindmap-root-node {
    padding: 14px 24px;
    background: rgba(184, 134, 11, 0.2);
    border: 1.5px solid var(--primary, #B8860B);
    border-radius: 20px;
    color: #d4af37;
    font-weight: 700;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 16px rgba(184, 134, 11, 0.3);
    margin-bottom: 24px;
}

.mindmap-branches-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    width: 100%;
}

.mindmap-node {
    padding: 10px 16px;
    background: rgba(74, 44, 28, 0.6);
    border: 1px solid rgba(184, 134, 11, 0.3);
    border-radius: 12px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.mindmap-node .m-letter {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    background: var(--primary, #B8860B);
    color: #1a0e08;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 900;
}

/* ════ BOTTOM FLOATING ACTION BAR (LEGAL-FIRAQ Luxury Theme) ════ */
.mobile-bottom-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 20px 28px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: linear-gradient(180deg, rgba(30, 16, 10, 0) 0%, #1e100a 45%, #1e100a 100%);
    z-index: 100;
}

.mobile-action-circle {
    width: 46px;
    height: 46px;
    min-width: 46px;
    border-radius: 50%;
    background: #3A2014;
    border: 1px solid rgba(184, 134, 11, 0.4);
    color: var(--primary, #b8860b);
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.mobile-action-circle:active {
    background: #4A2C1C;
    transform: scale(0.95);
    border-color: #d4af37;
    color: #d4af37;
}

/* Luxury Gold Action Pill Button */
.mobile-action-pill-btn {
    flex: 1;
    height: 48px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: linear-gradient(135deg, #d4af37 0%, #b8860b 50%, #8b6508 100%);
    color: #1a0e08;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 22px rgba(184, 134, 11, 0.45);
    transition: transform 0.15s, box-shadow 0.15s;
    user-select: none;
}

.mobile-action-pill-btn:active {
    transform: scale(0.98);
}

/* ════ SCREEN B: RECORDINGS LIST (LEGAL-FIRAQ Palette) ════ */
.mobile-list-header {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    background: #170c07;
    border-bottom: 1px solid rgba(184, 134, 11, 0.2);
}

.mobile-list-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mobile-list-title {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.mobile-status-tag {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: rgba(245, 245, 220, 0.5);
}

.mobile-recordings-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 16px 16px 120px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Card matching Screenshot 1 */
.mobile-rec-card {
    background: #2a160c;
    border: 1px solid rgba(184, 134, 11, 0.25);
    border-radius: 16px;
    padding: 16px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.mobile-rec-card:active {
    background: #381f13;
    border-color: var(--primary, #b8860b);
}

.mobile-card-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    color: var(--primary, #b8860b);
    font-weight: 600;
    margin-bottom: 8px;
}

.mobile-card-main-title {
    font-size: 16.5px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
}

.mobile-card-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: rgba(245, 245, 220, 0.5);
}

.mobile-card-footer i {
    font-size: 11px;
}

/* Mobile Bottom Nav */
.mobile-bottom-nav {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: #170c07;
    border-top: 1px solid rgba(184, 134, 11, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 16px;
    z-index: 200;
}

.mobile-nav-btn {
    background: transparent;
    border: none;
    color: rgba(245, 245, 220, 0.45);
    font-size: 20px;
    cursor: pointer;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-nav-btn.active {
    color: var(--primary, #b8860b);
}

.mobile-mic-fab {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #1a0e08;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(184, 134, 11, 0.5);
    transform: translateY(-8px);
}

/* ════ SPEED DIAL MODAL (LEGAL-FIRAQ Palette) ════ */
.mobile-speeddial-overlay {
    position: absolute;
    inset: 0;
    background: rgba(20, 10, 6, 0.8);
    backdrop-filter: blur(6px);
    z-index: 500;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding-bottom: 40px;
}

.mobile-speeddial-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    width: 100%;
}

.speeddial-row {
    display: flex;
    justify-content: space-around;
    width: 100%;
    padding: 0 12px;
}

.speeddial-item {
    background: transparent;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    max-width: 78px;
}

.speeddial-circle {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #3A2014;
    border: 1.5px solid var(--primary, #b8860b);
    color: #d4af37;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

.speeddial-item span {
    font-size: 11px;
    color: rgba(245, 245, 220, 0.9);
    text-align: center;
    line-height: 1.25;
}

.speeddial-close-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #2a160c;
    border: 1px solid rgba(184, 134, 11, 0.4);
    color: var(--primary, #b8860b);
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* ════ BOTTOM SHEETS (LEGAL-FIRAQ Palette) ════ */
.mobile-sheet-overlay {
    position: fixed;
    inset: 0;
    background: rgba(20, 10, 6, 0.8);
    backdrop-filter: blur(6px);
    z-index: 70000;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 16px 16px 24px 16px;
    animation: fadeIn 0.15s ease;
}

.mobile-sheet-card {
    background: #2D180F;
    border: 1px solid rgba(184, 134, 11, 0.3);
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    margin-bottom: 12px;
}

.mobile-sheet-card.full-sheet {
    max-height: 80vh;
    padding: 16px;
}

.mobile-sheet-handle {
    width: 36px;
    height: 4px;
    background: rgba(184, 134, 11, 0.4);
    border-radius: 2px;
    margin: 0 auto 16px auto;
}

.mobile-sheet-menu {
    display: flex;
    flex-direction: column;
}

.mobile-sheet-menu-item {
    background: transparent;
    border: none;
    color: rgba(245, 245, 220, 0.95);
    font-size: 15px;
    padding: 16px;
    cursor: pointer;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.mobile-sheet-menu-item:active {
    background: rgba(184, 134, 11, 0.15);
}

.mobile-sheet-divider {
    height: 1px;
    background: rgba(184, 134, 11, 0.2);
}

.mobile-sheet-cancel-btn {
    width: 100%;
    padding: 16px;
    background: #20110A;
    border: 1px solid rgba(184, 134, 11, 0.3);
    border-radius: 18px;
    color: var(--primary, #B8860B);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

/* Info Sheet */
.mobile-sheet-info-content {
    padding: 20px;
}

.mobile-info-head {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 16px;
}

.mobile-info-row {
    display: flex;
    justify-content: space-between;
    font-size: 13.5px;
    margin-bottom: 8px;
}

.mobile-info-row .lbl {
    color: rgba(245, 245, 220, 0.5);
}

.mobile-info-row .val {
    color: rgba(245, 245, 220, 0.9);
    font-weight: 500;
}

.mobile-info-font-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
}

.mobile-info-font-row .lbl {
    font-size: 14px;
    color: rgba(245, 245, 220, 0.6);
}

.mobile-font-btns {
    display: flex;
    gap: 8px;
}

.font-btn {
    width: 38px;
    height: 30px;
    border-radius: 15px;
    background: transparent;
    border: 1px solid rgba(184, 134, 11, 0.3);
    color: rgba(245, 245, 220, 0.6);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.font-btn.active {
    background: rgba(184, 134, 11, 0.25);
    border-color: var(--primary, #B8860B);
    color: #d4af37;
}

.mobile-delete-rec-btn {
    background: transparent;
    border: none;
    color: #EF4444;
    font-size: 14.5px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 6px 0;
}

/* Summary Grid Sheet */
.mobile-summary-grid-title {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 16px;
    text-align: center;
}

.mobile-summary-options-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    max-height: 50vh;
    overflow-y: auto;
    margin-bottom: 16px;
}

.summary-option-item {
    background: #3A2014;
    border: 1px solid rgba(184, 134, 11, 0.25);
    border-radius: 12px;
    padding: 12px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    text-align: center;
}

.summary-option-item i {
    font-size: 20px;
    color: var(--primary, #B8860B);
}

.summary-option-item span {
    font-size: 10.5px;
    color: rgba(245, 245, 220, 0.8);
    line-height: 1.25;
}

.summary-option-item:active {
    background: rgba(184, 134, 11, 0.25);
    border-color: #d4af37;
}

/* Floating Toast */
.mobile-floating-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #4A2C1C;
    border: 1px solid rgba(184, 134, 11, 0.5);
    color: #F5F5DC;
    font-size: 14px;
    padding: 12px 24px;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
    z-index: 80000;
    pointer-events: none;
    animation: fadeIn 0.15s ease;
}


