@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=JetBrains+Mono:wght@400;500&display=swap");

/* Summarify — design tokens & global */
:root {
    --font-sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: "JetBrains Mono", "SF Mono", Consolas, monospace;
    --color-bg: #0f1419;
    --color-bg-elevated: #1a222d;
    --color-surface: #ffffff;
    --color-surface-muted: #f4f6f9;
    --color-border: #e2e8f0;
    --color-text: #1e293b;
    --color-text-muted: #64748b;
    --color-brand: #0d9488;
    --color-brand-hover: #0f766e;
    --color-brand-soft: rgba(13, 148, 136, 0.12);
    --color-accent: #ea580c;
    --color-danger: #dc2626;
    --color-danger-hover: #b91c1c;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.12);
    --header-gradient: linear-gradient(135deg, #0f766e 0%, #134e4a 45%, #0f172a 100%);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

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

body {
    font-family: var(--font-sans);
    background: var(--header-gradient);
    background-attachment: fixed;
    min-height: 100vh;
    color: var(--color-text);
    line-height: 1.5;
}

/* Auth pages — centered card */
body:not(.app-body) {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

body:not(.app-body) .container {
    width: 100%;
    max-width: 440px;
}

/* App dashboard — scrollable column */
body.app-body {
    padding: 0;
    display: block;
}

.app-shell {
    width: 100%;
    max-width: 920px;
    margin: 0 auto;
    padding: 20px 16px 48px;
}

/* Wizard / step-by-step flow */
.wizard-stepper {
    margin-bottom: 20px;
    padding: 16px 14px 18px;
    background: rgba(255, 255, 255, 0.98);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
}

.wizard-stepper ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 4px;
    counter-reset: wiz;
}

.wizard-stepper li {
    flex: 1 1 auto;
    min-width: 72px;
    text-align: center;
    position: relative;
}

.wizard-stepper li button {
    width: 100%;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 8px 4px;
    font-family: inherit;
    border-radius: var(--radius-sm);
    transition: background 0.2s;
}

.wizard-stepper li button:hover {
    background: var(--color-surface-muted);
}

.wizard-stepper li button:focus-visible {
    outline: 2px solid var(--color-brand);
    outline-offset: 2px;
}

.wizard-stepper .wiz-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin: 0 auto 6px;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.8125rem;
    background: var(--color-surface-muted);
    color: var(--color-text-muted);
    border: 2px solid var(--color-border);
    transition: all 0.2s;
}

.wizard-stepper li.is-current .wiz-num {
    background: var(--color-brand);
    color: #fff;
    border-color: var(--color-brand);
}

.wizard-stepper li.is-done .wiz-num {
    background: var(--color-brand-soft);
    color: var(--color-brand);
    border-color: var(--color-brand);
}

.wizard-stepper .wiz-label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-text-muted);
    line-height: 1.25;
    max-width: 100px;
    margin: 0 auto;
}

.wizard-stepper li.is-current .wiz-label {
    color: var(--color-text);
}

@media (max-width: 520px) {
    .wizard-stepper .wiz-label {
        font-size: 0.625rem;
        max-width: 76px;
    }
}

.wizard-panel {
    display: none;
}

.wizard-panel.is-active {
    display: block;
    animation: wizard-fade 0.25s ease;
}

@keyframes wizard-fade {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wizard-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding: 16px 18px;
    background: rgba(255, 255, 255, 0.98);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
    position: sticky;
    bottom: 16px;
    z-index: 10;
}

.wizard-nav .btn {
    width: auto;
    min-width: 120px;
    flex: 1 1 140px;
    max-width: 220px;
}

.wizard-nav-hint {
    flex: 1 1 100%;
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    text-align: center;
    order: -1;
}

@media (min-width: 560px) {
    .wizard-nav-hint {
        flex: 1 1 auto;
        order: 0;
        text-align: left;
        max-width: 280px;
    }
}

.wizard-block-hint {
    font-size: 0.875rem;
    color: #b45309;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    margin-top: 12px;
}

.open-report-hero {
    text-align: center;
    padding: 12px 0 8px;
}

.open-report-hero p {
    color: var(--color-text-muted);
    font-size: 0.9375rem;
    margin-bottom: 20px;
    max-width: 36ch;
    margin-left: auto;
    margin-right: auto;
}

