/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --teal:        #3D9E97;
    --teal-dark:   #2D8880;
    --teal-light:  #EAF6F5;
    --gzhel:       #1648A0;
    --gzhel-dark:  #0D3888;
    --gzhel-light: #EEF4FF;
    --danger:      #DC3545;
    --danger-bg:   #FEF2F2;
    --warn:        #E67E22;
    --warn-bg:     #FEF9F0;
    --success:     #28A745;
    --ok-bg:       #F0FAF4;
    --header-bg:   #0D2C6E;
    --header-text: #A8C0F0;
    --page-bg:     #F5F5F5;
    --card-bg:     #FFFFFF;
    --border:      #E0E8F5;
    --text-1:      #1A1A1A;
    --text-2:      #5A5A5A;
    --text-muted:  #9A9A9A;
}

html, body {
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    font-size: 14px;
    color: var(--text-1);
    overflow: hidden;
}

/* ===== GZHEL BACKGROUND ===== */
body {
    background-color: #EEF4FF;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cg opacity='.18' fill='%231648A0'%3E%3Cellipse cx='100' cy='83' rx='6' ry='15'/%3E%3Cellipse cx='100' cy='83' rx='6' ry='15' transform='rotate(45,100,100)'/%3E%3Cellipse cx='100' cy='83' rx='6' ry='15' transform='rotate(90,100,100)'/%3E%3Cellipse cx='100' cy='83' rx='6' ry='15' transform='rotate(135,100,100)'/%3E%3Cellipse cx='100' cy='83' rx='6' ry='15' transform='rotate(180,100,100)'/%3E%3Cellipse cx='100' cy='83' rx='6' ry='15' transform='rotate(225,100,100)'/%3E%3Cellipse cx='100' cy='83' rx='6' ry='15' transform='rotate(270,100,100)'/%3E%3Cellipse cx='100' cy='83' rx='6' ry='15' transform='rotate(315,100,100)'/%3E%3Ccircle cx='100' cy='100' r='11'/%3E%3C/g%3E%3Ccircle cx='100' cy='100' r='6' fill='%23EEF4FF'/%3E%3Ccircle cx='100' cy='100' r='2.5' fill='%231648A0' opacity='.18'/%3E%3Cg fill='%231648A0' opacity='.15'%3E%3Cpath d='M100,67 Q107,55 100,44 Q93,55 100,67Z'/%3E%3Cpath d='M100,133 Q107,145 100,156 Q93,145 100,133Z'/%3E%3Cpath d='M67,100 Q55,107 44,100 Q55,93 67,100Z'/%3E%3Cpath d='M133,100 Q145,107 156,100 Q145,93 133,100Z'/%3E%3C/g%3E%3Cg stroke='%231648A0' stroke-width='1.3' fill='none' opacity='.12'%3E%3Cline x1='100' y1='67' x2='100' y2='83'/%3E%3Cline x1='100' y1='117' x2='100' y2='133'/%3E%3Cline x1='67' y1='100' x2='83' y2='100'/%3E%3Cline x1='117' y1='100' x2='133' y2='100'/%3E%3Cpath d='M113,87 Q126,74 136,64'/%3E%3Cpath d='M87,87 Q74,74 64,64'/%3E%3Cpath d='M113,113 Q126,126 136,136'/%3E%3Cpath d='M87,113 Q74,126 64,136'/%3E%3C/g%3E%3Cg fill='%231648A0' opacity='.16'%3E%3Ccircle cx='140' cy='62' r='6'/%3E%3Ccircle cx='60' cy='62' r='6'/%3E%3Ccircle cx='140' cy='138' r='6'/%3E%3Ccircle cx='60' cy='138' r='6'/%3E%3C/g%3E%3Cg fill='%23EEF4FF'%3E%3Ccircle cx='140' cy='62' r='3'/%3E%3Ccircle cx='60' cy='62' r='3'/%3E%3Ccircle cx='140' cy='138' r='3'/%3E%3Ccircle cx='60' cy='138' r='3'/%3E%3C/g%3E%3Ccircle cx='20' cy='20' r='3.5' fill='%231648A0' opacity='.12'/%3E%3Ccircle cx='180' cy='20' r='3.5' fill='%231648A0' opacity='.12'/%3E%3Ccircle cx='20' cy='180' r='3.5' fill='%231648A0' opacity='.12'/%3E%3Ccircle cx='180' cy='180' r='3.5' fill='%231648A0' opacity='.12'/%3E%3C/svg%3E");
    background-size: 200px 200px;
}

