* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a1a2e;
    --secondary-color: #16213e;
    --accent-color: #e94560;
    --text-color: #eee;
    --text-muted: #aaa;
    --success-color: #4ade80;
    --border-radius: 8px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--text-color);
    min-height: 100vh;
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    padding: 40px 0 30px;
}

.logo {
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
}

.logo svg {
    filter: drop-shadow(0 2px 8px rgba(233, 69, 96, 0.3));
}

header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(90deg, var(--text-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
}

main {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.player-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    padding: 24px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.feed-info {
    margin-bottom: 20px;
}

.feed-info h2 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.feed-id {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-family: monospace;
}

/* Feed Config */
.feed-config {
    margin-bottom: 20px;
}

.feed-config h2 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.feed-input-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.feed-input-group label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.feed-input-group input[type="text"] {
    padding: 8px 12px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.3);
    color: var(--text-color);
    font-family: monospace;
    font-size: 0.9rem;
    width: 100px;
}

.feed-input-group input:focus {
    outline: none;
    border-color: var(--accent-color);
}

.feed-hint {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 8px;
}

/* Keyword Config */
.keyword-config {
    margin-bottom: 12px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--border-radius);
}

.keyword-config label {
    display: block;
    margin-bottom: 8px;
}

.keyword-config input[type="text"] {
    width: 100%;
    padding: 10px 12px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.3);
    color: var(--text-color);
    font-size: 0.9rem;
}

.keyword-config input:focus {
    outline: none;
    border-color: var(--accent-color);
}

.keyword-hint {
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-top: 6px;
}

/* Privacy Config */
.privacy-config {
    margin-top: 16px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--border-radius);
}

.privacy-config > label {
    display: block;
    margin-bottom: 10px;
}

.privacy-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.9rem;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-color);
    cursor: pointer;
}

.privacy-hint {
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-top: 8px;
}

/* Redacted text styling */
.redacted {
    background: #333;
    color: #666;
    padding: 1px 4px;
    border-radius: 3px;
    font-family: monospace;
    letter-spacing: 1px;
}

/* Alert Highlighting */
.transcript-entry.alert {
    background: rgba(233, 69, 96, 0.2);
    border-left: 3px solid var(--accent-color);
    padding-left: 12px;
}

.transcript-entry mark {
    background: var(--accent-color);
    color: white;
    padding: 1px 4px;
    border-radius: 3px;
}

/* Low Confidence Warning */
.transcript-entry.low-confidence {
    background: rgba(255, 193, 7, 0.15);
    border-left: 3px solid #ffc107;
    padding-left: 12px;
}

.transcript-entry.low-confidence .transcript-text {
    font-style: italic;
}

/* Confidence Score Display */
.transcript-confidence {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    margin-right: 8px;
    font-family: monospace;
}

.transcript-confidence.conf-high {
    background: rgba(76, 175, 80, 0.3);
    color: #81c784;
}

.transcript-confidence.conf-medium {
    background: rgba(255, 193, 7, 0.3);
    color: #ffd54f;
}

.transcript-confidence.conf-low {
    background: rgba(244, 67, 54, 0.3);
    color: #e57373;
}

.status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--accent-color);
    animation: pulse 2s ease-in-out infinite;
}

.status.live .status-indicator {
    background-color: var(--success-color);
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.status-text {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Audio Player */
.audio-player {
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 20px;
}

.audio-controls {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.audio-controls .btn {
    flex: 0;
    min-width: auto;
    cursor: pointer;
    border: none;
}

.btn-large {
    padding: 14px 28px;
    font-size: 1rem;
}

.audio-visualizer {
    background: rgba(0, 0, 0, 0.4);
    border-radius: var(--border-radius);
    height: 80px;
    margin-bottom: 16px;
    overflow: hidden;
}

.audio-visualizer canvas {
    width: 100%;
    height: 100%;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.volume-control input[type="range"] {
    flex: 1;
    max-width: 200px;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    cursor: pointer;
}

.volume-control input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent-color);
    cursor: pointer;
}

.volume-control input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent-color);
    cursor: pointer;
    border: none;
}

.player-instructions {
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--border-radius);
    padding: 16px;
    font-size: 0.9rem;
}

.player-instructions p {
    margin-bottom: 8px;
    color: var(--text-color);
}

.player-instructions ol {
    margin-left: 20px;
    color: var(--text-muted);
}

.player-instructions li {
    padding: 4px 0;
}

.player-instructions a {
    color: var(--accent-color);
}