.open-report-hero .btn-primary {
    max-width: 280px;
    margin: 0 auto;
}

/* Hub layout */
.hub-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

@media (min-width: 720px) {
    .hub-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.hub-card {
    background: var(--color-surface-muted);
    border-radius: var(--radius-md);
    padding: 20px 18px 22px;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hub-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-text);
}

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

.hub-list {
    margin-top: 4px;
    padding-left: 1.25rem;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.hub-list li {
    margin-bottom: 4px;
}

.hub-btn {
    margin-top: 8px;
    text-align: center;
}

@media (min-width: 640px) {
    .app-shell {
        padding: 28px 24px 56px;
    }
}

/* Auth card */
.auth-card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: 40px 36px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-border);
}

.auth-card h1 {
    color: var(--color-brand);
    text-align: center;
    margin-bottom: 8px;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.auth-card h2 {
    color: var(--color-text);
    text-align: center;
    margin-bottom: 28px;
    font-size: 1.25rem;
    font-weight: 600;
}

/* Forms */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    color: var(--color-text);
    font-weight: 600;
    font-size: 0.875rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: inherit;
    background: var(--color-surface);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-brand);
    box-shadow: 0 0 0 3px var(--color-brand-soft);
}

.form-group small {
    display: block;
    margin-top: 6px;
    color: var(--color-text-muted);
    font-size: 0.8125rem;
}

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

/* Buttons */
.btn {
    padding: 12px 20px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.9375rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: var(--color-brand);
    color: #fff;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover:not(:disabled) {
    background: var(--color-brand-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(13, 148, 136, 0.35);
}

.btn-secondary {
    background: var(--color-surface-muted);
    color: var(--color-text);
    border: 1px solid var(--color-border);
    width: auto;
    padding: 10px 16px;
}

.btn-secondary:hover:not(:disabled) {
    background: #e8ecf1;
}

.btn-danger {
    background: var(--color-danger);
    color: #fff;
}

.btn-danger:hover:not(:disabled) {
    background: var(--color-danger-hover);
}

.btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

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

.btn-row .btn {
    flex: 1 1 auto;
    min-width: 140px;
}

@media (min-width: 480px) {
    .btn-row .btn {
        width: auto;
    }
}

/* Auth link */
.auth-link {
    text-align: center;
    margin-top: 20px;
    color: var(--color-text-muted);
    font-size: 0.9375rem;
}

.auth-link a {
    color: var(--color-brand);
    text-decoration: none;
    font-weight: 600;
}

.auth-link a:hover {
    text-decoration: underline;
}

.error-message {
    background: #fef2f2;
    color: #b91c1c;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    margin-top: 16px;
    text-align: center;
    font-size: 0.9375rem;
    border: 1px solid #fecaca;
}

/* App header */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.98);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
}

.app-header-brand {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.app-header-brand h1 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-text);
    letter-spacing: -0.02em;
}

.app-header-brand span {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

.app-header .btn-secondary {
    flex-shrink: 0;
}

/* Section cards */
.section-card {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    padding: 22px 20px 26px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
}

@media (min-width: 640px) {
    .section-card {
        padding: 26px 28px 30px;
    }
}

.section-card + .section-card {
    border-radius: var(--radius-md);
}

.card-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--color-border);
}

.step-badge {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: var(--color-brand-soft);
    color: var(--color-brand);
    font-weight: 700;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-head-text h2 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 4px;
}

.card-head-text p {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    max-width: 52ch;
}

.hint-box {
    background: linear-gradient(135deg, #f0fdfa 0%, #ecfeff 100%);
    border: 1px solid #99f6e4;
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    font-size: 0.875rem;
    color: #115e59;
    margin-bottom: 18px;
    line-height: 1.55;
}

.cmd-legend {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 8px 14px;
    margin-top: 14px;
    padding: 12px 14px;
    background: var(--color-surface-muted);
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    color: var(--color-text-muted);
}

.cmd-legend strong {
    color: var(--color-text);
    font-weight: 600;
}

.cmd-legend code {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    background: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid var(--color-border);
    color: var(--color-brand-hover);
}

.meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
    background: var(--color-surface-muted);
    color: var(--color-text-muted);
    border: 1px solid var(--color-border);
}

