.security-browser { position: relative; display: flex; flex-direction: column; width: 100%; height: 100%; min-width: 0; min-height: 300px; overflow: hidden; background: #fff; color: #22344b; font: 12px/1.55 var(--sans, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif); }
.security-browser [hidden], .sr-extension-toggle[hidden], .sr-browser-tab[hidden] { display: none !important; }
.security-browser :is(h3, p) { margin: 0; }
.security-browser :is(button, input, select, textarea), .sr-extension-toggle { font: inherit; }
.security-browser :is(button, input, select, textarea):focus-visible, .sr-extension-toggle:focus-visible { outline: 3px solid #8ebaf8; outline-offset: 2px; }
.security-browser button:disabled, .security-browser input:disabled, .security-browser select:disabled, .security-browser textarea:disabled { cursor: not-allowed; opacity: .55; }
.sr-browser-tab { display: flex; flex: 0 1 250px; align-items: center; gap: 9px; min-width: 0; height: 33px; padding: 0 16px; border-radius: 10px 10px 0 0; background: #f8fafc; color: #253953; font-size: 12px; }
.sr-tab-favicon { display: grid; place-items: center; flex-shrink: 0; width: 19px; height: 19px; border-radius: 5px; background: #2f617e; color: #fff; font: 700 12px/1 sans-serif; }
.sr-tab-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-extension-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 7px; flex: 0 0 auto; align-self: center; margin: 0 10px 4px auto; min-height: 29px; padding: 4px 11px; border: 1px solid #bdcce0; border-radius: 7px; background: #fff; color: #294a70; cursor: pointer; font-size: 12px; font-weight: 700; }
.sr-extension-toggle:hover, .sr-extension-toggle.is-active { background: #eaf2ff; border-color: #799fd4; color: #2055a5; }
.sr-extension-toggle.is-busy::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #357adc; animation: sr-pulse 1.2s ease-in-out infinite; }
.sr-extension-icon { width: 14px; height: 16px; display: inline-block; background: currentColor; clip-path: polygon(50% 0, 96% 17%, 91% 61%, 74% 83%, 50% 100%, 26% 83%, 9% 61%, 4% 17%); font-size: 0; opacity: .9; }
.sr-browser-controls { position: relative; display: flex; align-items: center; flex: 0 0 48px; gap: 4px; padding: 6px 12px; border-bottom: 1px solid #dce3ed; background: #f8fafc; z-index: 1; }
.sr-icon-button { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 32px; height: 32px; border: 0; border-radius: 7px; background: transparent; color: #5a6b80; font: 20px/1 sans-serif !important; cursor: pointer; }
.sr-icon-button:hover:not(:disabled) { background: #e9eef6; color: #233e62; }
.sr-browser-address { display: flex; flex: 1; align-items: center; gap: 6px; min-width: 0; height: 34px; margin: 0 5px; padding: 0 12px; border: 1px solid #e2e7ee; border-radius: 18px; background: #eef1f6; }
.sr-browser-address:focus-within { border-color: #91b4e6; background: #fff; box-shadow: 0 0 0 2px #bfd5f744; }
.sr-address-icon { color: #708197; font-size: 17px; }
.sr-address-input { flex: 1; min-width: 0; width: 100%; border: 0; outline: 0 !important; background: transparent; color: #33475f; font-size: 12px !important; text-overflow: ellipsis; }
.sr-button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 34px; padding: 6px 11px; border: 1px solid #d0dbe9; border-radius: 7px; background: #fff; color: #3d5678; font-size: 12px; font-weight: 650 !important; text-decoration: none; cursor: pointer; }
.sr-button:hover:not(:disabled) { border-color: #9ab5d8; background: #f2f7ff; }
.sr-button-primary { background: #2b60bb; border-color: #2b60bb; color: #fff; }
.sr-button-primary:hover:not(:disabled) { background: #204f9c; color: #fff; }
.sr-last-report { min-height: 30px; padding: 4px 12px; font-size: 11px !important; }
.sr-site-area { position: relative; display: flex; flex: 1; min-width: 0; min-height: 0; background: #fff; }
.sr-site-frame { display: block; width: 100%; height: 100%; min-height: 0; border: 0; flex: 1; background: #fff; }
.sr-site-loading { position: absolute; left: 50%; top: 18px; display: flex; align-items: center; gap: 8px; padding: 10px 16px; border: 1px solid #d3e0f0; border-radius: 30px; background: #fffffff2; box-shadow: 0 4px 20px #1f3d671c; transform: translateX(-50%); white-space: nowrap; font-size: 12px; color: #45618a; pointer-events: none; }
.sr-site-loading::before { content: ""; width: 12px; height: 12px; border: 2px solid #c7d9f1; border-top-color: #3974c5; border-radius: 50%; animation: sr-spin 1s linear infinite; }
.sr-site-error { position: absolute; top: 25%; left: 50%; width: min(410px, calc(100% - 32px)); padding: 25px; border: 1px solid #e1e7ef; border-radius: 12px; background: #fff; box-shadow: 0 8px 45px #19375d26; text-align: center; transform: translateX(-50%); }
.sr-site-error strong { display: block; margin-bottom: 8px; font-size: 15px; }
.security-browser .sr-site-error p { margin: 8px 0 16px; color: #6e7c90; }
.sr-blocked-message { position: absolute; left: 16px; right: 16px; bottom: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 12px; border: 1px solid #ead3a8; border-radius: 8px; background: #fffcf3; color: #7d6031; box-shadow: 0 4px 15px #2d3b5610; }
.sr-browser-status { display: flex; justify-content: space-between; flex: 0 0 auto; flex-wrap: wrap; gap: 4px 12px; padding: 5px 12px; border-top: 1px solid #e0e7ef; background: #f8fafc; color: #718096; font-size: 10px; }
.sr-page-status::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: #b3becc; }
.sr-page-status.is-connected::before { background: #399174; }
.sr-context-status { text-align: right; }
.sr-extension-panel { position: absolute; z-index: 10; top: 7px; right: 14px; display: flex; flex-direction: column; width: min(372px, calc(100% - 24px)); max-height: calc(100% - 20px); overflow: auto; padding: 18px; border: 1px solid #cbd8ea; border-radius: 12px; background: #fff; box-shadow: 0 14px 55px #18345533, 0 2px 8px #18345518; }
.sr-extension-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 14px; }
.sr-eyebrow { display: block; margin-bottom: 4px; color: #607fa4; font-size: 9px; font-weight: 800; letter-spacing: 1.4px; }
.sr-extension-heading h3 { color: #213855; font-size: 16px; line-height: 1.5; }
.sr-extension-heading .sr-icon-button { margin: -5px -7px 0 0; }
.sr-extension-page { display: flex; flex-direction: column; gap: 3px; padding: 11px 12px; margin-bottom: 15px; border: 1px solid #e1e8f3; border-radius: 8px; background: #f6f9fd; }
.sr-extension-page strong { font-size: 12px; color: #355273; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr-extension-page span { font-size: 10px; color: #6b809b; overflow-wrap: anywhere; }
.sr-label { display: block; margin-bottom: 7px; color: #455d7a; font-size: 11px; font-weight: 700; }
.sr-scope { display: flex; gap: 7px; min-width: 0; margin: 0 0 15px; padding: 0; border: 0; }
.sr-scope legend { padding: 0; }
.sr-scope-option { display: flex; flex: 1; align-items: center; justify-content: center; gap: 7px; padding: 8px 7px; border: 1px solid #d8e1ee; border-radius: 7px; color: #697a90; font-size: 12px; cursor: pointer; }
.sr-scope-option.is-selected { border-color: #9ab7e0; background: #eef5ff; color: #2c60a9; }
.sr-scope-option input { margin: 0; accent-color: #2c65bf; }
.sr-field { display: block; margin-bottom: 14px; }
.sr-input { display: block; width: 100%; min-width: 0; min-height: 38px; padding: 8px 10px; border: 1px solid #d1dcea; border-radius: 7px; background: #fff; color: #334c6c; font-size: 12px !important; }
.sr-question { resize: vertical; min-height: 86px; max-height: 180px; line-height: 1.65; }
.sr-question::placeholder { color: #92a0b1; }
.sr-run { width: 100%; min-height: 40px; }
.security-browser .sr-panel-note { margin-top: 9px; color: #8491a3; font-size: 10px; line-height: 1.7; }
.security-browser .sr-connected-note { margin-top: 12px; padding-top: 11px; border-top: 1px solid #e7edf4; color: #5d7aa1; font-size: 11px; line-height: 1.7; }
.sr-error { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 1px solid #e9c7c0; border-radius: 7px; background: #fff7f5; color: #a34736; font-size: 11px; overflow-wrap: anywhere; }
.security-browser .sr-extension-form .sr-error { margin-bottom: 12px; }
.sr-report-overlay { position: absolute; z-index: 11; inset: 14px 18px 16px; display: flex; flex-direction: column; min-height: 0; overflow: hidden; border: 1px solid #ced8e6; border-radius: 12px; background: #fff; box-shadow: 0 20px 80px #15294550, 0 0 0 9999px #172b461f; }
.sr-report-heading { display: flex; justify-content: space-between; gap: 12px; padding: 17px 20px 12px; flex: 0 0 auto; border-bottom: 1px solid #edf0f5; }
.sr-report-title { min-width: 0; }
.sr-report-title h3 { color: #243955; font-size: 18px; }
.security-browser .sr-report-subtitle { margin-top: 5px; color: #72839b; font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr-report-actions { display: flex; flex: 0 0 auto; flex-wrap: wrap; gap: 7px; padding: 10px 20px; border-bottom: 1px solid #e2e8ef; }
.sr-report-actions .sr-button { font-size: 11px !important; }
.security-browser .sr-report-stale { flex: 0 0 auto; padding: 9px 20px; border-bottom: 1px solid #edd9ac; background: #fff9ed; color: #87672e; font-size: 11px; }
.sr-report-status { padding: 12px 20px; color: #6482a6; font-size: 12px; background: #f6f9fe; }
.sr-artifact-error { margin: 12px 20px; flex-shrink: 0; }
.sr-report-frame { display: block; flex: 1; width: 100%; min-height: 0; border: 0; background: #edf1f5; }
@keyframes sr-spin { to { transform: rotate(360deg); } }
@keyframes sr-pulse { 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .sr-site-loading::before, .sr-extension-toggle.is-busy::after { animation: none; } }
@media (max-width: 700px) { .sr-browser-controls { padding: 6px; gap: 0; } .sr-browser-address { padding: 0 8px; margin: 0 3px; } .sr-browser-controls .sr-icon-button { width: 28px; } .sr-last-report { padding: 4px 7px; } .sr-browser-status { padding: 5px 8px; } .sr-context-status { display: none; } .sr-extension-panel { right: 8px; width: min(372px, calc(100% - 16px)); padding: 15px; } .sr-report-overlay { inset: 7px; } .sr-report-heading { padding: 13px 12px 10px; } .sr-report-title h3 { font-size: 15px; } .sr-report-actions { padding: 8px 12px; gap: 5px; } .sr-report-actions .sr-button { padding: 5px 8px; min-height: 36px; } .sr-extension-toggle { margin-right: 5px; padding: 4px 8px; } .sr-browser-tab { padding: 0 10px; } }
/* The fetched report uses the same external stylesheet under the application's CSP. */
@media screen { .report-page ~ .report-page { margin-top: 16px; } body:has(.report-page) > .toolbar { display: none; } }
@media screen and (max-width: 760px) { body > .report-page { width: calc(100% - 24px); min-height: 0; margin: 12px; padding: 22px; } }
.viewer-browser-tabs[data-surface="security"] { display: flex; align-items: flex-end; gap: 4px; }