.player-instructions .note {
    margin-top: 12px;
    padding: 10px;
    background: rgba(233, 69, 96, 0.1);
    border-radius: var(--border-radius);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.player-instructions .note strong {
    color: var(--accent-color);
}

.player-controls {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    flex: 1;
    min-width: 150px;
    text-align: center;
}

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

.btn-primary:hover {
    background: #d13350;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(233, 69, 96, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

/* Transcript Section */
.transcript-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    padding: 24px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.transcript-header h3 {
    font-size: 1.2rem;
    margin: 0;
}

.transcript-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.transcript-controls .btn {
    flex: 0;
    min-width: auto;
    padding: 8px 16px;
    font-size: 0.85rem;
    border: none;
    cursor: pointer;
}

.transcript-controls .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.transcript-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--border-radius);
    font-size: 0.85rem;
}

/* Model Status */
.model-status {
    margin-bottom: 12px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--border-radius);
}

.model-loading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.model-status-text {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.model-status.loaded .model-status-text {
    color: var(--success-color);
}

.model-status.loading .model-status-text {
    color: var(--accent-color);
}

/* Engine Selector */
.engine-selector {
    margin-bottom: 16px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--border-radius);
}

.engine-selector > label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-color);
}

.engine-options {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--text-muted);
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.radio-label:hover {
    background: rgba(255, 255, 255, 0.1);
}

.radio-label input[type="radio"] {
    accent-color: var(--accent-color);
    width: 16px;
    height: 16px;
}

.radio-label input[type="radio"]:checked + span {
    color: var(--text-color);
}

/* Engine Config */
.engine-config {
    margin-bottom: 12px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--border-radius);
}

.config-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.config-status .status-text {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.engine-config.loaded .status-text,
.config-status.loaded .status-text {
    color: var(--success-color);
}

.config-input {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.config-input label {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.config-input input[type="password"],
.config-input input[type="text"] {
    padding: 10px 12px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.3);
    color: var(--text-color);
    font-size: 0.9rem;
}

.config-input input:focus {
    outline: none;
    border-color: var(--accent-color);
}

.help-link {
    color: var(--accent-color);
    font-size: 0.8rem;
    text-decoration: none;
}

.help-link:hover {
    text-decoration: underline;
}

/* Usage Display */
.usage-display {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    background: rgba(0, 200, 150, 0.1);
    border: 1px solid rgba(0, 200, 150, 0.3);
    border-radius: var(--border-radius);
    margin-top: 8px;
}

.usage-time {
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--success-color);
}

.usage-cost {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Download Group */
.download-group {
    display: flex;
    gap: 0;
}

.format-select {
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-right: none;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    font-size: 0.85rem;
    cursor: pointer;
    outline: none;
}

.format-select:hover {
    background: rgba(255, 255, 255, 0.15);
}

.format-select:focus {
    border-color: var(--accent-color);
}

.format-select option {
    background: var(--secondary-color);
    color: var(--text-color);
}

.download-group .btn {
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.btn-small {
    padding: 6px 12px;
    font-size: 0.8rem;
    min-width: auto;
    flex: 0;
}

.progress-bar {
    margin-top: 12px;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-color), var(--success-color));
    border-radius: 3px;
    transition: width 0.3s ease;
    width: 0%;
}

.mic-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #666;
}

.transcript-status.listening .mic-indicator {
    background-color: var(--accent-color);
    animation: pulse 1s ease-in-out infinite;
}

.mic-status-text {
    color: var(--text-muted);
}

.transcript-container {
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--border-radius);
    padding: 16px;
    min-height: 200px;
    max-height: 400px;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.8;
}

.transcript-placeholder {
    color: var(--text-muted);
    font-style: italic;
}

.transcript-entry {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.transcript-time {
    color: var(--accent-color);
    font-size: 0.75rem;
    margin-right: 8px;
}

.transcript-text {
    color: var(--text-color);
}

.transcript-text.interim {
    color: var(--text-muted);
    font-style: italic;
}

.transcript-note {
    margin-top: 12px;
    padding: 12px;
    background: rgba(233, 69, 96, 0.1);
    border-radius: var(--border-radius);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.transcript-note strong {
    color: var(--accent-color);
}

.info-section {
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--border-radius);
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.info-section h3,
.instructions h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: var(--text-color);
}

.info-section p {
    color: var(--text-muted);
    margin-bottom: 16px;
}

.feed-details {
    list-style: none;
}

.feed-details li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
}

.feed-details li:last-child {
    border-bottom: none;
}

.feed-details strong {
    color: var(--text-color);
}