.pill-live {
    background: #fef2f2;
    color: #b91c1c;
    border-color: #fecaca;
}

.pill-ok {
    background: #ecfdf5;
    color: #047857;
    border-color: #a7f3d0;
}

/* Live capture grid */
.live-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

@media (min-width: 768px) {
    .live-grid {
        grid-template-columns: 1.15fr 1fr;
        align-items: start;
    }
}

.camera-wrap {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #0f172a;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.camera-video {
    width: 100%;
    display: block;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: #000;
}

.live-side h3 {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-muted);
    margin-bottom: 8px;
    margin-top: 16px;
}

.live-side h3:first-child {
    margin-top: 0;
}

#photoTimeline.recording-info {
    margin-top: 18px;
}

.transcript-panel {
    min-height: 160px;
    max-height: 280px;
    overflow-y: auto;
    padding: 14px 16px;
    background: #0f172a;
    color: #e2e8f0;
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    line-height: 1.6;
    border: 1px solid #334155;
}

.recorder-controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 18px;
}

@media (min-width: 520px) {
    .recorder-controls {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .recorder-controls .btn {
        flex: 1;
        min-width: 160px;
    }
}

/* Photo gallery & timeline */
.photo-gallery {
    margin-top: 18px;
}

.photo-gallery h3 {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-muted);
    margin-bottom: 10px;
}

.photo-gallery-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.photo-gallery-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    background: var(--color-surface-muted);
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    flex-wrap: wrap;
}

.photo-gallery-item strong {
    font-size: 0.9375rem;
}

.photo-gallery-item .tag {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-brand);
    background: var(--color-brand-soft);
    padding: 4px 8px;
    border-radius: 6px;
}

.photo-gallery-item .btn-set-active {
    padding: 8px 14px;
    font-size: 0.8125rem;
    width: auto;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}

.photo-gallery-item .btn-set-active:hover {
    border-color: var(--color-brand);
    color: var(--color-brand);
}

.timeline-list {
    margin-top: 8px;
}

.timeline-item {
    padding: 14px 16px;
    margin-bottom: 10px;
    background: var(--color-surface-muted);
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--color-brand);
    font-size: 0.875rem;
}

.timeline-item em {
    display: block;
    margin-top: 8px;
    color: var(--color-text-muted);
    font-style: normal;
    font-size: 0.8125rem;
    line-height: 1.5;
}

/* Status */
.status-text {
    text-align: center;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    font-weight: 600;
    font-size: 0.9375rem;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
}

.status-text.status-idle {
    background: var(--color-surface-muted);
    color: var(--color-text-muted);
    border-color: var(--color-border);
}

.status-text.status-recording {
    background: #fef2f2;
    color: #991b1b;
    border-color: #fecaca;
    animation: pulse-soft 2s ease-in-out infinite;
}

.status-text.status-uploading {
    background: #fffbeb;
    color: #92400e;
    border-color: #fde68a;
}

.status-text.status-processing {
    background: #ecfeff;
    color: #0e7490;
    border-color: #a5f3fc;
}

.status-text.status-done {
    background: #ecfdf5;
    color: #047857;
    border-color: #a7f3d0;
}

@keyframes pulse-soft {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.88; }
}

.recording-info {
    margin-top: 20px;
    padding: 18px 20px;
    background: var(--color-surface-muted);
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
}

.recording-info h3 {
    color: var(--color-text);
    margin-top: 18px;
    margin-bottom: 8px;
    font-size: 1rem;
    font-weight: 700;
}

.recording-info h3:first-child {
    margin-top: 0;
}

.recording-info p {
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 8px;
    font-size: 0.9375rem;
}

#transcript,
#summary {
    background: var(--color-surface);
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    white-space: pre-wrap;
    word-wrap: break-word;
    font-size: 0.875rem;
    line-height: 1.55;
}

#reportJson {
    margin-top: 16px;
    padding: 16px;
    background: #0f172a;
    color: #cbd5e1;
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    line-height: 1.5;
    border: 1px solid #334155;
    max-height: 360px;
    overflow: auto;
}

/* Report page */
.report-shell {
    max-width: 900px;
}

.report-meta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px 24px;
    margin-bottom: 20px;
}

@media (min-width: 560px) {
    .report-meta {
        grid-template-columns: repeat(2, 1fr);
    }
}