/* ===== APP SHELL ===== */
.app-wrap {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

/* ===== HEADER ===== */
.app-header {
    background: linear-gradient(90deg, #0D2C6E 0%, #1648A0 60%, #1E5AB8 100%);
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    flex-shrink: 0;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(13,56,136,0.35);
}

/* Brand */
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-logo {
    flex-shrink: 0;
    filter: drop-shadow(0 1px 3px rgba(0,0,0,0.3));
}

.brand-name {
    font-size: 17px;
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: 0.02em;
}

.header-title {
    color: var(--header-text);
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.01em;
    transition: color 0.3s;
}

.header-title.recording { color: #FFC947; }
.header-title.result    { color: #7FC8C4; }
.header-title.review    { color: #A8C0F0; }

/* ===== BODY (3 columns) ===== */
.app-body {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* ===== RIGHT SIDEBAR (sections nav) ===== */
.sidebar {
    width: 224px;
    flex-shrink: 0;
    background: white;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cg opacity='.07' fill='%231648A0'%3E%3Cellipse cx='100' cy='83' rx='6' ry='15'/%3E%3Cellipse cx='100' cy='83' rx='6' ry='15' transform='rotate(45,100,100)'/%3E%3Cellipse cx='100' cy='83' rx='6' ry='15' transform='rotate(90,100,100)'/%3E%3Cellipse cx='100' cy='83' rx='6' ry='15' transform='rotate(135,100,100)'/%3E%3Cellipse cx='100' cy='83' rx='6' ry='15' transform='rotate(180,100,100)'/%3E%3Cellipse cx='100' cy='83' rx='6' ry='15' transform='rotate(225,100,100)'/%3E%3Cellipse cx='100' cy='83' rx='6' ry='15' transform='rotate(270,100,100)'/%3E%3Cellipse cx='100' cy='83' rx='6' ry='15' transform='rotate(315,100,100)'/%3E%3Ccircle cx='100' cy='100' r='11'/%3E%3C/g%3E%3Cg fill='%231648A0' opacity='.06'%3E%3Cpath d='M100,67 Q107,55 100,44 Q93,55 100,67Z'/%3E%3Cpath d='M100,133 Q107,145 100,156 Q93,145 100,133Z'/%3E%3Cpath d='M67,100 Q55,107 44,100 Q55,93 67,100Z'/%3E%3Cpath d='M133,100 Q145,107 156,100 Q145,93 133,100Z'/%3E%3Ccircle cx='140' cy='62' r='6'/%3E%3Ccircle cx='60' cy='62' r='6'/%3E%3Ccircle cx='140' cy='138' r='6'/%3E%3Ccircle cx='60' cy='138' r='6'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 200px 200px;
    border-left: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding: 20px 0 12px;
}

.sidebar-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--gzhel);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0 20px 14px;
    opacity: 0.8;
}

.sidebar-nav { display: flex; flex-direction: column; }

.nav-item {
    display: block;
    padding: 8px 20px;
    font-size: 13px;
    color: var(--text-2);
    text-decoration: none;
    line-height: 1.4;
    transition: background 0.15s, color 0.15s, border-left-color 0.15s;
    border-left: 3px solid transparent;
}

.nav-item:hover {
    background: rgba(22,72,160,0.07);
    color: var(--gzhel);
}

.nav-item.active {
    border-left-color: var(--gzhel);
    color: var(--gzhel);
    background: rgba(22,72,160,0.08);
}

.sidebar.dimmed .nav-item {
    opacity: 0.35;
    pointer-events: none;
}

/* ===== MAIN CONTENT ===== */
.main-content {
    flex: 1;
    overflow-y: auto;
    position: relative;
    background: transparent;
}

/* ===== SCREENS ===== */
.screen { display: none; }
.screen.active { display: block; }

/* ─── Screen 1: Ready ─── */
.ready-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: calc(100vh - 50px);
    gap: 28px;
    padding: 40px 20px;
}

.ready-hint {
    font-size: 15px;
    color: var(--text-muted);
    text-align: center;
    max-width: 320px;
    line-height: 1.6;
}

.mic-btn {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: var(--danger);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(220,53,69,0.35);
    transition: transform 0.15s, box-shadow 0.15s;
}

.mic-btn:hover {
    transform: scale(1.06);
    box-shadow: 0 6px 28px rgba(220,53,69,0.45);
}

.mic-btn:active  { transform: scale(0.97); }
.mic-btn:disabled { opacity: 0.5; cursor: default; transform: none; }

/* «или введите текст вручную» — запасной путь без микрофона */
.ready-manual {
    background: none;
    border: none;
    color: var(--gzhel);
    font-family: inherit;
    font-size: 13px;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
    opacity: 0.8;
    margin-top: -12px;
}

.ready-manual:hover { opacity: 1; }

.error-block {
    background: var(--danger-bg);
    border: 1px solid #FCCACA;
    border-radius: 8px;
    padding: 10px 16px;
    color: var(--danger);
    font-size: 13px;
    max-width: 380px;
    text-align: center;
}

/* ─── Waveform + timer (inside the dictation card while recording) ─── */
.waveform {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 72px;
    padding: 0 12px;
}

.wave-bar {
    width: 4px;
    height: 6px;
    background: #B0BEE0;
    border-radius: 3px;
    transition: height 0.08s ease;
    flex-shrink: 0;
}

.timer {
    font-size: 18px;
    font-weight: 500;
    color: var(--gzhel);
    letter-spacing: 0.05em;
    font-variant-numeric: tabular-nums;
}

/* ─── Screen 3: Review ─── */
.review-center {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 32px 32px 40px;
    min-height: calc(100vh - 50px);
}

.review-card {
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border);
    padding: 24px;
    width: 100%;
    max-width: 760px;
    box-shadow: 0 2px 12px rgba(22,72,160,0.1);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--gzhel);
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.review-ta {
    width: 100%;
    min-height: 220px;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px 16px;
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-1);
    resize: vertical;
    outline: none;
    font-family: inherit;
    background: #FAFCFF;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.review-ta:focus {
    border-color: var(--gzhel);
    box-shadow: 0 0 0 3px rgba(22,72,160,0.1);
    background: white;
}

.review-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    gap: 16px;
    flex-wrap: wrap;
}