.instructions ol {
    margin-left: 20px;
    color: var(--text-muted);
}

.instructions li {
    padding: 6px 0;
}

footer {
    text-align: center;
    padding: 30px 0;
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

footer a {
    color: var(--accent-color);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

.disclaimer {
    font-size: 0.8rem;
    color: var(--text-muted);
    opacity: 0.7;
}

@media (max-width: 600px) {
    .container {
        padding: 15px;
    }

    header h1 {
        font-size: 2rem;
    }

    .player-section {
        padding: 16px;
    }

    .btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
}

/* Session History Section */
.history-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    padding: 24px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 20px;
}

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

.history-header h2 {
    margin: 0;
}

.db-stats {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.history-controls {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.search-input {
    flex: 1;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    color: var(--text-color);
    font-size: 0.9rem;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-color);
}

.search-results {
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--border-radius);
    padding: 16px;
    margin-bottom: 16px;
    max-height: 300px;
    overflow-y: auto;
}

.search-count {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.search-result {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.search-result:last-child {
    border-bottom: none;
}

.result-time {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-right: 10px;
}

.result-text {
    font-size: 0.9rem;
}

.search-more {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 12px;
}

.no-results {
    color: var(--text-muted);
    text-align: center;
}

.session-list {
    max-height: 400px;
    overflow-y: auto;
}

.session-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--border-radius);
    margin-bottom: 8px;
}

.session-item:last-child {
    margin-bottom: 0;
}

.session-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.session-date {
    font-weight: 500;
}

.session-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

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

.no-sessions {
    color: var(--text-muted);
    text-align: center;
    padding: 20px;
}

.btn-danger {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
    border: 1px solid rgba(244, 67, 54, 0.3);
}

.btn-danger:hover {
    background: rgba(244, 67, 54, 0.3);
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-content {
    background: var(--bg-color);
    border-radius: var(--border-radius);
    max-width: 800px;
    width: 100%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h3 {
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.modal-close:hover {
    color: var(--accent-color);
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.session-details {
    color: var(--text-muted);
    margin-bottom: 16px;
    font-size: 0.9rem;
}

.session-entries {
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--border-radius);
    padding: 16px;
}

.entry-row {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.entry-row:last-child {
    border-bottom: none;
}

.entry-time {
    color: var(--accent-color);
    margin-right: 10px;
    font-size: 0.85rem;
}

.entry-text {
    font-size: 0.9rem;
}

.conf-badge {
    font-size: 0.7rem;
    padding: 2px 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin-right: 10px;
}

/* Mobile Warning Banner */
.mobile-warning {
    background: linear-gradient(90deg, #f44336, #d32f2f);
    color: white;
    padding: 16px 20px;
    text-align: center;
    position: relative;
}

.mobile-warning-content {
    max-width: 800px;
    margin: 0 auto;
}

.mobile-warning-content strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.mobile-warning-content p {
    font-size: 0.9rem;
    margin-bottom: 12px;
    opacity: 0.95;
}

.mobile-warning-content button {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
    padding: 8px 20px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 0.85rem;
    transition: background 0.2s ease;
}

.mobile-warning-content button:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Map Section */
.map-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    padding: 24px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 20px;
}

.map-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 12px;
}

.map-header h2 {
    margin: 0;
}

.map-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.city-input-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.city-input-group label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.city-input-group input {
    padding: 6px 10px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.3);
    color: var(--text-color);
    font-size: 0.85rem;
    width: 150px;
}

.city-input-group input:focus {
    outline: none;
    border-color: var(--accent-color);
}

.map-hint {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 12px;
}

.map-container {
    height: 350px;
    border-radius: var(--border-radius);
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
    margin-bottom: 12px;
}

.markers-list {
    max-height: 150px;
    overflow-y: auto;
    font-size: 0.85rem;
}

.marker-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--border-radius);
    margin-bottom: 6px;
}

.marker-item:last-child {
    margin-bottom: 0;
}

.marker-info {
    flex: 1;
    overflow: hidden;
}

.marker-address {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.marker-time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.marker-actions button {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px 8px;
    font-size: 0.8rem;
}

.marker-actions button:hover {
    color: var(--accent-color);
}

/* Pin button in transcript entries */
.transcript-entry .pin-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px 6px;
    font-size: 0.85rem;
    opacity: 0.6;
    transition: opacity 0.2s;
    margin-left: 8px;
}

.transcript-entry .pin-btn:hover {
    opacity: 1;
}

.transcript-entry .pin-btn.pinned {
    opacity: 1;
    color: var(--accent-color);
}