.report-meta-item {
    padding: 12px 14px;
    background: var(--color-surface-muted);
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
}

.report-meta-item dt {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    margin-bottom: 4px;
}

.report-meta-item dd {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-text);
}

.report-section {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
}

.report-section h3 {
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-muted);
    margin-bottom: 12px;
}

.report-section ul {
    padding-left: 1.25rem;
    color: var(--color-text);
}

.report-section li {
    margin-bottom: 6px;
}

.report-section .muted,
li.muted {
    color: var(--color-text-muted);
    font-size: 0.9375rem;
}

/* Plaud import layout */
.plaud-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 6px;
}

@media (min-width: 760px) {
    .plaud-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: flex-start;
    }
}

.plaud-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.plaud-wizard-progress {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-muted);
    margin: 14px 0 4px;
}

.plaud-wizard-nav {
    margin-top: 18px;
    align-items: center;
}

.plaud-wizard-nav-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-left: auto;
}

.plaud-upload-recap {
    margin-top: 8px;
}

.plaud-recap-title {
    font-size: 1rem;
    margin-bottom: 10px;
    color: var(--color-text);
}

.plaud-recap-list {
    margin: 0;
    padding-left: 1.25rem;
    color: var(--color-text);
}

.plaud-recap-list li {
    margin-bottom: 6px;
}

.plaud-parse-status {
    margin-top: 10px;
    text-align: left;
    font-size: 0.9375rem;
    color: var(--color-text);
}

.plaud-parse-error {
    margin-top: 10px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid #b91c1c;
    background: rgba(185, 28, 28, 0.08);
    color: #7f1d1d;
    font-size: 0.875rem;
    line-height: 1.45;
}

.plaud-json-panel {
    margin-top: 14px;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    background: var(--color-surface-muted);
}

.plaud-json-panel-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.plaud-json-panel-title {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--color-text);
}

.plaud-json-panel .btn {
    flex: 0 0 auto;
    min-width: auto;
    width: auto;
}

.plaud-json-preview {
    margin: 0;
    padding: 12px 14px;
    max-height: min(55vh, 480px);
    overflow: auto;
    font-size: 0.75rem;
    line-height: 1.45;
    tab-size: 2;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    color: var(--color-text);
    white-space: pre-wrap;
    word-break: break-word;
}

.plaud-highlight-gallery {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
    align-items: start;
}

.plaud-highlight-card {
    width: 100%;
    min-width: 0;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: var(--color-surface);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.plaud-highlight-card img {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: 220px;
    max-height: 220px;
    object-fit: cover;
    width: 100%;
    border-bottom: 1px solid var(--color-border);
    background: var(--color-surface-muted);
}

.plaud-highlight-card-body {
    padding: 14px 14px 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.plaud-highlight-overline {
    margin: 0;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
}

.plaud-highlight-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text);
}

.plaud-highlight-note {
    margin: 0;
    font-size: 0.875rem;
    color: var(--color-text);
    line-height: 1.45;
    white-space: normal;
    word-break: break-word;
}

.plaud-highlight-meta-line {
    margin: 2px 0 0;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-text-muted);
}

.plaud-highlight-media {
    margin: 6px 12px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.14);
    border: 1px solid var(--color-border);
}

.plaud-highlight-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px;
}

.plaud-action-btn {
    flex: 1 1 90px;
    min-width: 90px;
}

.plaud-note-input {
    width: calc(100% - 24px);
    margin: 10px 12px 8px;
    padding: 10px 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.875rem;
    resize: vertical;
    min-height: 72px;
}

.plaud-note-input:focus {
    outline: none;
    border-color: var(--color-brand);
    box-shadow: 0 0 0 3px var(--color-brand-soft);
}

.plaud-card-action {
    margin: 0 12px 12px;
    width: calc(100% - 24px);
}

@media (max-width: 520px) {
    .plaud-highlight-gallery {
        grid-template-columns: 1fr;
    }
    .plaud-highlight-card img {
        height: 200px;
        max-height: 200px;
    }
}

.plaud-loading {
    margin-top: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-surface-muted);
}

.plaud-loading-inline {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.plaud-date-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0 10px;
}

.plaud-date-btn {
    width: auto;
    min-width: 0;
    flex: 0 1 auto;
    font-size: 0.82rem;
    padding: 7px 12px;
}

