/* Reference results geometry, scoped to Discovery; surrounding app filters and setup are unchanged. */
#discoveryVoiceLibrary .discovery-result-views{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:6px 0 14px}
#discoveryVoiceLibrary .discovery-result-chip{border:1px solid var(--line);background:var(--surface);border-radius:99px;height:32px;padding:0 6px 0 13px;display:inline-flex;gap:8px;align-items:center;font-weight:700;font-size:12px;color:var(--muted)}
#discoveryVoiceLibrary .discovery-result-chip b{font-size:11px;background:var(--appearance-blue-soft,var(--blue-soft));border-radius:99px;padding:1px 8px;color:var(--muted)}
#discoveryVoiceLibrary .discovery-result-chip[aria-pressed=true]{background:var(--blue);border-color:var(--blue);color:#fff}#discoveryVoiceLibrary .discovery-result-chip[aria-pressed=true] b{background:rgba(255,255,255,.22);color:#fff}#discoveryVoiceLibrary .discovery-result-views>.primary{margin-left:auto}
.discovery-results-layout{display:grid!important;grid-template-columns:minmax(340px,440px) minmax(0,1fr)!important;gap:18px;align-items:start}.discovery-results-layout .ml-list-frame{min-width:0}.discovery-results-layout .ml-category{background:var(--surface);border:1px solid var(--line);border-radius:14px;margin-bottom:10px;overflow:hidden}.discovery-results-layout .ml-category-toggle{padding:13px 14px;font-size:13px;font-weight:800}.discovery-results-layout .ml-resource-list{padding:6px}.discovery-results-layout .discovery-result-row{display:flex;gap:11px;width:100%;text-align:left;background:none;border:1px solid transparent;border-radius:11px;padding:11px 10px;position:relative}.discovery-results-layout .discovery-result-row[aria-pressed=true]{background:var(--blue-soft);border-color:color-mix(in srgb,var(--blue) 35%,transparent);box-shadow:inset 3px 0 var(--blue)}.discovery-result-row .ml-resource-icon{width:32px;height:32px;border-radius:9px;flex:none}.discovery-result-row .ml-resource-copy{min-width:0;flex:1}.discovery-result-row .ml-resource-name{font-weight:700;font-size:13px;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.discovery-result-row .discovery-row-description{color:var(--muted);font-size:12px;margin-top:2px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.discovery-result-row .ml-resource-date{display:none}.discovery-result-status{font-size:10.5px;font-weight:800;border-radius:99px;padding:1px 9px;background:var(--blue-soft);color:var(--blue);display:inline-block;margin-top:7px;width:fit-content}
.discovery-results-reader{position:sticky!important;top:54px;height:calc(var(--discovery-reader-viewport,100vh) - 70px);min-height:480px;background:var(--surface);border:1px solid var(--line);border-radius:16px;display:flex!important;flex-direction:column;overflow:hidden!important;padding:0!important;min-width:0}.discovery-reader-header{padding:16px 22px 0;flex:none}.discovery-reader-top{display:flex;gap:8px;align-items:center;flex-wrap:wrap;justify-content:space-between}.discovery-reader-header>h3{margin:12px 0 4px;font-size:22px;line-height:1.25;letter-spacing:-.015em;font-weight:800;overflow-wrap:anywhere}.discovery-reader-meta{color:var(--muted);font-size:12px}.discovery-reader-tabs{display:flex;gap:20px;margin-top:14px;border-bottom:1px solid var(--line)}.discovery-reader-tabs button{background:none;border:0;padding:9px 0;font-weight:700;color:var(--muted);border-bottom:2px solid transparent;margin-bottom:-1px;font-size:12.5px}.discovery-reader-tabs button[aria-selected=true]{color:var(--blue);border-color:var(--blue)}.discovery-reader-body{flex:1;min-height:0;overflow:auto;padding:18px 22px 24px;scroll-behavior:smooth}.discovery-reader-body h3{font-size:14px;margin:20px 0 8px}.discovery-reader-body h3:first-child{margin-top:0}.discovery-reader-body p{margin:0 0 10px;font-size:13.5px;line-height:1.65;overflow-wrap:anywhere}.discovery-reader-body li{margin-bottom:12px;font-size:13.5px;line-height:1.65;overflow-wrap:anywhere}.discovery-reader-body pre{white-space:pre-wrap;overflow-wrap:anywhere}.discovery-results-reader .ml-reading-content{max-height:none!important;overflow:visible!important;height:auto!important}.discovery-results-reader .discovery-analysis-card{padding:0;border:0;box-shadow:none;background:transparent}.discovery-reader-actions{border-top:1px solid var(--line);padding:12px 22px;display:flex;gap:10px;align-items:center;flex-wrap:wrap;background:var(--surface);flex:none}.discovery-reader-actions:empty{display:none}.discovery-reader-actions .market-library-card-actions{display:flex;gap:10px;flex-wrap:wrap;margin:0}.discovery-reader-actions .danger-action{color:var(--appearance-danger-text,#b83232);background:var(--surface);border-color:var(--appearance-danger-text,#b83232)}.discovery-results-reader [hidden]{display:none!important}.discovery-results-reader [data-discovery-source]{border:1px solid var(--line);border-radius:10px;padding:9px 12px;margin-block:8px}.discovery-review-notice{display:flex;align-items:center;justify-content:space-between;gap:14px;background:var(--blue-soft);color:var(--ink);padding:10px 22px;flex:none;border-bottom:1px solid var(--line)}.discovery-review-notice[hidden]{display:none}.discovery-review-notice button{flex:none}.discovery-reader-back{display:none}.discovery-results-layout.reader-focus{grid-template-columns:minmax(0,1fr)!important}.discovery-results-layout.reader-focus>.ml-list-frame{display:none}.discovery-results-layout.reader-focus>.discovery-results-reader{width:100%;max-width:900px;justify-self:center}
@media(max-width:980px){.discovery-results-layout{grid-template-columns:minmax(0,1fr)!important}.discovery-results-layout .discovery-results-reader{position:fixed!important;inset:0 auto auto 0;z-index:1200;width:var(--discovery-reader-width,100vw);height:var(--discovery-reader-viewport,100dvh);min-height:0;max-height:none;border-radius:0;border:0;transform:translateX(100%);transition:transform .2s;visibility:hidden}.discovery-results-layout.reader-open>.discovery-results-reader{transform:none;visibility:visible}.discovery-reader-back{display:inline-flex}.discovery-results-layout.reader-focus>.discovery-results-reader{max-width:none}.discovery-reader-header{padding:16px 22px 0}}
@media(prefers-reduced-motion:reduce){.discovery-results-reader{transition:none!important}.discovery-reader-body{scroll-behavior:auto}}
#discoveryVoiceLibrary .discovery-group-review{font-size:10.5px;font-weight:800;background:var(--appearance-warning-soft,#fcf0d8);color:var(--appearance-warning-text,#9a5f06);border-radius:99px;padding:1px 9px;margin-left:auto;white-space:nowrap}#discoveryVoiceLibrary .discovery-row-origin{display:block;font-size:10.5px;font-weight:700;color:var(--muted);margin-bottom:3px}#discoveryVoiceLibrary .discovery-results-layout .ml-resource-copy{display:block;min-width:0}#discoveryVoiceLibrary .discovery-results-layout .ml-resource-meta{font-size:11px;font-weight:600;line-height:1.5;white-space:normal}#discoveryVoiceLibrary .discovery-results-layout .discovery-row-description{font-size:12px;font-weight:400;line-height:1.5}#discoveryVoiceLibrary .discovery-results-layout .ml-category-toggle{display:flex;align-items:center;gap:10px;text-align:left}
/* The existing Discovery pane sizing uses ID-specific important declarations. */
#discovery-partner-view #discoveryVoiceLibrary .discovery-results-reader{display:flex!important;flex-direction:column!important;position:sticky!important;top:54px!important;height:calc(var(--discovery-reader-viewport,100vh) - 70px)!important;min-height:480px!important;max-height:none!important;overflow:hidden!important;padding:0!important;align-self:start!important}
#discovery-partner-view #discoveryVoiceLibrary .discovery-reader-body{flex:1 1 auto!important;min-height:0!important;overflow:auto!important;height:auto!important;max-height:none!important;padding:18px 22px 24px!important}
#discovery-partner-view #discoveryVoiceLibrary .discovery-reader-header,#discovery-partner-view #discoveryVoiceLibrary .discovery-reader-actions,#discovery-partner-view #discoveryVoiceLibrary .discovery-review-notice{flex:0 0 auto!important}
#discovery-partner-view #discoveryVoiceLibrary .discovery-reader-tabs{display:flex!important;gap:20px!important;border-bottom:1px solid var(--line)!important;background:transparent!important;border-radius:0!important;padding:0!important;margin-top:14px!important}
#discovery-partner-view #discoveryVoiceLibrary .discovery-reader-tabs button{background:transparent!important;border:0!important;border-bottom:2px solid transparent!important;border-radius:0!important;box-shadow:none!important;padding:9px 0!important;min-height:0!important;height:auto!important;font-size:12.5px!important;font-weight:700!important;color:var(--muted)!important}
#discovery-partner-view #discoveryVoiceLibrary .discovery-reader-tabs button[aria-selected=true]{color:var(--blue)!important;border-bottom-color:var(--blue)!important}
#discovery-partner-view #discoveryVoiceLibrary .discovery-result-chip{border-radius:99px!important;height:32px!important;min-height:32px!important;padding:0 6px 0 13px!important;font-size:12px!important;box-shadow:none!important}
#discovery-partner-view #discoveryVoiceLibrary .discovery-reader-actions .danger-action{color:var(--appearance-danger-text,#b83232)!important;background:var(--surface)!important;border-color:var(--appearance-danger-text,#b83232)!important}
@media(max-width:980px){#discovery-partner-view #discoveryVoiceLibrary .discovery-results-reader{position:fixed!important;inset:0 auto auto 0!important;width:var(--discovery-reader-width,100vw)!important;height:var(--discovery-reader-viewport,100dvh)!important;min-height:0!important;max-height:none!important;border:0!important;border-radius:0!important;z-index:1200!important}#discovery-partner-view #discoveryVoiceLibrary .discovery-reader-back{display:inline-flex!important}}
#discovery-partner-view #discoveryVoiceLibrary .ml-list-frame{max-height:none;overflow:visible;scrollbar-gutter:auto}
#discovery-partner-view #discoveryVoiceLibrary .discovery-reader-back{display:none!important}
@media(max-width:980px){#discovery-partner-view #discoveryVoiceLibrary .discovery-reader-back{display:inline-flex!important}}
#discovery-partner-view #discoveryVoiceLibrary.results-content-narrow .discovery-results-layout{grid-template-columns:minmax(0,1fr)!important}
#discovery-partner-view #discoveryVoiceLibrary.results-content-narrow .discovery-results-reader{position:fixed!important;inset:0 auto auto 0!important;z-index:1200!important;width:var(--discovery-reader-width,100vw)!important;height:var(--discovery-reader-viewport,100dvh)!important;min-height:0!important;max-height:none!important;max-width:none!important;border-radius:0!important;border:0!important;transform:translateX(100%);visibility:hidden}
#discovery-partner-view #discoveryVoiceLibrary.results-content-narrow .reader-open>.discovery-results-reader{transform:none;visibility:visible}
#discovery-partner-view #discoveryVoiceLibrary.results-content-narrow .discovery-reader-back{display:inline-flex!important}
