@layer wertigo.features{.ocr-result__dialog{--app-modal-dialog-gap:0;--app-modal-dialog-padding:0;border-radius:var(--ds-radius-xl)}.ocr-result{flex-direction:column;min-height:0;max-height:95dvh;display:flex;overflow:hidden}.ocr-result__header{background:var(--ds-ink);color:var(--ds-on-brand);grid-template-columns:auto minmax(0,1fr);align-items:center;gap:16px;padding:24px 68px 24px 24px;display:grid}.ocr-result__header h2,.ocr-result__header p{margin:0}.ocr-result__header h2{color:var(--ds-on-brand);font-size:var(--ds-text-2xl);font-weight:var(--ds-weight-bold);line-height:1.15}.ocr-result__header p{color:var(--ds-on-dark-muted);font-size:var(--ds-text-md);margin-top:7px;line-height:1.5}.ocr-result__icon{border-radius:var(--ds-radius-lg);background:linear-gradient(145deg,var(--ds-brand),var(--ds-brand-hover));width:56px;height:56px;box-shadow:none;color:var(--ds-on-brand);border:1px solid #0000;justify-content:center;align-items:center;display:inline-flex}.ocr-result__icon svg{width:28px;height:28px}.ocr-result__body{flex-direction:column;flex:auto;gap:14px;min-height:0;padding:22px 24px 24px;display:flex}.ocr-result__meta{flex-wrap:wrap;gap:8px;display:flex}.ocr-result__meta span{border-radius:var(--ds-radius-pill);font-size:var(--ds-text-sm);font-weight:var(--ds-weight-bold);overflow-wrap:anywhere;padding:7px 10px}.ocr-result__meta span,.ocr-result__meta span:nth-child(2){background:var(--ds-brand-tint);color:var(--ds-brand-strong)}.ocr-result__view-options{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;display:grid}.ocr-result__text-wrap{--app-scroll-track-top:6px;--app-scroll-track-bottom:6px;--app-scroll-track-right:4px;--app-scroll-size:6px;--app-scroll-gutter:12px;border:1px solid var(--ds-line);border-radius:var(--ds-radius-lg);background:linear-gradient(180deg,var(--ds-surface) 0,var(--ds-surface) 100%);min-height:160px;max-height:calc(min(48dvh,520px));box-shadow:none;position:relative;overflow:hidden}.ocr-result__text{min-height:0;max-height:inherit}.ocr-result__empty,.ocr-result__pages,.ocr-result__pages p,.ocr-result__plain-text{margin:0}.ocr-result__pages{padding:0;list-style:none}.ocr-result__pages li{grid-template-columns:116px minmax(0,1fr);align-items:start;gap:18px;padding:16px 18px;display:grid}.ocr-result__pages li+li{border-top:1px solid var(--ds-surface-muted)}.ocr-result__pages li:nth-child(2n){background:var(--ds-brand-soft)}.ocr-result__page-meta{color:var(--ds-subtle);font-size:var(--ds-text-xs);line-height:1.3}.ocr-result__page-meta span{border-radius:var(--ds-radius-sm);background:var(--ds-ink);color:var(--ds-on-brand);font-weight:var(--ds-weight-bold);padding:4px 7px;display:inline-block}.ocr-result__empty,.ocr-result__pages p,.ocr-result__plain-text{color:var(--ds-ink);font-size:var(--ds-text-md);overflow-wrap:anywhere;white-space:pre-wrap;line-height:1.65}.ocr-result__plain-text{padding:20px 18px}.ocr-result__empty{text-align:center;padding:28px 18px}.ocr-result__actions{grid-template-columns:auto minmax(0,1fr);align-items:center;gap:10px;display:grid}.ocr-result__downloads{border:1px solid var(--ds-brand-soft-line);border-radius:var(--ds-radius-md);background:var(--ds-brand-soft);justify-self:end;align-items:center;gap:3px;min-width:0;padding:4px;display:flex}.ocr-result__download-mark,.ocr-result__downloads a,.ocr-result__downloads button{justify-content:center;align-items:center;min-width:42px;min-height:38px;display:inline-flex}.ocr-result__download-mark{min-width:32px;color:var(--ds-brand-hover)}.ocr-result__download-mark svg{width:19px;height:19px}.ocr-result__downloads a,.ocr-result__downloads button{border-radius:var(--ds-radius-md);color:var(--ds-text);cursor:pointer;font-size:var(--ds-text-sm);font-weight:var(--ds-weight-bold);background:0 0;border:1px solid #0000;padding:0 10px;text-decoration:none}.ocr-result__downloads a:hover,.ocr-result__downloads button:hover:not(:disabled){border-color:var(--ds-brand-soft-line);background:var(--ds-surface);color:var(--ds-brand-strong)}.ocr-result__downloads button:disabled{opacity:.5;cursor:not-allowed}.ocr-result__download-error{color:var(--ds-subtle);font-size:var(--ds-text-xs);text-align:right;margin:0;line-height:1.4}.ocr-result__close{border:1px solid var(--ds-line);border-radius:var(--ds-radius-md);background:var(--ds-surface-soft);min-height:42px;color:var(--ds-ink);font:inherit;font-size:var(--ds-text-md);font-weight:var(--ds-weight-bold);cursor:pointer;justify-content:center;align-self:stretch;align-items:center;padding:0 14px;text-decoration:none;display:inline-flex}.ocr-result__close:hover{border-color:var(--ds-brand-soft-line);background:var(--ds-brand-soft)}.ocr-result__close:focus-visible,.ocr-result__downloads a:focus-visible,.ocr-result__downloads button:focus-visible{box-shadow:var(--ds-focus-ring);outline:none}@media (max-width:640px){.ocr-result__dialog{border-radius:var(--ds-radius-xl) var(--ds-radius-xl) 0 0}.ocr-result,.ocr-result__dialog{max-height:calc(100dvh - 12px)}.ocr-result__header{gap:12px;padding:17px 54px 17px 18px}.ocr-result__header h2{font-size:var(--ds-text-xl)}.ocr-result__icon{border-radius:var(--ds-radius-lg);width:46px;height:46px}.ocr-result__body{padding:14px 14px max(12px,env(safe-area-inset-bottom));gap:10px}.ocr-result__view-options{grid-template-columns:1fr}.ocr-result__text-wrap{min-height:140px;max-height:calc(min(45dvh,420px))}.ocr-result__pages li{grid-template-columns:minmax(0,1fr);gap:10px;padding:14px}.ocr-result__close{min-height:40px}}}