.review-hint-text {
    font-size: 12px;
    color: var(--text-muted);
    flex: 1;
    min-width: 180px;
}

.btn-generate {
    padding: 12px 28px;
    background: var(--gzhel);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s, box-shadow 0.15s;
    box-shadow: 0 2px 8px rgba(22,72,160,0.3);
}

.btn-generate:hover {
    background: var(--gzhel-dark);
    box-shadow: 0 4px 14px rgba(22,72,160,0.4);
}

/* Review screen — recording mode header */
.review-header--rec {
    background: #FEF2F2;
    border-bottom-color: #FECACA;
    justify-content: flex-start;
    gap: 10px;
}

.rec-dot {
    width: 11px;
    height: 11px;
    background: #DC3545;
    border-radius: 50%;
    flex-shrink: 0;
    animation: recPulse 1s ease-in-out infinite;
}

@keyframes recPulse {
    0%,  100% { opacity: 1;   transform: scale(1);   }
    50%        { opacity: 0.4; transform: scale(1.35); }
}

.rec-label {
    flex: 1;
    font-size: 13px;
    font-weight: 500;
    color: #B91C1C;
}

.btn-stop-review {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: #DC3545;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s;
    flex-shrink: 0;
}

.btn-stop-review:hover { background: #B91C1C; }

.stop-sq {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 1px;
    flex-shrink: 0;
}

/* Recording panel: waveform + timer in place of the textarea */
.rec-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    min-height: 220px;
    border: 1px solid #FECACA;
    border-radius: 8px;
    background: #FFFAFA;
}

