/* Sherlock UI: componentes nativos Blade de Web Visibility. */
.sh-shell, .sh-shell * { box-sizing: border-box; }
.sh-shell {
    margin: 0;
    display: grid;
    grid-template-columns: var(--sh-sidebar-width) minmax(0, 1fr);
    min-height: 100vh;
    background: var(--sh-canvas);
    color: var(--sh-text);
    font: var(--sh-font-size)/var(--sh-line-height) var(--sh-font);
    font-synthesis: none;
}
.sh-shell a { color: var(--sh-accent-strong); text-decoration: none; }
.sh-shell a:hover { text-decoration: underline; }
.sh-shell button, .sh-shell input, .sh-shell select, .sh-shell textarea { font: inherit; }
.sh-shell button { cursor: pointer; }
.sh-shell h1, .sh-shell h2, .sh-shell h3, .sh-shell p { margin-top: 0; }
.sh-shell h2 { font-size: 20px; line-height: 1.35; letter-spacing: -.025em; margin-bottom: 12px; }
.sh-shell h3 { font-size: 16px; margin-bottom: 12px; }
.sh-shell p { margin-bottom: 16px; }
.sh-shell small { font-size: 12px; }
.sh-shell :is(a, button, input, select, textarea, summary, [tabindex]):focus-visible { outline: 3px solid var(--sh-accent-strong); outline-offset: 3px; }
.sh-shell [hidden] { display: none !important; }
.sh-icon { width: 20px; height: 20px; flex: 0 0 20px; vertical-align: middle; }
.sh-skip-link { position: fixed; left: 16px; top: -100px; z-index: 100; padding: 12px 16px; background: white; border: 1px solid var(--sh-accent-strong); border-radius: var(--sh-radius-sm); }
.sh-skip-link:focus { top: 12px; }
.sh-sidebar { position: sticky; top: 0; height: 100vh; height: 100dvh; overflow-y: auto; display: flex; flex-direction: column; padding: 24px 12px 16px; background: var(--sh-sidebar-bg); border-right: 1px solid var(--sh-border); }
.sh-sidebar__header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sh-shell .sh-brand { display: flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 4px; color: var(--sh-text); text-decoration: none; font-size: 14px; font-weight: 650; letter-spacing: -.02em; }
.sh-brand small { display: block; font-size: 12px; color: var(--sh-text-secondary); font-weight: 400; letter-spacing: 0; margin-top: 2px; }
.sh-brand-mark { display: flex; align-items: center; justify-content: center; width: 30px; height: 34px; flex-shrink: 0; color: var(--sh-accent-strong); font-size: 24px; font-weight: 750; letter-spacing: -3px; padding-right: 3px; }
.sh-nav { margin-top: 24px; }
.sh-nav .sh-nav__section { margin: 24px 10px 8px; font-size: 12px; color: var(--sh-text-secondary); font-weight: 500; }
.sh-nav .sh-nav__section:first-child { margin-top: 0; }
.sh-shell .sh-nav__link { display: flex; align-items: center; gap: 10px; padding: 10px; min-height: 44px; margin: 2px 0; border-radius: var(--sh-radius-sm); color: var(--sh-text); font-size: 13px; line-height: 1.4; }
.sh-shell .sh-nav__link:hover { text-decoration: none; background: var(--sh-muted-bg); }
.sh-shell .sh-nav__link[aria-current="page"] { background: var(--sh-accent-soft); color: var(--sh-accent-strong); font-weight: 600; }
.sh-nav__link .sh-icon { width: 18px; height: 18px; flex-basis: 18px; }
.sh-sidebar__footer { margin-top: auto; padding: 32px 8px 0; }
.sh-pilot-note { font-size: 12px; color: var(--sh-text-secondary); }
.sh-pilot-note small { display: block; margin-top: 4px; }
.sh-account { display: flex; gap: 8px; align-items: center; border-top: 1px solid var(--sh-border); padding-top: 16px; }
.sh-account strong { font-size: 13px; overflow-wrap: anywhere; }
.sh-account__avatar { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; flex: 0 0 28px; background: var(--sh-accent-soft); color: var(--sh-accent-strong); border-radius: 50%; font-size: 12px; }
.sh-shell .sh-account__link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 0; border: 0; background: none; color: var(--sh-text-secondary); text-align: left; font-size: 12px; }
.sh-main { display: flex; flex-direction: column; min-width: 0; }
.sh-main:focus { outline: none; }
.sh-topbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: var(--sh-topbar-height); padding: 4px 28px; border-bottom: 1px solid var(--sh-border); background: var(--sh-topbar-bg); color: var(--sh-text-secondary); font-size: 12px; }
.sh-topbar__context, .sh-private { display: flex; align-items: center; gap: 8px; }
.sh-topbar__separator { padding: 0 8px; color: var(--sh-border-strong); }
.sh-private { white-space: nowrap; }
.sh-private .sh-icon { width: 14px; height: 14px; flex-basis: 14px; }
.sh-content { flex: 1; width: 100%; max-width: var(--sh-content-max); margin: 0 auto; padding: 40px 48px 48px; }
.sh-footer { width: calc(100% - 96px); max-width: calc(var(--sh-content-max) - 96px); margin: 0 auto; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 20px 0; border-top: 1px solid var(--sh-border); color: var(--sh-text-secondary); font-size: 12px; }
.sh-breadcrumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: var(--sh-text-secondary); font-size: 12px; margin-bottom: 24px; }
.sh-breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.sh-breadcrumbs li + li::before { content: '/'; padding-right: 8px; color: var(--sh-text-secondary); }
.sh-page-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.sh-page-header__text { min-width: 0; }
.sh-shell .sh-eyebrow { color: var(--sh-accent-strong); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 12px; }
.sh-page-title { font-size: var(--sh-title-size); font-weight: 700; letter-spacing: -.035em; line-height: 1.15; margin: 0 0 12px; overflow-wrap: anywhere; }
.sh-shell .sh-page-description { color: var(--sh-text-secondary); margin: 0; max-width: 68ch; overflow-wrap: anywhere; }
.sh-actions, .sh-shell .actions, .sh-shell .form-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.sh-actions { flex-shrink: 0; }
.sh-shell .button, .sh-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 16px; border: 1px solid var(--sh-accent-strong); border-radius: var(--sh-radius-sm); background: var(--sh-accent-strong); color: white; font-weight: 600; line-height: 1.5; text-align: center; text-decoration: none; }
.sh-shell .button:hover { background: #6938aa; border-color: #6938aa; text-decoration: none; }
.sh-shell .button.secondary { background: var(--sh-surface); border-color: var(--sh-border-strong); color: var(--sh-text); }
.sh-shell .button.secondary:hover { background: var(--sh-muted-bg); }
.sh-shell :is(button, input, select, textarea):disabled { cursor: not-allowed; opacity: .65; }
.sh-icon-button { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex-shrink: 0; border: 1px solid var(--sh-border); border-radius: var(--sh-radius-sm); color: var(--sh-text); background: var(--sh-surface); }
.sh-menu-toggle, .sh-menu-close { display: none; }
.sh-shell .panel { min-width: 0; margin-bottom: 24px; padding: 24px; border: 1px solid var(--sh-border); border-radius: var(--sh-radius-lg); background: var(--sh-surface); }
.sh-shell .panel.flush { padding: 0; overflow: hidden; }
.sh-shell .panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.sh-shell .panel-heading h2 { margin: 0; }
.sh-shell .flush > .panel-heading { margin: 0; padding: 24px; }
.sh-shell .section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 32px 0 16px; }
.sh-shell .section-heading h2 { margin: 0; }
.sh-shell .section-heading a, .sh-shell .table-action { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.sh-shell .status-banner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 300px); gap: 24px; border-left: 3px solid var(--sh-accent); background: var(--sh-surface-muted); }
.sh-shell .status-banner h2 { margin-bottom: 8px; }
.sh-shell .status-banner p { color: var(--sh-text-secondary); margin-bottom: 12px; }
.sh-shell .status-banner .sh-eyebrow { color: var(--sh-accent-strong); }
.sh-shell .status-banner p:last-child { margin-bottom: 0; }
.sh-review-form { align-self: center; display: flex; flex-direction: column; gap: 12px; }
.sh-shell .sh-review-form .sh-field { margin: 0; }
.sh-review-form .button { align-self: flex-start; }
.sh-shell .stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0 0 24px; }
.sh-shell .stat { padding: 16px; border: 1px solid var(--sh-border); border-radius: var(--sh-radius-md); background: var(--sh-surface); min-width: 0; }
.sh-shell .stat > span { color: var(--sh-text-secondary); font-size: 13px; }
.sh-shell .stat > strong { display: block; font-size: 32px; letter-spacing: -.04em; margin: 12px 0; font-weight: 600; }
.sh-shell .stat small { display: block; color: var(--sh-text-secondary); border-top: 1px solid var(--sh-border); padding-top: 12px; }
.sh-shell .stat .fine-print { margin: 8px 0 0; }
.sh-shell .fine-print, .sh-shell .muted { color: var(--sh-text-secondary); }
.sh-shell .fine-print { font-size: 12px; }
.sh-shell .table-wrap { max-width: 100%; overflow-x: auto; }
.sh-shell table { width: 100%; border-collapse: collapse; text-align: left; font-size: 14px; }
.sh-shell th { background: var(--sh-surface-muted); color: var(--sh-text-secondary); font-size: 12px; font-weight: 600; white-space: nowrap; }
.sh-shell th, .sh-shell td { padding: 12px 20px; border-bottom: 1px solid var(--sh-border); }
.sh-shell td { vertical-align: middle; max-width: 340px; overflow-wrap: anywhere; }
.sh-shell tr:last-child td { border-bottom: 0; }
.sh-shell td strong, .sh-shell td small { display: block; }
.sh-shell td small { color: var(--sh-text-secondary); margin-top: 4px; }
.sh-shell .empty { text-align: center; padding: 32px 24px; color: var(--sh-text-secondary); }
.sh-shell .badge, .sh-status, .sh-shell .priority { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; border-radius: var(--sh-radius-sm); padding: 4px 8px; color: var(--sh-text-secondary); background: var(--sh-muted-bg); line-height: 1.5; white-space: nowrap; }
.sh-shell .badge:is(.correct, .completed, .measured, .real), .sh-status[data-tone="success"] { background: #f0f8f3; color: var(--sh-positive); }
.sh-shell .badge:is(.attention, .pending, .partial), .sh-status[data-tone="warning"], .sh-shell .priority { background: #fff7e8; color: var(--sh-warning); }
.sh-shell .badge:is(.critical, .failed), .sh-status[data-tone="danger"], .sh-shell .priority.alta { background: #fff0f2; color: var(--sh-negative); }
.sh-shell .badge.processing, .sh-status[data-tone="info"] { background: #edf4ff; color: var(--sh-info); }
.sh-shell .badge.simulated, .sh-status[data-tone="simulation"] { background: var(--sh-accent-soft); color: var(--sh-accent-strong); }
.sh-shell .notice { border: 1px solid #e4d9b4; border-radius: var(--sh-radius-md); background: #fff7e8; color: var(--sh-warning); padding: 16px 20px; margin-bottom: 24px; }
.sh-shell .notice p:last-child, .sh-shell .notice ul:last-child { margin-bottom: 0; }
.sh-shell .notice.success { border-color: #cfe0d6; background: #f0f8f3; color: var(--sh-positive); }
.sh-shell .notice.error { border-color: #ebd0d5; background: #fff0f2; color: var(--sh-negative); }
.sh-shell .notice h2 { font-size: 18px; }
.sh-field { min-width: 0; margin-bottom: 20px; }
.sh-field > label { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-weight: 500; margin-bottom: 8px; }
.sh-field__requirement { font-size: 12px; font-weight: 400; color: var(--sh-text-secondary); }
.sh-shell :is(input, select, textarea) { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--sh-control-border); border-radius: var(--sh-radius-sm); color: var(--sh-text); background: var(--sh-surface); max-width: 100%; }
.sh-shell [aria-invalid="true"] { border-color: var(--sh-negative); }
.sh-shell .sh-field__help { color: var(--sh-text-secondary); font-size: 12px; margin: 8px 0 0; }
.sh-shell .sh-field__error { color: var(--sh-negative); font-size: 13px; margin: 8px 0 0; }
.sh-shell .form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.sh-shell details > summary { cursor: pointer; min-height: 44px; padding: 10px 0; font-weight: 500; }
.sh-shell details > summary + * { margin-top: 20px; }
.sh-shell .context-list dt { font-weight: 600; margin-top: 16px; }
.sh-shell .context-list dd { margin: 6px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.sh-shell .schedule-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 0 16px; margin-bottom: 20px; border-bottom: 1px solid var(--sh-border); }
.sh-shell .schedule-row small { display: block; color: var(--sh-text-secondary); }
.sh-shell .sh-findings { list-style: none; margin: 0 0 20px; padding: 0; }
.sh-findings li { display: flex; align-items: baseline; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--sh-border); }
.sh-shell .sh-section-help { color: var(--sh-text-secondary); font-size: 13px; margin-bottom: 0; }
.sh-table-note { padding: 16px 20px; border-top: 1px solid var(--sh-border); }
.sh-shell label { display: block; margin-bottom: 20px; font-weight: 500; min-width: 0; }
.sh-shell label > :is(input, select, textarea) { margin-top: 8px; }
.sh-shell label small { display: block; color: var(--sh-text-secondary); font-weight: 400; margin-top: 6px; }
.sh-shell textarea { resize: vertical; line-height: 1.6; min-height: 110px; }
.sh-shell input[type="hidden"] { display: none; }
.sh-shell input[type="file"] { overflow: hidden; }
.sh-shell input[type="file"]::file-selector-button { font: inherit; border: 0; border-right: 1px solid var(--sh-border); padding: 2px 12px 2px 0; margin-right: 12px; color: var(--sh-accent-strong); background: transparent; cursor: pointer; }
.sh-shell :is(input, select, textarea):focus-visible { outline-offset: 2px; }
.sh-shell .field-error { display: block; color: var(--sh-negative); font-size: 13px; font-weight: 400; margin-top: 8px; }
.sh-shell .form-field { margin-bottom: 20px; min-width: 0; }
.sh-shell .form-field > label { margin-bottom: 0; }
.sh-shell .sh-field > label { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; }
.sh-shell .field-heading { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.sh-shell .field-requirement { display: inline-block; border-radius: 4px; padding: 2px 7px; background: var(--sh-muted-bg); color: var(--sh-text-secondary); font-size: 12px; font-weight: 400; }
.sh-shell .field-requirement.required { color: var(--sh-accent-strong); background: var(--sh-accent-soft); }
.sh-shell .field-help { color: var(--sh-text-secondary); font-size: 12px; font-weight: 400; line-height: 1.6; margin: 8px 0 0; max-width: 68ch; }
.sh-shell .check { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-height: 44px; font-weight: 400; margin: 8px 0 16px; cursor: pointer; }
.sh-shell .check input { width: 18px; height: 18px; min-height: 18px; flex: 0 0 18px; margin: 0; padding: 0; accent-color: var(--sh-accent-strong); }
.sh-shell .check .field-error { flex-basis: 100%; }
.sh-shell fieldset { border: 1px solid var(--sh-border); border-radius: var(--sh-radius-md); padding: 20px; margin: 0 0 20px; min-width: 0; }
.sh-shell legend { padding: 0 8px; font-weight: 500; }
.sh-shell .review-options > .field-help { margin: 0 0 16px; }
.sh-shell .review-options > .form-field:last-child { margin-bottom: 0; }
.sh-shell .form-grid.compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sh-shell .inline-form { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin-bottom: 24px; }
.sh-shell .inline-form label { margin: 0; }
.sh-shell .inline-form select { min-width: 180px; }
.sh-shell .panel.narrow { max-width: 640px; }
.sh-shell .text-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px; border: 0; color: var(--sh-accent-strong); background: transparent; text-align: left; }
.sh-shell .text-button.danger, .sh-shell .button.danger { color: var(--sh-negative); }
.sh-shell .button.danger { border-color: var(--sh-negative); background: #fff0f2; }
.sh-shell .text-button:hover { text-decoration: underline; }
.sh-shell .button.full { width: 100%; justify-content: space-between; }
.sh-shell .site-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 32px; }
.sh-shell .site-card { display: block; min-width: 0; padding: 24px; border: 1px solid var(--sh-border); border-radius: var(--sh-radius-lg); background: var(--sh-surface); color: var(--sh-text); }
.sh-shell .site-card:hover { border-color: var(--sh-accent); text-decoration: none; }
.sh-shell .site-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.sh-shell .site-icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: var(--sh-accent-soft); border-radius: var(--sh-radius-md); color: var(--sh-accent-strong); font-size: 18px; font-weight: 600; }
.sh-shell .site-card h3 { font-size: 18px; overflow-wrap: anywhere; }
.sh-shell .site-card p { color: var(--sh-text-secondary); overflow-wrap: anywhere; font-size: 13px; }
.sh-shell .card-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; border-top: 1px solid var(--sh-border); padding-top: 16px; font-size: 12px; color: var(--sh-text-secondary); }
.sh-shell .card-bottom strong { color: var(--sh-accent-strong); font-weight: 500; }
.sh-shell a.stat:hover { border-color: var(--sh-accent); text-decoration: none; }
.sh-shell a.stat { color: var(--sh-text); }
.sh-shell .method-note { display: flex; gap: 16px; padding: 24px; background: var(--sh-surface-muted); border: 1px solid var(--sh-border); border-radius: var(--sh-radius-lg); margin-top: 32px; }
.sh-shell .method-note > span { color: var(--sh-accent-strong); }
.sh-shell .method-note p { color: var(--sh-text-secondary); margin: 6px 0 0; font-size: 13px; }
.sh-shell .metrics-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.sh-shell .metric { min-width: 0; border: 1px solid var(--sh-border); border-radius: var(--sh-radius-md); padding: 20px; background: var(--sh-surface-muted); }
.sh-shell .metric > div { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; font-size: 13px; }
.sh-shell .metric > strong { display: block; font-size: 20px; font-weight: 600; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 240px; overflow-y: auto; margin: 16px 0; }
.sh-shell .metric > small, .sh-shell .metric > a { display: block; color: var(--sh-text-secondary); font-size: 12px; }
.sh-shell .metric > a { color: var(--sh-accent-strong); min-height: 44px; padding-top: 12px; }
.sh-shell .finding { border-top: 1px solid var(--sh-border); margin-top: 24px; padding-top: 24px; break-inside: avoid; }
.sh-shell .finding-head { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; color: var(--sh-text-secondary); margin-bottom: 16px; }
.sh-shell .finding p { overflow-wrap: anywhere; }
.sh-shell .recommendation { background: var(--sh-accent-soft); border-radius: var(--sh-radius-md); padding: 16px 20px; margin-bottom: 16px; }
.sh-shell .recommendation strong { color: var(--sh-accent-strong); font-size: 13px; }
.sh-shell .recommendation p { margin: 6px 0 0; }
.sh-shell .evidence-links { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 13px; }
.sh-shell .evidence-links a { display: inline-flex; align-items: center; min-height: 44px; }
.sh-shell .link-list { display: flex; flex-direction: column; gap: 8px; }
.sh-shell .link-list a { display: inline-flex; align-items: center; min-height: 44px; }
.sh-shell .skill-version { border-top: 1px solid var(--sh-border); margin-top: 20px; padding-top: 16px; }
.sh-shell pre { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 450px; overflow: auto; padding: 20px; border: 1px solid var(--sh-border); border-radius: var(--sh-radius-md); background: var(--sh-surface-muted); font-size: 12px; }
.sh-shell .wrap { white-space: pre-wrap; overflow-wrap: anywhere; }
.sh-shell .breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; color: var(--sh-text-secondary); font-size: 12px; margin-bottom: 24px; }
.sh-shell .breadcrumbs a { color: var(--sh-text-secondary); }
.sh-shell .scan-limit { max-width: 560px; }
.sh-shell .scan-limit input { max-width: 180px; }
.sh-shell .scan-results .scan-url { display: block; overflow-wrap: anywhere; font-size: 13px; }
.sh-shell .scan-results .check { margin: 0; }
.sh-shell .scan-results td small { display: block; }
.sh-shell .sr-only { position: absolute; left: 0; top: 0; overflow: hidden; clip: rect(0, 0, 0, 0); clip-path: inset(50%); white-space: nowrap; width: 1px; height: 1px; padding: 0; border: 0; }
.sh-guest { display: block; }
.sh-guest .sh-main { min-height: 100vh; justify-content: center; }
.sh-guest .sh-content { flex: 0 1 auto; max-width: 1100px; }
.sh-shell .login-shell { display: grid; grid-template-columns: 1fr 1.1fr; background: var(--sh-surface); border: 1px solid var(--sh-border); border-radius: var(--sh-radius-lg); overflow: hidden; }
.sh-shell .login-story { padding: 48px 40px; background: var(--sh-sidebar-bg); border-right: 1px solid var(--sh-border); display: flex; flex-direction: column; justify-content: center; }
.sh-shell .login-story h1 { font-size: 36px; letter-spacing: -.035em; line-height: 1.2; margin: 0 0 24px; }
.sh-shell .login-story > p { color: var(--sh-text-secondary); }
.sh-shell .story-lines { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; color: var(--sh-text-secondary); font-size: 13px; }
.sh-shell .login-form { padding: 48px 40px; }
.sh-shell .login-form h2 { font-size: 28px; }
.sh-shell .login-form .sh-brand-mark { margin-bottom: 24px; }
.sh-shell .login-form form { margin: 24px 0; }
.sh-shell .login-form .fine-print { margin-bottom: 0; }
.sh-report__heading .badge { margin-bottom: 12px; }
.sh-report__module { margin-top: 24px; }
@media (max-width: 1280px) {
    .sh-content { padding: 32px 28px 40px; }
    .sh-footer { width: calc(100% - 56px); }
    .sh-shell .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sh-shell .status-banner { grid-template-columns: minmax(0, 1fr); }
    .sh-review-form { max-width: 400px; }
    .sh-shell .site-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sh-shell .form-grid.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
    .sh-shell { display: block; }
    .sh-sidebar { position: static; height: auto; width: 100%; border-right: 0; border-bottom: 1px solid var(--sh-border); }
    .sh-enhanced .sh-sidebar { position: fixed; z-index: 60; inset: 0 auto 0 0; width: min(88vw, 300px); height: 100vh; height: 100dvh; transform: translateX(-100%); visibility: hidden; transition: transform .18s ease; padding-bottom: max(16px, env(safe-area-inset-bottom)); }
    .sh-enhanced .sh-sidebar[data-open="true"] { transform: translateX(0); visibility: visible; }
    .sh-enhanced .sh-menu-toggle, .sh-enhanced .sh-menu-close { display: inline-flex; }
    .sh-backdrop { position: fixed; z-index: 50; inset: 0; background: rgb(20 20 20 / 25%); }
    .sh-menu-is-open { overflow: hidden; }
    .sh-topbar { padding: 4px 16px; }
    .sh-topbar__separator { padding: 0 4px; }
    .sh-topbar__context { min-width: 0; }
    .sh-private { font-size: 12px; }
    .sh-private .sh-icon { display: none; }
    .sh-content { padding: 24px 16px 32px; }
    .sh-footer { width: calc(100% - 32px); }
    .sh-page-header { flex-direction: column; gap: 20px; margin-bottom: 24px; }
    .sh-page-title { font-size: 30px; }
    .sh-shell .panel { padding: 20px; }
    .sh-shell .panel.flush { padding: 0; }
    .sh-shell .flush > .panel-heading { padding: 20px; }
    .sh-shell .form-grid { grid-template-columns: minmax(0, 1fr); }
    .sh-shell th, .sh-shell td { padding: 12px 16px; }
    .sh-shell .table-wrap table { min-width: 560px; }
    .sh-shell .schedule-row { flex-direction: column; align-items: flex-start; }
    .sh-review-form { max-width: none; }
    .sh-findings li { align-items: flex-start; }
    .sh-shell .form-grid.compact, .sh-shell .metrics-grid, .sh-shell .site-grid { grid-template-columns: minmax(0, 1fr); }
    .sh-shell .metric > div { flex-wrap: wrap; }
    .sh-shell .inline-form { align-items: stretch; }
    .sh-shell .inline-form label { flex: 1 1 100%; }
    .sh-shell .inline-form select { min-width: 0; }
    .sh-shell .login-shell { grid-template-columns: minmax(0, 1fr); }
    .sh-shell .login-story { padding: 28px 24px; border-right: 0; border-bottom: 1px solid var(--sh-border); }
    .sh-shell .login-story h1 { font-size: 28px; margin-bottom: 16px; }
    .sh-shell .login-form { padding: 28px 24px; }
    .sh-shell .story-lines { display: none; }
}
@media (max-width: 400px) {
    .sh-private { max-width: 62px; white-space: normal; }
    .sh-shell .stats-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .sh-enhanced .sh-sidebar { transition: none; } }
@media print {
    @page { size: A4; margin: 14mm; @bottom-right { content: counter(page); font: 9pt sans-serif; color: #667085; } }
    .sh-shell { display: block; background: white; color: black; font-size: 11px; }
    .sh-sidebar, .sh-topbar, .sh-footer, .sh-backdrop, .sh-skip-link, .sh-shell button, .sh-shell .no-print { display: none !important; }
    .sh-main { display: block; }
    .sh-content { max-width: none; padding: 0; }
    .sh-shell .panel { break-inside: avoid; border-color: #ccc; }
    .sh-shell .stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .sh-shell .table-wrap { overflow: visible; }
    .sh-shell .table-wrap table { min-width: 0; }
    .sh-shell a { color: inherit; }
    .sh-shell .sh-page-header { display: block; }
    .sh-shell .sh-actions { display: none; }
    .sh-shell .sh-report .panel { break-inside: auto; border: 0; padding: 0; }
    .sh-shell .sh-report__heading { break-inside: avoid; break-after: avoid; }
    .sh-shell .sh-report__module { break-inside: avoid; margin-top: 16px; }
    .sh-shell .sh-report .finding { margin-top: 12px; padding-top: 12px; }
    .sh-shell .sh-report h2, .sh-shell .sh-report h3 { break-after: avoid; }
    .sh-shell pre, .sh-shell .metric > strong { max-height: none; overflow: visible; }
    .sh-shell .metrics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sh-shell .badge, .sh-shell .sh-status { display: inline-block; border: 1px solid currentColor; }
}

/* Reportes: composición compacta sobre los componentes y tokens de Sherlock. */
.sh-shell .sh-report-view .sh-page-header { margin-bottom: var(--sh-space-6); gap: var(--sh-space-4); }
.sh-shell .sh-report-view .sh-eyebrow { margin-bottom: var(--sh-space-2); }
.sh-shell .sh-report-view .sh-page-title { font-size: 30px; margin-bottom: var(--sh-space-2); }
.sh-shell .sh-report-view .breadcrumbs { margin-bottom: var(--sh-space-4); }
.sh-shell .sh-report-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sh-space-4); margin-bottom: var(--sh-space-4); }
.sh-shell .sh-report-view .sh-report-summary > .panel { padding: var(--sh-space-4); margin-bottom: 0; }
.sh-shell .sh-report-summary h2 { margin-bottom: var(--sh-space-2); }
.sh-shell .sh-report-summary p:last-child { margin-bottom: 0; }
.sh-shell .sh-report-counts { display: flex; flex-wrap: wrap; gap: var(--sh-space-3); margin: var(--sh-space-2) 0; }
.sh-shell .sh-report-counts > div { display: flex; align-items: baseline; gap: var(--sh-space-1); }
.sh-shell .sh-report-counts dt { font-size: 12px; color: var(--sh-text-secondary); }
.sh-shell .sh-report-counts dd { order: -1; margin: 0; font-size: 26px; font-weight: 600; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.sh-shell .sh-report-run-states { display: flex; gap: var(--sh-space-2); flex-wrap: wrap; margin-top: var(--sh-space-2); }
.sh-shell .sh-report-view .sh-report-findings { margin-bottom: var(--sh-space-4); }
.sh-shell .sh-report-view .sh-report-findings > .panel-heading { padding: var(--sh-space-3) var(--sh-space-4); gap: var(--sh-space-2); border-bottom: 1px solid var(--sh-border); }
.sh-shell .sh-report-findings h2, .sh-shell .sh-report-pages > h2 { font-size: 18px; }
.sh-shell .sh-report-finding { padding: var(--sh-space-3) var(--sh-space-4); break-inside: avoid; }
.sh-shell .sh-report-finding + .sh-report-finding, .sh-shell .sh-report-more { border-top: 1px solid var(--sh-border); }
.sh-shell .sh-report-finding__head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sh-space-2); margin-bottom: var(--sh-space-2); }
.sh-shell .sh-report-finding__head small { color: var(--sh-text-secondary); }
.sh-shell .sh-report-finding h3 { font-size: 16px; margin-bottom: var(--sh-space-1); }
.sh-shell .sh-report-finding p { margin-bottom: var(--sh-space-2); overflow-wrap: anywhere; }
.sh-shell .sh-report-finding__detail summary { color: var(--sh-accent-strong); font-size: 12px; padding: var(--sh-space-1) 0; }
.sh-shell .sh-report-finding__detail p:first-of-type { margin-top: var(--sh-space-2); }
.sh-shell .sh-report-more > summary { padding: var(--sh-space-3) var(--sh-space-4); color: var(--sh-accent-strong); }
.sh-shell .sh-report-empty { padding: var(--sh-space-3) var(--sh-space-4); }
.sh-shell .sh-report-view .sh-report-page, .sh-shell .sh-report-view .sh-report-fold, .sh-shell .sh-report-view .sh-report-month-review { padding: 0; margin-bottom: var(--sh-space-3); }
.sh-shell .sh-report-page > summary, .sh-shell .sh-report-fold > summary, .sh-shell .sh-report-month-review > summary { padding: var(--sh-space-3) var(--sh-space-4); overflow-wrap: anywhere; }
.sh-shell .sh-report-page > summary .fine-print, .sh-shell .sh-report-month-review > summary > span { margin-left: var(--sh-space-2); }
.sh-shell .sh-report-page[open] > summary, .sh-shell .sh-report-month-review[open] > summary { border-bottom: 1px solid var(--sh-border); }
.sh-shell .sh-report-page__body, .sh-shell .sh-report-month-review__body { padding: var(--sh-space-4); margin-top: 0; }
.sh-shell .sh-report-page__seo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, .4fr); gap: var(--sh-space-4); align-items: start; }
.sh-shell .sh-report-page__seo > :only-child { grid-column: 1 / -1; }
.sh-shell .sh-report-module { min-width: 0; }
.sh-shell .sh-report-module__heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: var(--sh-space-2); }
.sh-shell .sh-report-module__heading h3 { margin-bottom: var(--sh-space-1); }
.sh-shell .sh-report-origin { margin-bottom: var(--sh-space-2); }
.sh-shell .sh-report-metrics { table-layout: fixed; }
.sh-shell .sh-report-metrics :is(th, td) { padding: var(--sh-space-2); vertical-align: top; white-space: normal; }
.sh-shell .sh-report-metrics thead th:first-child { width: 27%; }
.sh-shell .sh-report-metrics thead th:nth-child(3) { width: 100px; }
.sh-shell .sh-report-metrics thead th:last-child { width: 44px; }
.sh-shell .sh-report-metrics tbody th { background: transparent; color: var(--sh-text); font-size: 14px; font-weight: 400; overflow-wrap: anywhere; }
.sh-shell .sh-report-metrics tr:last-child th { border-bottom: 0; }
.sh-shell .sh-report-value { white-space: pre-wrap; overflow-wrap: anywhere; max-height: none; }
.sh-shell .sh-report-evidence { display: inline-flex; justify-content: center; align-items: center; width: 28px; min-height: 28px; }
.sh-shell .sh-report-evidence .sh-icon { width: 16px; height: 16px; flex-basis: 16px; }
.sh-shell .sh-report-performance-pair { display: grid; gap: var(--sh-space-3); min-width: 0; }
.sh-shell .sh-report-performance { border: 1px solid var(--sh-border); border-radius: var(--sh-radius-md); padding: var(--sh-space-3); background: var(--sh-surface-muted); }
.sh-shell .sh-report-performance__metric + .sh-report-performance__metric { border-top: 1px solid var(--sh-border); padding-top: var(--sh-space-2); margin-top: var(--sh-space-2); }
.sh-shell .sh-report-performance__label { display: flex; align-items: center; gap: var(--sh-space-1); color: var(--sh-text-secondary); font-size: 12px; }
.sh-shell .sh-report-performance__label > span { flex: 1; }
.sh-shell .sh-report-performance__metric p { margin-bottom: var(--sh-space-1); }
.sh-shell .sh-report-score { display: flex; align-items: baseline; gap: var(--sh-space-1); flex-wrap: wrap; }
.sh-shell .sh-report-score strong { font-size: 28px; font-weight: 600; font-variant-numeric: tabular-nums; }
.sh-shell .sh-report-score > span:not(.badge) { color: var(--sh-text-secondary); font-size: 12px; }
.sh-shell .sh-report-score .badge { margin-left: auto; }
.sh-shell .sh-field-performance { white-space: normal; overflow-wrap: anywhere; }
.sh-shell .sh-field-performance__list { margin: var(--sh-space-2) 0 0; }
.sh-shell .sh-field-performance__item + .sh-field-performance__item { border-top: 1px solid var(--sh-border); padding-top: var(--sh-space-2); margin-top: var(--sh-space-2); }
.sh-shell .sh-field-performance__item dt { font-size: 13px; font-weight: 600; }
.sh-shell .sh-field-performance__item dd { margin: var(--sh-space-1) 0 0; }
.sh-shell .sh-field-performance__item dd:not(.fine-print) { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sh-space-2); }
.sh-shell .sh-field-performance__item strong { font-variant-numeric: tabular-nums; }
.sh-shell .sh-field-performance--compact .sh-field-performance__item dt { font-size: 12px; }
.sh-shell .sh-report-performance meter { display: block; width: 100%; height: 6px; margin: var(--sh-space-2) 0; appearance: none; border: 0; border-radius: var(--sh-radius-sm); background: var(--sh-muted-bg); --sh-meter-fill: var(--sh-text-secondary); }
.sh-shell .sh-report-performance meter.correct { --sh-meter-fill: var(--sh-positive); }
.sh-shell .sh-report-performance meter.attention { --sh-meter-fill: var(--sh-warning); }
.sh-shell .sh-report-performance meter.critical { --sh-meter-fill: var(--sh-negative); }
.sh-shell .sh-report-performance meter::-webkit-meter-bar { border: 0; background: var(--sh-muted-bg); height: 6px; }
.sh-shell .sh-report-performance meter::-webkit-meter-optimum-value { background: var(--sh-meter-fill); }
.sh-shell .sh-report-performance meter::-moz-meter-bar { background: var(--sh-meter-fill); }
.sh-shell .sh-report-content { border-top: 1px solid var(--sh-border); padding-top: var(--sh-space-4); margin-top: var(--sh-space-4); }
.sh-shell .sh-report-content__heading { display: flex; gap: var(--sh-space-2); align-items: baseline; justify-content: space-between; }
.sh-shell .sh-report-content__heading h3 { margin-bottom: var(--sh-space-2); font-size: 14px; }
.sh-shell .sh-report-fold__body { padding: 0 var(--sh-space-4) var(--sh-space-4); }
.sh-shell .sh-report-comparison-dates h2 { font-size: 18px; }
.sh-shell .sh-report-comparison-dates p { margin-bottom: var(--sh-space-2); }
.sh-shell .sh-report-view .sh-report-comparison-page { padding: var(--sh-space-4); }
.sh-shell .sh-report-comparison-area { margin-top: var(--sh-space-4); }
.sh-shell .sh-report-comparison-table table { table-layout: fixed; }
.sh-shell .sh-report-comparison-table :is(th, td) { white-space: normal; padding: var(--sh-space-2) var(--sh-space-3); vertical-align: top; }
.sh-shell .sh-report-comparison-table thead th:first-child { width: 29%; }
.sh-shell .sh-report-comparison-table thead th:last-child { width: 13%; }
.sh-shell .sh-report-comparison-table tbody th[scope="row"] { font-size: 14px; font-weight: 400; color: var(--sh-text); background: transparent; overflow-wrap: anywhere; }
.sh-shell .sh-report-comparison-group th { border-top: 1px solid var(--sh-border); }
.sh-shell .sh-report-delta { font-variant-numeric: tabular-nums; }
.sh-shell .sh-report-period { gap: var(--sh-space-3); margin-bottom: var(--sh-space-4); }
.sh-shell .sh-report-period .stat { padding: var(--sh-space-3) var(--sh-space-4); }
.sh-shell .sh-report-period .stat > strong { font-size: 26px; margin: var(--sh-space-1) 0 0; }
.sh-shell .sh-report-site { margin-bottom: var(--sh-space-6); }
.sh-shell .sh-report-month-review__body > :last-child { margin-bottom: 0; }
@media (max-width: 1200px) {
    .sh-shell .sh-report-page__seo { grid-template-columns: minmax(0, 1fr); }
    .sh-shell .sh-report-performance-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
    .sh-shell .sh-report-summary { grid-template-columns: minmax(0, 1fr); gap: var(--sh-space-3); }
    .sh-shell .sh-report-page__body, .sh-shell .sh-report-month-review__body { padding: var(--sh-space-3); }
    .sh-shell .sh-report-metrics { display: block; }
    .sh-shell .sh-report-metrics thead { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
    .sh-shell .sh-report-metrics tbody { display: block; }
    .sh-shell .sh-report-metrics tbody tr { display: grid; grid-template-columns: minmax(80px, .7fr) minmax(0, 1fr) 32px; column-gap: var(--sh-space-2); border-bottom: 1px solid var(--sh-border); padding: var(--sh-space-2) 0; }
    .sh-shell .sh-report-metrics tbody tr:last-child { border-bottom: 0; }
    .sh-shell .sh-report-metrics :is(th, td) { border: 0; padding: 0; max-width: none; }
    .sh-shell .sh-report-metrics tbody th { grid-column: 1; grid-row: 1 / 3; }
    .sh-shell .sh-report-metrics td:nth-child(2) { grid-column: 2; grid-row: 1; }
    .sh-shell .sh-report-metrics td:nth-child(3) { grid-column: 2; grid-row: 2; padding-top: var(--sh-space-1); }
    .sh-shell .sh-report-metrics td:last-child { grid-column: 3; grid-row: 1 / 3; }
    .sh-shell .sh-report-performance-pair { grid-template-columns: minmax(0, 1fr); }
    .sh-shell .sh-report-page > summary .fine-print { display: block; margin: var(--sh-space-1) 0 0 var(--sh-space-4); }
    .sh-shell .sh-report-period { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sh-shell .sh-report-period .stat { padding: var(--sh-space-3); }
    .sh-shell .sh-report-month-review > summary > span { margin-left: var(--sh-space-1); }
}
@media (pointer: coarse) {
    .sh-shell .sh-report-evidence { min-height: 44px; width: 32px; }
    .sh-shell .sh-report-finding__detail summary { min-height: 44px; padding-top: var(--sh-space-3); }
}
@media print {
    .sh-shell .sh-report-view { font-size: 11px; }
    .sh-shell .sh-report-view h1 { font-size: 24px; }
    .sh-shell .sh-report-view h2 { font-size: 16px; }
    .sh-shell .sh-report-view h3 { font-size: 12px; }
    .sh-shell .sh-report-view p { margin-bottom: 8px; }
    .sh-shell .sh-report-view .fine-print { font-size: 10px; }
    .sh-shell .sh-report-view details > summary { min-height: 0; padding: 6px 0; }
    .sh-shell .sh-report-view details > summary + * { margin-top: 8px; }
    .sh-shell .sh-report-view .evidence-links a { min-height: 0; padding: 0; }
    .sh-shell .sh-report-view .badge, .sh-shell .sh-report-view .priority { font-size: 10px; padding: 2px 4px; }
    .sh-shell .sh-report-view .sh-report-period { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .sh-shell .sh-report-view .sh-report-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .sh-shell .sh-report-view .sh-report-summary > .panel { padding: 8px; border: 1px solid var(--sh-border-strong); }
    .sh-shell .sh-report-view .sh-report-counts dd { font-size: 20px; }
    .sh-shell .sh-report-view .sh-report-counts dt { font-size: 10px; }
    .sh-shell .sh-report-view .panel { break-inside: auto; }
    .sh-shell .sh-report-view details::details-content { content-visibility: visible; display: block; }
    .sh-shell .sh-report-view .sh-report-page, .sh-shell .sh-report-view .sh-report-month-review { border: 0; }
    .sh-shell .sh-report-view :is(.sh-report-page__body, .sh-report-month-review__body) { padding: 0; }
    .sh-shell .sh-report-view .sh-report-page__seo { display: block; }
    .sh-shell .sh-report-view .sh-report-performance-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 12px; }
    .sh-shell .sh-report-view :is(summary, h2, h3, .sh-report-module__heading) { break-after: avoid; }
    .sh-shell .sh-report-view :is(.sh-report-finding, .sh-report-performance, .sh-report-summary, .sh-report-content, tr) { break-inside: avoid; }
    .sh-shell .sh-report-view .sh-report-finding { padding: 8px 0; }
    .sh-shell .sh-report-view .sh-report-more > summary { padding-left: 0; }
    .sh-shell .sh-report-view :is(.sh-report-evidence, .table-action) { min-height: 0; width: auto; }
    .sh-shell .sh-report-view .sh-report-evidence .sr-only, .sh-shell .sh-report-view .sh-report-metrics thead .sr-only { position: static; width: auto; height: auto; clip: auto; clip-path: none; overflow: visible; white-space: normal; font-size: 9px; }
    .sh-shell .sh-report-view .sh-report-evidence .sh-icon { display: none; }
    .sh-shell .sh-report-view :is(table, .sh-report-metrics) { display: table; }
    .sh-shell .sh-report-view tbody { display: table-row-group; }
    .sh-shell .sh-report-view thead { display: table-header-group; }
    .sh-shell .sh-report-view .sh-report-metrics thead { position: static; width: auto; height: auto; clip-path: none; overflow: visible; }
    .sh-shell .sh-report-view .sh-report-metrics tbody tr { display: table-row; border: 0; }
    .sh-shell .sh-report-view .sh-report-metrics :is(th, td) { display: table-cell; padding: 6px; border-bottom: 1px solid var(--sh-border); font-size: 10px; }
    .sh-shell .sh-report-view .sh-report-metrics thead th:last-child { width: 60px; }
    .sh-shell .sh-report-view .sh-report-comparison-table table { min-width: 0; }
    .sh-shell .sh-report-view .sh-report-comparison-table :is(th, td) { font-size: 10px; }
    .sh-shell .sh-report-view .table-wrap { max-width: none; }
    .sh-shell .sh-report-view .sh-report-value { max-height: none; overflow: visible; }
    .sh-shell .sh-report-view :is(form, .no-print) { display: none !important; }
}

/* Analysis journey uses the shared Sherlock tokens and form components. */
.sh-analysis-view { min-width: 0; }
.sh-analysis-view :is(p, dd, a, summary, label) { overflow-wrap: anywhere; }
.sh-analysis-view :is(.context-list, .sh-analysis-context) dd { white-space: pre-wrap; }
.sh-analysis-context { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.5rem; margin: 1rem 0; }
.sh-analysis-context dt { font-weight: 600; margin-bottom: .25rem; }
.sh-analysis-context dd { margin: 0; overflow-wrap: anywhere; }
.sh-analysis-view fieldset { border: 0; padding: 0; margin: 0 0 1.5rem; min-width: 0; }
.sh-analysis-view legend { font-weight: 700; margin-bottom: .75rem; }
.sh-analysis-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; margin-bottom: 1.5rem; }
.sh-analysis-steps > :is(a, span) { display: flex; align-items: center; gap: .65rem; padding: .8rem; border: 1px solid var(--sh-border); border-radius: var(--sh-radius-md); font-size: .95rem; }
.sh-analysis-steps > a[aria-current="step"] { background: var(--sh-accent-soft); color: var(--sh-accent-strong); font-weight: 700; }
.sh-analysis-steps > :is(a, span) > span { font-weight: 700; }
.sh-analysis-inline { display: flex; align-items: center; gap: .75rem; }
.sh-analysis-inline select { flex: 1; min-width: 0; }
.sh-analysis-inline .button { flex-shrink: 0; }
.sh-analysis-section { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--sh-border); }
.sh-analysis-view .sh-analysis-prose { white-space: pre-wrap; overflow-wrap: anywhere; margin: 1rem 0; }
.sh-analysis-view input[type="checkbox"] { flex-shrink: 0; }
@media (max-width: 600px) {
    .sh-analysis-steps, .sh-analysis-context { grid-template-columns: 1fr; gap: .5rem; }
    .sh-analysis-steps > :is(a, span) { padding: .65rem; }
    .sh-analysis-inline { align-items: stretch; flex-direction: column; }
}

