.discovery-intro { padding: 10px 18px; border-bottom: 1px solid var(--border-color); display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.discovery-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sidebar { overflow: visible !important; }
.op-wordmark { display: inline-flex; align-items: center; gap: 4px; }
.op-glycan-logo { width: 46px; height: 46px; display: block; object-fit: contain; flex-shrink: 0; }
.sidebar .filter-section { gap: 4px !important; }
.discovery-intro h1 { font-size: 1.55rem; margin: 0 0 8px; }
.discovery-intro p { max-width: 85ch; margin: 8px 0; color: var(--text-secondary); line-height: 1.55; }
.discovery-modes { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.discovery-modes button { padding: 10px 14px; border: 1px solid var(--border-color); background: var(--bg-card); color: var(--text-primary); border-radius: 8px; font-family: var(--font-family); font-size: .875rem; font-weight: 500; cursor: pointer; }
.discovery-modes button[aria-pressed="true"] { background: var(--primary); color: white; border-color: var(--primary); }
.discovery-modes button:hover { box-shadow: 0 0 0 2px var(--border-color); }
.discovery-intro a { color: var(--primary-light); text-decoration: underline; }
#discovery-summary { font-weight: 600; font-size: .86rem; }
.discovery-home { padding: 8px 0 16px; }
.discovery-home h1 { font-size: 1.7rem; margin: 0 0 10px; }
.discovery-home p { margin: 8px 0; line-height: 1.5; color: var(--text-secondary); }
.discovery-home a { color: var(--primary-light); text-decoration: underline; }
.discovery-chart-scope { font-size: .8rem; line-height: 1.5; color: var(--text-secondary); margin-bottom: 10px; }
.doc-search [hidden] { display: none; }
.discovery-column-choice { display: flex; gap: 8px; align-items: center; margin: 12px 0; }
#discovery-cancer-wrap { display: flex; gap: 10px; align-items: center; margin: 12px 0; }
#discovery-cancer-wrap[hidden] { display: none; }
#hotspots-table { table-layout: auto; }
#hotspots-table th, #hotspots-table td { width: auto !important; }
#ai-prompt { width: 100%; margin: 8px 0 16px; padding: 12px; font: .8rem/1.5 'IBM Plex Mono', monospace; resize: vertical; background: var(--bg-card, white); color: var(--text-primary); border: 1px solid var(--border-color); border-radius: 4px; }
.doc-search { padding: 16px; border: 1px solid var(--border-color); border-radius: 6px; margin-bottom: 24px; }
.doc-search label { display: block; font-weight: 600; margin-bottom: 8px; }
.doc-search input { width: 100%; padding: 10px; font: inherit; border: 1px solid var(--border-color); border-radius: 4px; background: var(--bg-card, white); color: var(--text-primary); }
.doc-search p { margin: 8px 0 0; font-size: .85rem; }
.doc-search-results { display: grid; gap: 14px; margin-bottom: 24px; }
.doc-search-result { padding: 14px; border: 1px solid var(--border-color); border-radius: 6px; }
.doc-search-result a { font-weight: 600; color: var(--primary-light); }
.doc-search-result p { margin: 6px 0 0; }
.doc-content[hidden], .doc-search-results[hidden] { display: none; }
:is(.discovery-modes button, .discovery-advanced summary, .discovery-methods summary, .doc-search input):focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
@media (max-width: 760px) {
    .op-menubar { flex-wrap: wrap; padding: 0; }
    .op-brand { flex: 0 0 100%; min-width: 0; justify-content: flex-start; padding: 4px 12px; }
    .op-tabs { flex: 1 1 100%; min-width: 0; width: 100%; flex-wrap: wrap; }
    .op-tab { flex: 0 0 auto; padding: 10px 9px; font-size: .72rem; }
    body:not(.op-panel-mode) .dashboard-wrapper { flex-direction: column; overflow-y: auto; }
    body:not(.op-panel-mode) .sidebar { width: 100%; min-width: 0; max-height: none; height: auto; flex: 0 0 auto; border-right: 0; border-bottom: 1px solid var(--border-color); }
    body:not(.op-panel-mode) .sidebar .filter-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px 12px !important; }
    body:not(.op-panel-mode) .main-content { min-height: 45dvh; overflow: visible; }
    .discovery-intro { padding: 10px 14px; }
    .discovery-intro h1 { font-size: 1.3rem; }
    .discovery-modes { display: grid; }
    #hotspots-table { min-width: 540px; }
    .table-container { overflow-x: auto; }
    .op-doc { padding: 22px 16px 60px; }
    .cohort-modal, .cohort-modal-footer { max-width: 100%; }
    .cohort-modal-header { flex-wrap: wrap; }
    .cohort-modal-header > div:first-child { flex: 1 1 100%; }
    .cohort-modal-footer { flex-wrap: wrap; gap: 12px; }
}

/* One search field across protein lookup, Guide, and FAQ. */
.op-search-field { position: relative; display: flex; align-items: center; width: 100%; }
.op-search-field::before { content: ''; position: absolute; left: 17px; width: 20px; height: 20px; pointer-events: none; background: var(--text-muted); mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5' fill='none' stroke='black' stroke-width='1.8'/%3E%3Cpath d='m16 16 5 5' stroke='black' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat; }
:is(#op-gv-input, .doc-search .op-search-field input[type="search"]) { box-sizing: border-box; width: 100%; height: 54px; min-width: 0; padding: 13px 16px 13px 48px; border: 1px solid var(--border-color-strong); border-radius: 10px; background: var(--bg-card); color: var(--text-primary); font-family: var(--font-family); font-size: 1rem; font-weight: 400; line-height: 1.5; outline: none; transition: border-color .15s, box-shadow .15s; }
:is(#op-gv-input, .doc-search .op-search-field input[type="search"])::placeholder { color: var(--text-muted); font: inherit; }
:is(#op-gv-input, .doc-search .op-search-field input[type="search"]):hover { border-color: var(--primary); }
:is(#op-gv-input, .doc-search .op-search-field input[type="search"]):focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow); outline: none; }
.doc-search { padding: 0; border: 0; border-radius: 0; }
.doc-search p:empty, .op-search-status:empty { display: none; }
.op-search-status { margin: 10px 0 0; font-size: .8125rem; color: var(--text-secondary); }
.op-search-examples { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; color: var(--text-muted); font-size: .8125rem; }
.op-search-examples button { border: 1px solid var(--border-color); border-radius: 6px; background: var(--bg-card); padding: 4px 9px; color: var(--text-primary); font: inherit; cursor: pointer; }
.op-search-examples button:hover { border-color: var(--brand-accent); background: color-mix(in srgb, var(--brand-accent) 4%, white); }
.op-search-examples button:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
/* Stable alignment through grouping, column selection, and cancer splitting. */
#hotspots-table :is(th, td) { text-align: center; }
#hotspots-table :is(th, td):first-child { text-align: left; }

/* Compact symbol and wordmark share an optical height and the site's exact palette. */
.op-wordmark { gap: 9px; letter-spacing: -.025em; }
.op-glycan-logo { width: 30px; height: 34px; }
.op-wordmark > span { display: block; line-height: 1; }
/* Ready-to-type search: a clear caret and gentle focus treatment without animation. */
:is(#op-gv-input, .doc-search .op-search-field input[type="search"]) { caret-color: var(--primary); background: linear-gradient(105deg, #fff, var(--straw-tint)); box-shadow: 0 2px 8px rgb(17 123 120 / 4%); }
:is(#op-gv-input, .doc-search .op-search-field input[type="search"]):focus { background: var(--bg-card); box-shadow: 0 0 0 4px var(--primary-glow), 0 4px 16px rgb(17 123 120 / 6%); }
.op-search-field:focus-within::before { background: var(--primary); }
.op-gv-back { width: auto; flex: 0 0 auto; gap: 7px; padding: 8px 10px; font-family: var(--font-family); font-size: .8125rem; font-weight: 500; }
.op-search-examples button > span { margin-left: 5px; color: var(--text-secondary); }
.op-search-examples[hidden] { display: none; }
.support-actions { display: grid; gap: 10px; margin: 8px 0 20px; }
.support-action { display: flex; flex-direction: column; gap: 5px; padding: 16px 18px; border: 1px solid var(--border-color); border-radius: 10px; background: var(--bg-card); color: var(--text-secondary); font-size: .875rem; text-decoration: none; }
.support-action-title { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--text-primary); font-size: 1rem; font-weight: 500; }
.support-action-title > span { color: var(--primary); }
.support-action:hover { border-color: var(--primary); background: var(--straw-tint); text-decoration: none; }
.support-action:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.support-citation { margin: 8px 0; padding: 14px 18px; border-left: 3px solid var(--primary); background: var(--bg-header); border-radius: 0 8px 8px 0; font-size: .9375rem; line-height: 1.6; }

/* Suggestions are quiet shortcuts; their selection rationale stays in the tooltip. */
#op-gv-examples { gap: 8px; margin-top: 14px; }
#op-gv-examples .op-search-suggestions-label { margin-right: 3px; font-size: .8125rem; color: var(--text-secondary); }
#op-gv-examples button { display: inline-flex; align-items: center; justify-content: center; min-height: 32px; padding: 5px 12px; border-radius: 7px; font-size: .8125rem; font-weight: 500; line-height: 1.4; color: var(--primary-light); background: var(--straw-tint); border-color: var(--straw-line); }
#op-gv-examples button:hover { border-color: var(--primary); background: var(--primary-tint); }
@media (max-width: 480px) { #op-gv-examples .op-search-suggestions-label { flex-basis: 100%; } }
/* Structure starts with the model; appearance and annotation choices are opt-in. */
.op-structure-options { border: 1px solid var(--border-color); border-radius: 8px; background: var(--bg-card); }
.op-structure-options > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 14px; color: var(--text-primary); font-size: .875rem; font-weight: 500; cursor: pointer; list-style: none; }
.op-structure-options > summary::-webkit-details-marker, .op-structure-layer-options > summary::-webkit-details-marker { display: none; }
.op-structure-options > summary::after, .op-structure-layer-options > summary::after { content: ''; width: 7px; height: 7px; border-right: 1.5px solid var(--text-secondary); border-bottom: 1.5px solid var(--text-secondary); transform: rotate(45deg); margin: 0 3px 3px 8px; }
.op-structure-options[open] > summary::after, .op-structure-layer-options[open] > summary::after { transform: rotate(225deg); margin-bottom: -3px; }
.op-structure-options-body { display: flex; flex-direction: column; gap: 14px; padding: 14px; border-top: 1px solid var(--border-color); }
.op-structure-options .op-gv-styles { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.op-structure-select { display: flex; flex-direction: column; gap: 5px; min-width: 160px; flex: 1; color: var(--text-secondary); font-size: .8125rem; }
.op-structure-select select { width: 100%; min-height: 38px; padding: 7px 10px; border: 1px solid var(--border-color-strong); border-radius: 7px; background: var(--bg-card); color: var(--text-primary); font-family: var(--font-family); font-size: .875rem; }
.op-structure-options-label { color: var(--text-secondary); font-size: .8125rem; font-weight: 500; }
.op-structure-layer-options > summary { display: flex; align-items: center; justify-content: space-between; gap: 5px; padding: 4px 8px; font-size: .75rem; color: var(--text-secondary); cursor: pointer; list-style: none; }
.op-structure-options summary:focus-visible, .op-structure-select select:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.op-structure-layer-options .op-gv-3dpick-fh { display: none; }
.op-structure-options .op-gv-3dpick-note { font-size: .75rem; }
.support-funding[hidden], #support-citation-fallback[hidden] { display: none; }
.support-funding { justify-self: start; margin: 4px 0 16px; }
.support-citation-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.support-citation-heading h2 { margin: 0; }
.support-citation-heading button { font-family: var(--font-family); font-size: .8125rem; font-weight: 500; border-radius: 7px; padding: 8px 12px; }
.support-copy-status:empty { display: none; }
.support-copy-status { color: var(--text-secondary); font-size: .8125rem; }
#support-citation-fallback { width: 100%; box-sizing: border-box; padding: 12px; background: var(--bg-card); color: var(--text-primary); font: .875rem/1.5 var(--font-family); border: 1px solid var(--border-color-strong); border-radius: 8px; }
/* One protein identity block, with navigation separate from scientific metadata. */
.op-gv-protein-header { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.op-gv-protein-header .op-gv-back { align-self: flex-start; height: auto; min-height: 30px; padding: 3px 0; border: 0; border-radius: 4px; color: var(--text-secondary); font-size: .8125rem; }
.op-gv-protein-header .op-gv-back:hover { color: var(--primary); }
.op-gv-identity { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 14px; }
.op-gv-identity h2 { margin: 0; color: var(--text-primary); font-size: 1.8rem; font-weight: 600; line-height: 1.2; letter-spacing: -.02em; }
.op-gv-identity :is(span, a) { color: var(--text-secondary); font-size: .875rem; font-weight: 400; line-height: 1.5; }
.op-gv-identity a { text-decoration: underline; text-decoration-color: var(--border-color-strong); text-underline-offset: 3px; }
.op-gv-identity a:hover { color: var(--primary); text-decoration-color: currentColor; }
#op-gv-protein-name { margin: 0; color: var(--text-secondary); font-size: 1rem; line-height: 1.5; }
.op-gv-identity [hidden], #op-gv-protein-name[hidden] { display: none; }

/* Compact structure preferences, anchored to the card heading. */
.op-gv-struct-head { position: relative; flex-wrap: wrap; overflow: visible; }
.op-gv-struct-head .op-structure-options { margin-left: auto; flex: 0 0 auto; }
.op-structure-options > summary { padding: 7px 10px; font-size: .8125rem; }
.op-structure-options-body { position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; width: min(390px, calc(100vw - 64px)); max-height: 65vh; overflow-y: auto; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 10px; box-shadow: 0 12px 32px #162b3026; }
.op-structure-options .op-gv-3dpick-row { display: flex; flex-direction: column; gap: 8px; }
.op-structure-options .op-gv-3dpick-col { width: 100%; }
.op-structure-options .op-gv-3dpick-btn { width: 100%; justify-content: flex-start; }
.op-structure-options .op-gv-3dpick-btn b { margin-left: auto; }
.op-structure-options .op-gv-3dpick-fh { display: none; }
.op-ptm-actions { display: flex; gap: 12px; width: 100%; }
.op-ptm-actions button { background: none; border: 0; padding: 4px 0; color: var(--primary); font: inherit; font-size: .8125rem; cursor: pointer; }

.op-structure-options .op-gv-3dpick-btn,
.op-structure-options .op-gv-3dpick-f { display: flex; align-items: center; gap: 9px; min-height: 36px; padding: 7px 8px; border: 0; border-radius: 5px; background: transparent; box-shadow: none; font: inherit; font-size: .8125rem; color: var(--text-primary); text-align: left; }
.op-structure-options .op-gv-3dpick-btn:hover,
.op-structure-options .op-gv-3dpick-f:hover { background: var(--bg-sunken); }
.op-structure-options .op-gv-3dpick-btn::before,
.op-structure-options .op-gv-3dpick-f::before { content: ''; width: 14px; height: 14px; border: 1px solid var(--border-color-strong); border-radius: 3px; flex: 0 0 14px; }
.op-structure-options .op-gv-3dpick-btn.is-on::before,
.op-structure-options .op-gv-3dpick-f.is-on::before { content: '✓'; display: grid; place-items: center; background: var(--primary); border-color: var(--primary); color: white; font-size: 11px; }
.op-structure-options .op-gv-3dpick-btn b,
.op-structure-options .op-gv-3dpick-f b { background: none; color: var(--text-secondary); font-weight: 400; font-size: .75rem; margin-left: auto; }
.op-structure-options .op-gv-3dpick-feats { display: flex; flex-direction: column; padding-left: 14px; }
.op-structure-options .op-gv-3dpick-btn:disabled { opacity: .45; }