/* Review screen — transcribing header (record is on the server) */
.review-header--busy { gap: 10px; }

.busy-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(22,72,160,0.2);
    border-top-color: var(--gzhel);
    border-radius: 50%;
    flex-shrink: 0;
    animation: busySpin 0.8s linear infinite;
}

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

.review-ta.busy {
    background: #F5F8FF;
    color: var(--text-muted);
    cursor: progress;
}

/* Notice: microphone unavailable / recognition failed — the textarea stays usable */
.review-notice {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 14px;
    background: var(--warn-bg);
    border: 1px solid #F5D5A8;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 12px;
    font-size: 13px;
    line-height: 1.5;
    color: #8A4B0F;
}

.review-notice-text { flex: 1; min-width: 220px; }

.review-notice-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-notice {
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid var(--gzhel);
    background: white;
    color: var(--gzhel);
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.12s;
}

.btn-notice:hover { background: var(--gzhel-light); }

/* ─── Screen 4: Result ─── */
#screenResult { padding: 20px 24px 40px; }

/* Audio player */
.audio-player-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(90deg, var(--gzhel) 0%, #2060C8 100%);
    border-radius: 10px;
    padding: 10px 16px;
    margin-bottom: 16px;
}

.ap-play {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.15s;
}

.ap-play:hover { background: rgba(255,255,255,0.38); }

.ap-progress-wrap {
    flex: 1;
    height: 4px;
    background: rgba(255,255,255,0.35);
    border-radius: 2px;
    cursor: pointer;
    overflow: hidden;
}

.ap-progress-fill {
    height: 100%;
    background: white;
    border-radius: 2px;
    width: 0;
    transition: width 0.2s linear;
}

.ap-time {
    font-size: 12px;
    color: rgba(255,255,255,0.85);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

/* AI Summary / Медточность card */
.ai-summary-card {
    background: linear-gradient(135deg, #F0F5FF 0%, #EEF4FF 100%);
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 4px;
    border: 1px solid rgba(22,72,160,0.2);
    box-shadow: 0 1px 4px rgba(22,72,160,0.08);
}

.result-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--gzhel);
    margin-bottom: 10px;
    letter-spacing: 0.01em;
}

.ai-summary-text {
    font-size: 13.5px;
    color: var(--text-1);
    line-height: 1.7;
}

/* Result sections */
.result-sections {
    background: var(--card-bg);
    border-radius: 10px;
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: 0 1px 6px rgba(22,72,160,0.08);
}

.result-row {
    display: flex;
    align-items: flex-start;
    border-bottom: 1px solid var(--border);
    padding: 14px 20px;
    gap: 16px;
    transition: background 0.12s;
}

.result-row:last-child { border-bottom: none; }
.result-row:hover { background: #FAFCFF; }

.result-label {
    width: 220px;
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-1);
    padding-top: 2px;
    line-height: 1.5;
}

.result-val {
    flex: 1;
    font-size: 13.5px;
    color: var(--text-2);
    line-height: 1.65;
    white-space: pre-wrap;
    word-break: break-word;
}

/* Vital signs grid */
.vitals-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 12px;
}

.vital-card {
    background: #F8F9FF;
    border-radius: 8px;
    padding: 11px 14px;
    border: 1px solid var(--border);
}

.vital-card-label {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 4px;
    white-space: nowrap;
}

.vital-card-value {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-1);
    display: flex;
    align-items: center;
    gap: 4px;
    line-height: 1;
}