/* Executive consultation charts: values remain readable without color or JS. */
.sh-shell .sh-chart { margin: .5rem 0; min-width: 0; }
.sh-shell .sh-chart-stack { display: flex; height: 18px; background: var(--sh-surface-muted); border: 1px solid var(--sh-border-strong); overflow: hidden; }
.sh-shell .sh-chart-segment { display: block; height: 100%; border-right: 1px solid var(--sh-surface); }
.sh-shell .sh-chart-critical { background: var(--sh-negative); }
.sh-shell .sh-chart-attention, .sh-shell .sh-chart-uncertain { background: var(--sh-warning); background-image: repeating-linear-gradient(45deg, transparent 0 4px, #ffffff80 4px 6px); }
.sh-shell .sh-chart-correct, .sh-shell .sh-chart-confirmed { background: var(--sh-positive); }
.sh-shell .sh-chart-unassessed, .sh-shell .sh-chart-estimated { background: var(--sh-text-secondary); background-image: repeating-linear-gradient(90deg, transparent 0 4px, #ffffff80 4px 6px); }
.sh-shell .sh-chart-reserved { background: var(--sh-accent-strong); }
.sh-shell .sh-chart-legend { display: flex; flex-wrap: wrap; gap: .3rem 1rem; margin-top: .5rem; font-size: 12px; }
.sh-shell .sh-chart-key { display: inline-block; width: 10px; height: 10px; margin-right: .25rem; border: 1px solid currentColor; }
.sh-shell .sh-chart-row { padding: .6rem 0; border-bottom: 1px solid var(--sh-border); break-inside: avoid; }
.sh-shell .sh-chart-row h3 { margin: 0; font-size: 16px; }
.sh-shell .sh-chart-row p { margin: .25rem 0; }
.sh-shell .sh-chart-row-link { display: block; color: inherit; }
.sh-shell .sh-chart-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.sh-shell .sh-chart-score > div { display: flex; align-items: baseline; flex-wrap: wrap; gap: .4rem 1rem; }
.sh-shell .sh-chart-score > div > span { margin-left: auto; font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.sh-shell .sh-chart-score meter { width: 100%; height: 20px; accent-color: var(--sh-accent-strong); }
.sh-shell .sh-chart-selector { display: flex; align-items: end; gap: .75rem; margin: .5rem 0; }
.sh-shell .sh-chart-selector label { flex: 1; min-width: 0; }
.sh-shell .sh-chart-url, .sh-shell .sh-chart figcaption { overflow-wrap: anywhere; }
.sh-shell .sh-chart svg { display: block; width: 100%; height: auto; max-height: 180px; }
.sh-shell .sh-chart-axis { stroke: var(--sh-border-strong); stroke-width: 2; }
.sh-shell .sh-chart-connection, .sh-shell .sh-chart-line { stroke: var(--sh-accent-strong); stroke-width: 3; fill: none; }
.sh-shell .sh-chart-before { stroke: var(--sh-text); stroke-width: 2; fill: var(--sh-surface); }
.sh-shell .sh-chart-after { fill: var(--sh-accent-strong); stroke: var(--sh-text); stroke-width: 1; }
.sh-shell .sh-chart-trend svg text { fill: var(--sh-text-secondary); font-size: 10px; }
.sh-shell .sh-chart-observations { font-size: 12px; padding-left: 1.2rem; }
.sh-shell .sh-review-visual { padding: 1rem; }
.sh-shell .sh-review-visual .panel-heading { padding: 0; margin-bottom: .5rem; }
.sh-shell .sh-review-visual h3 { font-size: 14px; margin-top: .75rem; }
.sh-shell .sh-secondary-counts { display: flex; flex-wrap: wrap; gap: .5rem 1rem; margin: 1rem 0; }
.sh-shell .sh-secondary-counts .stat { display: flex; flex-direction: row; gap: .4rem; padding: .4rem; border: 0; box-shadow: none; background: none; align-items: baseline; }
.sh-shell .sh-secondary-counts .stat strong { font-size: 16px; margin: 0; }
.sh-shell .sh-secondary-counts .stat small { display: none; }
.sh-shell .sh-recommendation-line { display: flex; gap: .5rem; align-items: baseline; }
.sh-shell .sh-recommendation-line h3 { font-size: 14px; flex: 1; margin: 0; }
.sh-shell .sh-recommendation-line p { flex: 1.5; font-size: 12px; margin: 0; }
.sh-shell .sh-recommendation-line .priority { white-space: nowrap; }
.sh-shell .sh-coverage-table table { min-width: 680px; table-layout: fixed; }
.sh-shell .sh-coverage-table :is(th, td) { white-space: normal; vertical-align: top; overflow-wrap: anywhere; font-size: 12px; }
.sh-shell .sh-coverage-table small { display: block; margin-top: .25rem; }
.sh-shell .sh-coverage-cell { display: block; padding-left: .4rem; border-left: 3px solid currentColor; }
.sh-shell .sh-execution-issue { border-top: 1px dashed var(--sh-border-strong); padding-top: .25rem; }
.sh-shell .sh-module-history > summary { padding: 1rem; font-weight: 600; }
.sh-shell .sh-report-site-fold > summary { padding: .5rem; }
.sh-shell [id^="finding-"] { scroll-margin-top: 1rem; }
@media (max-width: 800px) {
    .sh-shell .sh-chart-pair { grid-template-columns: minmax(0, 1fr); gap: .5rem; }
    .sh-shell .sh-chart-selector { flex-wrap: wrap; }
    .sh-shell .sh-chart-selector label { flex-basis: 100%; }
    .sh-shell .sh-recommendation-line { flex-wrap: wrap; }
    .sh-shell .sh-recommendation-line p { flex-basis: 100%; }
}
@media print {
    .sh-shell .sh-chart { break-inside: avoid; }
    .sh-shell .sh-chart-stack { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
    .sh-shell .sh-chart-legend { font-size: 9px; }
    .sh-shell .sh-chart-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sh-shell .sh-report-annex { break-before: page; }
    .sh-shell .sh-report-site-fold { border: 0; padding: 0; }
    .sh-shell .sh-chart-row { padding: 5px 0; }
}
.sh-shell .sh-opportunity-state { display: grid; grid-template-columns: minmax(140px, 1fr) minmax(0, 2fr); gap: .5rem; align-items: center; padding: .25rem 0; }
.sh-shell .sh-opportunity-state a { overflow-wrap: anywhere; }
.sh-shell .sh-budget-chart { margin-bottom: 1rem; }
.sh-shell .sh-chart svg.sh-chart-stack { width: 100%; height: 18px; }
.sh-shell .sh-chart-stack rect { stroke: var(--sh-surface); stroke-width: 1; vector-effect: non-scaling-stroke; }
.sh-shell rect.sh-chart-critical { fill: var(--sh-negative); }
.sh-shell rect.sh-chart-attention, .sh-shell rect.sh-chart-uncertain { fill: var(--sh-warning); }
.sh-shell rect.sh-chart-correct, .sh-shell rect.sh-chart-confirmed { fill: var(--sh-positive); }
.sh-shell rect.sh-chart-unassessed, .sh-shell rect.sh-chart-estimated { fill: var(--sh-text-secondary); }
.sh-shell rect.sh-chart-reserved { fill: var(--sh-accent-strong); }
.sh-shell .sh-opportunity-state meter { width: 100%; height: 20px; accent-color: var(--sh-accent-strong); }
.sh-shell .status-banner > .button { align-self: center; }
.sh-shell .sh-opportunity-state meter::-webkit-meter-optimum-value { background: var(--sh-accent-strong); }
.sh-shell .sh-opportunity-state meter::-moz-meter-bar { background: var(--sh-accent-strong); }
