#problem-notices{position:fixed;right:20px;bottom:20px;z-index:2147480000;width:min(620px,calc(100vw - 32px));max-height:55dvh;overflow:auto;display:grid;gap:12px;isolation:isolate;color:var(--text);font-size:var(--fs-section);line-height:1.45;text-align:left;filter:none;opacity:1}
.problem-notice{display:flex;align-items:flex-start;gap:16px;padding:20px;background:var(--surface);border:2px solid var(--danger-solid);border-left-width:7px;border-radius:12px;box-shadow:0 10px 38px #0003;overflow-wrap:anywhere;filter:none;opacity:1}
.problem-notice-copy{min-width:0;flex:1}.problem-notice strong{display:block;color:var(--danger);font-size:var(--fs-section)}.problem-notice p{margin:8px 0 14px;color:var(--text)}.problem-notice button{min-height:44px;border:0;border-radius:8px;font:inherit;font-size:var(--fs-body);line-height:1.35;font-weight:700;cursor:pointer}.problem-notice [data-problem-open]{padding:11px 17px;background:var(--danger);color:var(--surface);text-align:left}.problem-notice .problem-dismiss{flex:none;min-width:44px;padding:0;background:var(--surface);color:var(--text-2);font-size:var(--fs-figure)}.problem-notice button:focus-visible,.problem-dialog button:focus-visible{outline:3px solid var(--info-solid);outline-offset:3px}.problem-notice button:disabled{cursor:wait;opacity:.65}
.manager-dialog[hidden]{display:none!important}.manager-dialog.problem-dialog{z-index:2147479990!important;background:#181a2440;backdrop-filter:none!important;filter:none!important;opacity:1!important}.problem-dialog .modal{max-height:90dvh!important;animation:none!important}.problem-dialog .modal-title{font-size:var(--fs-section)}.problem-dialog .modal-body{font-size:var(--fs-body);line-height:1.5}.problem-dialog code{overflow-wrap:anywhere}.problem-dialog .modal-footer{position:sticky;bottom:0;background:var(--surface);z-index:2}.problem-dialog .modal-header{position:sticky;top:0;background:var(--surface);z-index:3}.problem-table{max-height:36dvh;overflow:auto;border:1px solid var(--border);border-radius:8px;margin:14px 0}.problem-table table{width:100%;border-collapse:collapse;font-size:var(--fs-body)}.problem-table :is(td,th){padding:10px 12px;text-align:left;border-bottom:1px solid var(--border)}.problem-table th{position:sticky;top:0;background:var(--surface-3);color:var(--text-2)}.problem-document-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}.problem-discard{padding:16px;margin-top:20px;background:var(--danger-soft);border:1px solid var(--danger-border);border-radius:8px}.problem-discard label{font-size:var(--fs-body)}.problem-discard button{margin-top:10px}.problem-inline-error,.manager-dialog .manager-error{padding:12px 16px;border:1px solid var(--danger-solid);border-radius:8px;background:var(--danger-soft);color:var(--danger);font-size:var(--fs-body)!important;line-height:1.5}.problem-inline-error[hidden],.manager-dialog .manager-error[hidden]{display:none}.problem-resolved{padding:15px;background:var(--ok-soft);color:var(--ok);border:1px solid var(--ok-solid);border-radius:8px}.problem-field{outline:3px solid var(--danger-solid)!important;outline-offset:3px}
@media(max-width:600px){#problem-notices{right:12px;bottom:12px;width:calc(100vw - 24px);max-height:52dvh;font-size:var(--fs-body)}.problem-notice{padding:14px;gap:8px}.problem-notice strong{font-size:var(--fs-section)}.problem-dialog .modal{width:calc(100vw - 16px)!important}.problem-table :is(td,th){padding:8px}.problem-dialog .modal-footer{flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){#problem-notices *,.problem-dialog *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

.problem-notice[hidden]{display:none!important}
.problem-notice [data-problem-park]{margin-top:10px;padding:12px 17px;background:var(--btn-primary);color:var(--btn-primary-text);text-align:left}
.problem-manager-handoff{padding:16px;margin-top:18px;background:var(--info-soft);border:1px solid var(--info-border);border-radius:8px}.problem-manager-handoff a{display:inline-flex;align-items:center;min-height:44px;text-decoration:none}.problem-manager-handoff p{margin:10px 0 0;font-size:var(--fs-body)}
/* A scan that found nothing: one short notice at the top, never over the document or „Изписване“; it leaves by itself. */
.scan-notice{position:fixed;top:16px;left:50%;transform:translateX(-50%);z-index:2147480000;width:min(560px,calc(100vw - 32px));display:flex;align-items:flex-start;gap:12px;padding:14px 16px;background:var(--surface);color:var(--text);border:2px solid var(--danger-solid);border-left-width:7px;border-radius:12px;box-shadow:0 10px 38px #0003;animation:scan-notice-in .18s ease-out}
.scan-notice>div{min-width:0;flex:1}.scan-notice strong{display:block;color:var(--danger);font-size:var(--fs-body)}.scan-notice p{margin:4px 0 0;font-size:var(--fs-body)}
.scan-notice .problem-dismiss{flex:none;min-width:36px;min-height:36px;border:0;border-radius:8px;background:transparent;color:var(--text);font:inherit;font-size:var(--fs-section);cursor:pointer}
@keyframes scan-notice-in{from{opacity:0;transform:translate(-50%,-8px)}to{opacity:1;transform:translate(-50%,0)}}
@media(prefers-reduced-motion:reduce){.scan-notice{animation:none}}