.plaud-date-btn.is-active {
    background: var(--color-brand-soft);
    border-color: var(--color-brand);
    color: var(--color-brand-hover);
}

.plaud-vlm-intro {
    margin: 0 0 10px;
    font-size: 0.875rem;
    color: var(--color-text-muted);
    line-height: 1.5;
    text-align: left;
}

.plaud-vlm-intro code {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    padding: 1px 5px;
    border-radius: 4px;
    background: var(--color-surface-muted);
    border: 1px solid var(--color-border);
}

.plaud-vlm-force {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: var(--color-text);
    cursor: pointer;
    user-select: none;
}

.plaud-vlm-force input {
    width: auto;
    margin: 0;
}

.plaud-vlm-type-row {
    margin-top: 4px;
}

.plaud-vlm-type-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #0f766e;
    background: rgba(13, 148, 136, 0.12);
    border: 1px solid rgba(13, 148, 136, 0.35);
    padding: 4px 10px;
    border-radius: 999px;
}

.plaud-vlm-analysis {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: var(--color-text-muted);
}

.plaud-spinner {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid rgba(15, 118, 110, 0.25);
    border-top-color: #0f766e;
    animation: plaudSpin 0.8s linear infinite;
}

.plaud-spinner.small {
    width: 14px;
    height: 14px;
}

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

.report-finding {
    padding: 14px 16px;
    margin-bottom: 10px;
    background: var(--color-surface-muted);
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    font-size: 0.9375rem;
}

.report-image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    margin-top: 8px;
}

.report-image-grid img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
}

/* Print */
@media print {
    body {
        background: #fff;
    }
    .app-header .btn,
    #printBtn {
        display: none !important;
    }
    .section-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* Legacy class aliases (avoid breaking old markup) */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.98);
    padding: 16px 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    margin-bottom: 16px;
    border: 1px solid var(--color-border);
}

.dashboard-header h1 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-text);
}

.dashboard-card {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    padding: 24px 20px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
}

.dashboard-card h2 {
    color: var(--color-text);
    margin-bottom: 20px;
    font-size: 1.125rem;
    font-weight: 700;
}

/* Plaud upload / review layout + inspection coach (right column — vertical rail) */
.plaud-upload-shell {
    max-width: 920px;
}

.plaud-upload-shell.plaud-upload-shell--with-coach {
    max-width: 1220px;
}

.plaud-upload-main {
    min-width: 0;
}

/* Wide: main + fixed-width coach pillar on the right */
@media (min-width: 1100px) {
    .plaud-upload-shell.plaud-upload-shell--with-coach {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 300px;
        gap: 24px;
        align-items: stretch;
    }

    .plaud-upload-shell.plaud-upload-shell--with-coach.plaud-upload-shell--coach-sidebar {
        grid-template-columns: minmax(0, 1fr) 52px;
    }

    .plaud-coach-column:not([hidden]) {
        position: sticky;
        top: 16px;
        align-self: start;
        width: 300px;
        min-height: min(calc(100vh - 32px), 900px);
        max-height: calc(100vh - 32px);
        flex: 0 0 300px;
    }

    .plaud-coach-column.plaud-coach-column--sidebar:not([hidden]) {
        width: 52px;
        min-width: 52px;
        max-width: 52px;
        padding: 10px 6px;
    }

    .plaud-coach-messages {
        flex: 1 1 auto;
        min-height: 0;
        max-height: none;
    }
}

/* Narrower: coach as a fixed vertical strip on the right edge (not stacked below) */
@media (max-width: 1099px) {
    .plaud-upload-shell.plaud-upload-shell--with-coach {
        display: block;
        padding-right: min(300px, calc(100vw - 24px));
        max-width: 100%;
    }

    .plaud-upload-shell.plaud-upload-shell--with-coach.plaud-upload-shell--coach-sidebar {
        padding-right: 52px;
    }

    .plaud-coach-column:not([hidden]) {
        position: fixed;
        right: 0;
        top: 0;
        bottom: 0;
        width: min(300px, calc(100vw - 16px));
        max-width: 300px;
        z-index: 50;
        margin: 0;
        border-radius: 0;
        border-left: 2px solid rgba(15, 23, 42, 0.88);
        border-top: none;
        border-right: none;
        border-bottom: none;
        box-shadow: -12px 0 40px rgba(15, 23, 42, 0.18);
    }

    .plaud-coach-column.plaud-coach-column--sidebar:not([hidden]) {
        width: 52px !important;
        min-width: 52px !important;
        max-width: 52px !important;
        padding: 10px 4px;
    }

    .plaud-coach-messages {
        flex: 1 1 auto;
        min-height: 0;
        max-height: none;
    }
}