.vital-card.v-high { background: var(--danger-bg); border-color: #FCCACA; }
.vital-card.v-high .vital-card-value { color: var(--danger); }
.vital-card.v-low  { background: var(--danger-bg); border-color: #FCCACA; }
.vital-card.v-low  .vital-card-value { color: var(--danger); }
.vital-card.v-warn { background: var(--warn-bg);   border-color: #F5D5A8; }
.vital-card.v-warn .vital-card-value { color: var(--warn); }
.vital-card.v-ok   { background: var(--ok-bg);     border-color: #C3E6CB; }
.vital-card.v-ok   .vital-card-value { color: var(--success); }

.vital-arrow   { font-size: 17px; font-weight: 900; line-height: 1; }
.vital-sparkle { font-size: 13px; }

.general-condition-text {
    font-size: 13px;
    color: var(--text-2);
    font-style: italic;
}

/* ===== LEFT PATIENT PANEL ===== */
.patient-panel {
    width: 272px;
    flex-shrink: 0;
    background: var(--card-bg);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    padding: 20px 20px 16px;
    overflow-y: auto;
}

.patient-panel-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.patient-meta-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    text-transform: uppercase;
}

.emk-link {
    font-size: 12px;
    color: var(--gzhel);
    text-decoration: none;
    font-weight: 500;
}

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

.patient-name {
    font-size: 19px;
    font-weight: 700;
    color: var(--text-1);
    line-height: 1.3;
    margin-bottom: 6px;
}

.patient-details {
    font-size: 12.5px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.panel-links {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 20px;
}

.panel-saved {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--gzhel);
    margin-bottom: 6px;
}

.panel-link {
    font-size: 13px;
    color: var(--gzhel);
    text-decoration: none;
    padding: 3px 0;
    border-bottom: 1px solid var(--gzhel-light);
    transition: color 0.12s;
}

.panel-link:hover { color: var(--gzhel-dark); }

.panel-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
    padding-top: 16px;
}

.btn-sign {
    width: 100%;
    padding: 11px 0;
    border-radius: 8px;
    border: none;
    background: var(--gzhel);
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
    box-shadow: 0 2px 8px rgba(22,72,160,0.3);
}

.btn-sign:hover:not(:disabled) { background: var(--gzhel-dark); }

.btn-sign:disabled {
    background: #C8D0E0;
    cursor: default;
    box-shadow: none;
}

.btn-cancel {
    width: 100%;
    padding: 11px 0;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: white;
    color: var(--text-2);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.12s;
}

.btn-cancel:hover { background: var(--gzhel-light); }

/* ===== PROCESSING SCREEN ===== */
.proc-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 50px);
    gap: 28px;
}

.proc-logo-wrap {
    animation: procPulse 2s ease-in-out infinite;
    filter: drop-shadow(0 4px 18px rgba(22,72,160,0.35));
}

@keyframes procPulse {
    0%,  100% { transform: scale(1);    opacity: 1;    }
    50%        { transform: scale(1.12); opacity: 0.85; }
}

.proc-msg {
    font-size: 18px;
    font-weight: 500;
    color: var(--gzhel);
    text-align: center;
    min-height: 28px;
    letter-spacing: 0.01em;
    animation: procFadeIn 0.5s ease;
}

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

.proc-dots {
    display: flex;
    gap: 10px;
    align-items: center;
}

.proc-dots span {
    width: 11px;
    height: 11px;
    background: var(--gzhel);
    border-radius: 50%;
    opacity: 0.3;
    animation: procDot 1.4s ease-in-out infinite;
}

.proc-dots span:nth-child(2) { animation-delay: 0.2s; }
.proc-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes procDot {
    0%,  100% { opacity: 0.25; transform: scale(0.75); }
    50%        { opacity: 1;    transform: scale(1.2);  }
}

/* ===== PRINT ===== */
@media print {
    .app-header, .sidebar, .patient-panel, .audio-player-wrap { display: none !important; }
    .main-content { overflow: visible; }
    #screenResult { display: block !important; padding: 0; }
    body { background: white; }
    .result-row { page-break-inside: avoid; }
}
