/* Shared front action system: no permanent boxes; keyboard focus stays visible. */
body#atlas-front .delete-confirmation>.form-panel{max-width:none;width:100%;box-sizing:border-box}
body#atlas-front .delete-confirmation>.form-actions{display:flex;justify-content:space-between;width:100%}
body#atlas-front .delete-confirmation>.form-actions>a{margin-right:auto}
body#atlas-front .panel:has(+.form-actions),body#atlas-front .case-detail-panels>.panel:last-child{margin-bottom:0}
body#atlas-front .panel+.form-actions,body#atlas-front .case-detail-panels+.form-actions{margin-top:16px;padding-top:0}
body#atlas-front .button svg.action-icon.action-icon-email,body#atlas-front .button svg.action-icon.action-icon-download,body#atlas-front .button svg.action-icon.action-icon-upload,body#atlas-front .button svg.action-icon.action-icon-external,body#atlas-front .button svg.action-icon.action-icon-share{color:#0096d6}
body#atlas-front .button.danger svg.action-icon.action-icon-share{color:inherit}
body#atlas-front .document-row-actions .button.document-open,body#atlas-front .document-row-actions .button.document-open:hover{color:#181818;--action-text:#181818}
body#atlas-front .button,body#atlas-front .back-to-top{
 display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;height:auto;
 padding:9px 14px;border:1px solid transparent;border-radius:7px;background:transparent;color:#475963;
 font:500 14px/20px Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
 text-transform:none;letter-spacing:normal;text-decoration:none;box-shadow:none;white-space:normal;text-align:center;
 transition:background-color .15s,border-color .15s,color .15s;
}
body#atlas-front .button.primary,body#atlas-front .timeline-actions .button.primary,
body#atlas-front .document-row-actions [data-document-preview]{color:#087eac;background:transparent;border-color:transparent}
body#atlas-front .button.secondary,body#atlas-front .button.ghost,body#atlas-front .button[data-reset-module],
body#atlas-front .assessment-top-actions a.button,body#atlas-front .module-footer-actions a.button,
body#atlas-front .document-download,body#atlas-front .document-list-actions .button{
 color:#475963;background:transparent;border-color:transparent;
}
body#atlas-front .button:hover,body#atlas-front .back-to-top:hover{background:#eef2f4;border-color:#d5dfe5}
body#atlas-front :is(.assessment-top-actions,.module-footer-actions) .button.secondary:hover{background:#eef2f4;border-color:#d5dfe5;color:#344b58}
/* Floating navigation echoes the dark header and sidebar. */
body#atlas-front .back-to-top{background:#181818;color:#fff;border-color:#181818;box-shadow:0 3px 12px #0002}
body#atlas-front .back-to-top:hover{background:#303030;color:#fff;border-color:#303030}
body#atlas-front .main:has(>.page-back){padding-top:18px}
body#atlas-front .page-back{margin-bottom:12px}
body#atlas-front .button.primary:hover,body#atlas-front .timeline-actions .button.primary:hover,
body#atlas-front .document-row-actions [data-document-preview]:hover{background:#edf5f9;border-color:#c6dce7;color:#06688f}
body#atlas-front .button.danger,body#atlas-front .button.danger-confirm{background:transparent;border-color:transparent;color:#b33a39}
body#atlas-front .button.danger:hover,body#atlas-front .button.danger-confirm:hover{background:#fff0ef;border-color:#d89b98;color:#a22d2c}
body#atlas-front .button.small,body#atlas-front .button.note-ai-action{min-height:36px;padding:7px 11px;font-size:13px}
body#atlas-front .page-heading .button.primary,body#atlas-front .patient-header .button.primary{font-size:16px}
body#atlas-front .timeline-actions .button.danger{order:-1}
.patient-identity-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:6px}
.patient-duplicate-warning{color:#b33a39}
.patient-comparison-scroll{overflow-x:auto}
.patient-comparison-scroll td{min-width:180px;vertical-align:top}
.patient-name-with-hint{display:inline-flex;align-items:center;gap:12px;white-space:nowrap}
body#atlas-front .patient-name-with-hint a.patient-duplicate-link{display:inline;padding:0;border:0;background:none;color:#b33a39;font-size:12px;font-weight:500;line-height:1.3}
body#atlas-front .patient-name-with-hint a.patient-duplicate-link:hover{text-decoration:underline}
.duplicate-choice-actions{display:flex;flex-wrap:wrap;gap:8px}
.duplicate-choice p{margin-bottom:4px}
body#atlas-front [data-attach-documents][hidden]{display:none}
body#atlas-front .button.back-button{padding-left:0;background:transparent;border-color:transparent;color:#475963}
body#atlas-front .button.back-button:hover{color:#087eac}
body#atlas-front .button svg,body#atlas-front .back-to-top svg{width:17px;height:17px;flex-shrink:0}
body#atlas-front .localized-file-picker{min-height:0;padding:0;background:transparent;border:0;border-radius:0;gap:12px;flex-wrap:wrap}
body#atlas-front .localized-file-picker .button{background:transparent;color:#087eac;border-color:transparent;min-height:40px;font-size:14px;padding:9px 14px}
body#atlas-front .localized-file-picker .button:hover{background:#edf5f9;border-color:#c6dce7}
body#atlas-front .file-selection-status{font-size:13px;color:#65747e;overflow-wrap:anywhere}
body#atlas-front .document-upload-form{border:1px dashed #cbd8df;background:#fafcfd;border-radius:10px;padding:18px}
body#atlas-front .document-row-actions .button{height:38px;min-height:38px;padding:8px 11px;font-size:13px;line-height:20px}
body#atlas-front .dialog-close{width:40px;height:40px;min-width:40px;padding:11px;background:transparent;color:#53646f}
body#atlas-front .dialog-close svg{width:18px;height:18px}
body#atlas-front .dialog-close:hover{background:#eef2f4;color:#344b58}
body#atlas-front .document-arrow{background:transparent;border:1px solid transparent;border-radius:7px;color:#475963;box-shadow:none}
body#atlas-front .document-arrow:hover{background:#f5f8fa;border-color:#d5dfe5}
body#atlas-front .topbar .button.secondary{background:transparent;color:#efefef;border-color:transparent}
body#atlas-front .topbar .button.secondary:hover{background:#35444e;border-color:#81939e}
body#atlas-front .note-toolbar button{border-color:transparent;background:transparent}
body#atlas-front .note-toolbar button:hover,body#atlas-front .note-toolbar button[aria-pressed=true]{background:#eaf0f4;color:#008ac3}
body#atlas-front .button:focus-visible,body#atlas-front .back-to-top:focus-visible,body#atlas-front .dialog-close:focus-visible{outline:2px solid #0787bc;outline-offset:3px}
body#atlas-front .button:disabled,body#atlas-front .button:disabled:hover,body#atlas-front .button[aria-disabled=true]{cursor:not-allowed;background:transparent;border-color:transparent;color:#89949b;opacity:1}
body#atlas-front .button[aria-busy=true]{cursor:progress}
body#atlas-front .assessment-top-actions,body#atlas-front .module-footer-actions,body#atlas-front .timeline-actions,body#atlas-front .document-list-actions{gap:8px}
@media(prefers-reduced-motion:reduce){body#atlas-front .button,body#atlas-front .back-to-top{transition:none}}
@media print{body#atlas-front .button,body#atlas-front .back-to-top{display:none!important}}
/* Quiet navigation handles beside the centre label. */
body#atlas-front .menu-toggle{width:30px;height:34px;padding:5px;border:0;border-radius:5px;background:transparent;box-shadow:none;color:#a9bac5;z-index:30}
body#atlas-front .menu-close{position:static;flex-shrink:0;margin-left:auto}
body#atlas-front.menu-hidden .menu-close{display:none}
body#atlas-front .menu-reopen{position:fixed;left:8px;top:112px;color:#087eac}
body#atlas-front .menu-close:hover{background:transparent;color:#fff}
body#atlas-front .menu-reopen:hover{background:transparent;color:#06688f}
body#atlas-front .menu-toggle:focus-visible{outline:2px solid #0787bc;outline-offset:1px}
@media print{body#atlas-front .menu-toggle{display:none!important}}
/* Shared wide search fields for patients and the exercise library. */
#patient-search,#workspace-search{flex:0 1 800px;max-width:800px;min-width:0}
.directory-search{flex:0 1 800px;max-width:800px;min-width:0}body#atlas-front #case-q{flex:1;width:100%;min-width:0;max-width:none;box-sizing:border-box}
body#atlas-front :is(#patient-q,#workspace-q,#exercise-q){flex:1;width:100%;min-width:0;max-width:none;box-sizing:border-box}
body#atlas-front #exercise-q{flex:0 1 800px;max-width:800px}
#patient-match-count:empty{display:none}
body#atlas-front .exercise-search-row{flex-wrap:nowrap;gap:20px}
body#atlas-front .exercise-search-row{margin-bottom:8px}
.exercise-reset{display:flex;justify-content:flex-start;margin-bottom:16px}
body#atlas-front :is(.exercise-total,#patient-count,#workspace-total,.directory-total,.priority-list-toolbar>[role="status"]){flex-shrink:0;white-space:nowrap;color:var(--muted);font-size:18px;font-weight:400;line-height:1.5;text-align:right;margin-left:auto}
body#atlas-front :is(.exercise-total,#patient-count,#workspace-total) strong{font-weight:inherit}
@media(max-width:600px){body#atlas-front :is(.exercise-total,#patient-count,#workspace-total,.directory-total,.priority-list-toolbar>[role="status"]){font-size:14px}}

body#atlas-front .button.danger.physician-resend svg.action-icon.action-icon-email{color:inherit}

/* Disabled controls do not advertise a click action. */
body#atlas-front :is(button,input,select,textarea):disabled,
body#atlas-front [aria-disabled="true"],
body#atlas-front label:has(input:disabled),
body#atlas-front label:has(select:disabled),
body#atlas-front :is(button:disabled,[aria-disabled="true"],label:has(input:disabled)) *{cursor:default!important}