@media (max-width: 360px) {
    .plaud-upload-shell.plaud-upload-shell--with-coach {
        padding-right: 0;
    }

    .plaud-coach-column:not([hidden]) {
        width: 100%;
        max-width: none;
        border-left: none;
    }
}

.plaud-import-success-bar {
    margin: 0 0 16px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(13, 148, 136, 0.35);
    background: rgba(13, 148, 136, 0.1);
    color: var(--color-text);
    font-size: 0.9375rem;
    line-height: 1.45;
}

.plaud-import-success-lead {
    font-weight: 700;
}

.plaud-emphasis {
    font-weight: 700;
    color: var(--color-brand-hover);
}

.plaud-coach-column {
    padding: 16px;
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    box-shadow: var(--shadow-lg);
    border: 2px solid rgba(15, 23, 42, 0.85);
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-sizing: border-box;
}

/* Author `display: flex` above wins over the native [hidden] rule — force hide until JS reveals coach */
.plaud-coach-column[hidden] {
    display: none !important;
}

.plaud-coach-toolbar {
    flex-shrink: 0;
    margin: -16px -16px 0 -16px;
    padding: 8px 10px;
    border-bottom: 1px solid var(--color-border);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    background: var(--color-surface-muted);
}

.plaud-coach-column--sidebar .plaud-coach-toolbar {
    margin: 0;
    padding: 8px 0;
    border-bottom: none;
    border-radius: 0;
    background: transparent;
}

.plaud-coach-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    min-height: 0;
}

.plaud-coach-column--sidebar .plaud-coach-body {
    display: none !important;
}

.plaud-coach-sidebar-toggle {
    width: 100%;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-text);
    cursor: pointer;
    text-align: center;
    line-height: 1.3;
}

.plaud-coach-sidebar-toggle:hover {
    border-color: var(--color-brand);
    background: var(--color-brand-soft);
}

.plaud-coach-column--sidebar .plaud-coach-sidebar-toggle {
    padding: 12px 4px;
    min-height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.plaud-coach-column--sidebar .plaud-coach-sidebar-toggle-text--collapsed {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    letter-spacing: 0.06em;
    font-size: 0.75rem;
    text-transform: uppercase;
}

.plaud-coach-voice-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 4px;
}

.plaud-coach-voice-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    cursor: pointer;
    user-select: none;
}

.plaud-coach-mic-btn.is-active {
    border-color: var(--color-brand);
    background: var(--color-brand-soft);
    color: var(--color-brand-hover);
}

.plaud-coach-avatar.is-listening {
    animation: plaud-coach-pulse 1.2s ease-in-out infinite;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.45);
}

.plaud-coach-avatar.is-speaking {
    animation: none;
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.45);
}

.plaud-coach-head {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.plaud-coach-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    flex-shrink: 0;
    background: linear-gradient(145deg, #0f766e, #134e4a);
    border: 2px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    animation: plaud-coach-pulse 2.4s ease-in-out infinite;
}

.plaud-coach-avatar::after {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.35), transparent 45%);
}

@keyframes plaud-coach-pulse {
    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(13, 148, 136, 0.35);
    }
    50% {
        transform: scale(1.03);
        box-shadow: 0 0 0 8px rgba(13, 148, 136, 0);
    }
}

.plaud-coach-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
    color: var(--color-text);
}

.plaud-coach-sub {
    margin: 4px 0 0;
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    line-height: 1.4;
}

.plaud-coach-messages {
    flex: 1 1 auto;
    min-height: 180px;
    overflow-y: auto;
    padding: 8px 4px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-surface-muted);
}

.plaud-coach-bubble {
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    line-height: 1.45;
}

.plaud-coach-bubble-label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-text-muted);
    margin-bottom: 4px;
}

.plaud-coach-bubble-text {
    white-space: pre-wrap;
    color: var(--color-text);
}

.plaud-coach-bubble--assistant {
    background: #fff;
    border: 1px solid var(--color-border);
}

.plaud-coach-bubble--user {
    background: rgba(13, 148, 136, 0.12);
    border: 1px solid rgba(13, 148, 136, 0.25);
}

.plaud-coach-input-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.plaud-coach-textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    font-family: var(--font-sans);
    font-size: 0.875rem;
    resize: vertical;
    min-height: 72px;
}

.plaud-coach-textarea:focus {
    outline: 2px solid rgba(13, 148, 136, 0.45);
    outline-offset: 1px;
}

.plaud-coach-status {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    min-height: 1.2em;
}

.plaud-coach-results-btn {
    width: 100%;
    margin-top: 4px;
}

/* Plaud results page */
.plaud-results-shell {
    max-width: 960px;
}

.plaud-results-dl {
    display: grid;
    grid-template-columns: minmax(0, 140px) 1fr;
    gap: 8px 16px;
    font-size: 0.9375rem;
}

.plaud-results-dl dt {
    color: var(--color-text-muted);
    font-weight: 600;
}

.plaud-results-dl dd {
    margin: 0;
    word-break: break-word;
}

.plaud-results-md {
    text-align: left;
}

.plaud-results-pre {
    margin: 0;
    padding: 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    background: var(--color-surface-muted);
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    line-height: 1.45;
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 50vh;
    overflow: auto;
}

/* --- Plaud cinematic overlays (prepare / review arrival) --- */
body.plaud-cinematic-lock {
    overflow: hidden;
}

.plaud-cinematic {
    position: fixed;
    inset: 0;
    z-index: 4000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
    pointer-events: auto;
    opacity: 0;
    transform: scale(0.985);
    transition: opacity 0.38s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Author `display: flex` wins over native `[hidden]` — overlay would stay full-screen and eat clicks */
.plaud-cinematic[hidden] {
    display: none !important;
}

.plaud-cinematic.is-active {
    opacity: 1;
    transform: scale(1);
}

.plaud-cinematic.is-leaving {
    pointer-events: none;
    opacity: 0;
    transform: scale(1.01);
    transition: opacity 0.32s ease, transform 0.42s ease;
}

.plaud-cinematic__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 120% 80% at 50% 0%, rgba(13, 148, 136, 0.35), transparent 55%),
        radial-gradient(ellipse 90% 70% at 80% 100%, rgba(234, 88, 12, 0.12), transparent 50%),
        linear-gradient(165deg, #0c4a43 0%, #042f2e 40%, #0f172a 100%);
    animation: plaud-cinematic-bg-drift 14s ease-in-out infinite alternate;
}

.plaud-cinematic--arrival .plaud-cinematic__bg {
    animation-duration: 18s;
}

@keyframes plaud-cinematic-bg-drift {
    0% {
        filter: hue-rotate(-4deg) brightness(1);
    }
    100% {
        filter: hue-rotate(6deg) brightness(1.06);
    }
}

.plaud-cinematic__orbit {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.plaud-cinematic__orbit span {
    position: absolute;
    width: min(72vw, 420px);
    height: min(72vw, 420px);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    animation: plaud-cinematic-orbit 5.5s ease-in-out infinite;
}

.plaud-cinematic__orbit span:nth-child(2) {
    width: min(58vw, 340px);
    height: min(58vw, 340px);
    animation-delay: -1.2s;
    border-color: rgba(45, 212, 191, 0.12);
}

.plaud-cinematic__orbit span:nth-child(3) {
    width: min(44vw, 260px);
    height: min(44vw, 260px);
    animation-delay: -2.4s;
    border-color: rgba(255, 255, 255, 0.06);
}

@keyframes plaud-cinematic-orbit {
    0%,
    100% {
        transform: rotate(0deg) scale(1);
        opacity: 0.55;
    }
    50% {
        transform: rotate(180deg) scale(1.04);
        opacity: 1;
    }
}

.plaud-cinematic__core {
    position: relative;
    z-index: 2;
    max-width: 420px;
    text-align: center;
    color: #ecfeff;
}

.plaud-cinematic__ring {
    width: 56px;
    height: 56px;
    margin: 0 auto 18px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.22);
    border-top-color: #5eead4;
    box-shadow: 0 0 28px rgba(45, 212, 191, 0.35);
    animation: plaud-cinematic-spin 1.05s linear infinite;
}

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

.plaud-cinematic__title {
    margin: 0;
    font-size: clamp(1.15rem, 3.5vw, 1.45rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.25;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.plaud-cinematic__sub {
    margin: 10px 0 0;
    font-size: 0.9rem;
    line-height: 1.45;
    color: rgba(236, 254, 255, 0.82);
}

.plaud-cinematic__bars {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-top: 22px;
    height: 36px;
    align-items: flex-end;
}

.plaud-cinematic__bars span {
    width: 6px;
    border-radius: 4px;
    background: linear-gradient(180deg, #5eead4, #0d9488);
    transform-origin: bottom center;
    animation: plaud-cinematic-bar 0.9s ease-in-out infinite;
    opacity: 0.85;
}

.plaud-cinematic__bars span:nth-child(1) {
    height: 14px;
    animation-delay: 0ms;
}
.plaud-cinematic__bars span:nth-child(2) {
    height: 22px;
    animation-delay: 80ms;
}
.plaud-cinematic__bars span:nth-child(3) {
    height: 30px;
    animation-delay: 160ms;
}
.plaud-cinematic__bars span:nth-child(4) {
    height: 22px;
    animation-delay: 240ms;
}
.plaud-cinematic__bars span:nth-child(5) {
    height: 14px;
    animation-delay: 320ms;
}

@keyframes plaud-cinematic-bar {
    0%,
    100% {
        transform: scaleY(0.45);
        opacity: 0.5;
    }
    50% {
        transform: scaleY(1);
        opacity: 1;
    }
}

/* Upload wizard: button engages immediately with the cinematic */
#plaudWizardNext.is-plaud-wizard-busy {
    position: relative;
    box-shadow: 0 0 0 2px rgba(13, 148, 136, 0.35);
    animation: plaud-wizard-btn-glow 1.1s ease-in-out infinite;
}

@keyframes plaud-wizard-btn-glow {
    0%,
    100% {
        box-shadow: 0 0 0 2px rgba(13, 148, 136, 0.25);
    }
    50% {
        box-shadow: 0 0 0 4px rgba(45, 212, 191, 0.45);
    }
}

/* Highlights skeleton (post-arrival reveal) */
.plaud-skeleton-gallery {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
    align-items: start;
}

.plaud-skeleton-card {
    position: relative;
    border-radius: 12px;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    overflow: hidden;
    min-height: 280px;
    display: flex;
    flex-direction: column;
}

.plaud-skeleton-card__shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        transparent 0%,
        transparent 40%,
        rgba(13, 148, 136, 0.08) 50%,
        transparent 60%,
        transparent 100%
    );
    background-size: 200% 100%;
    animation: plaud-skeleton-shine 1.6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes plaud-skeleton-shine {
    0% {
        background-position: 100% 0;
    }
    100% {
        background-position: -100% 0;
    }
}

.plaud-skeleton-card__media {
    height: 160px;
    margin: 10px 12px 0;
    border-radius: 10px;
    background: linear-gradient(90deg, var(--color-surface-muted) 0%, #e2e8f0 50%, var(--color-surface-muted) 100%);
    background-size: 200% 100%;
    animation: plaud-skeleton-shine 1.4s ease-in-out infinite;
}

.plaud-skeleton-card__body {
    padding: 14px 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.plaud-skeleton-line {
    display: block;
    height: 10px;
    border-radius: 6px;
    background: var(--color-surface-muted);
    width: 100%;
    max-width: 100%;
}

.plaud-skeleton-line--lg {
    width: 55%;
    height: 12px;
}

.plaud-skeleton-line--sm {
    width: 38%;
    height: 8px;
}

@media (max-width: 520px) {
    .plaud-skeleton-gallery {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .plaud-cinematic,
    .plaud-cinematic__bg,
    .plaud-cinematic__orbit span,
    .plaud-cinematic__ring,
    .plaud-cinematic__bars span,
    .plaud-skeleton-card__shine,
    .plaud-skeleton-card__media,
    #plaudWizardNext.is-plaud-wizard-busy {
        animation: none !important;
        transition-duration: 0.15s !important;
    }

    .plaud-cinematic.is-active {
        opacity: 1;
        transform: none;
    }
}
