:root {
    --tpdb-ink: #182235;
    --tpdb-muted: #667085;
    --tpdb-line: #d9e2ef;
    --tpdb-panel: #ffffff;
    --tpdb-bg: #f4f7fb;
    --tpdb-navy: #10233f;
    --tpdb-blue: #315f82;
    --tpdb-blue-hover: #264d6b;
    --tpdb-blue-soft: #e8f0f5;
    --tpdb-cyan: #3f7f91;
    --tpdb-green: #198c68;
    --tpdb-amber: #b56b18;
}

.btn-primary {
    --bs-btn-bg: var(--tpdb-blue);
    --bs-btn-border-color: var(--tpdb-blue);
    --bs-btn-hover-bg: var(--tpdb-blue-hover);
    --bs-btn-hover-border-color: var(--tpdb-blue-hover);
    --bs-btn-active-bg: #203f59;
    --bs-btn-active-border-color: #203f59;
    --bs-btn-disabled-bg: #7894a8;
    --bs-btn-disabled-border-color: #7894a8;
    --bs-btn-focus-shadow-rgb: 49, 95, 130;
}

.btn-outline-primary {
    --bs-btn-color: var(--tpdb-blue);
    --bs-btn-border-color: var(--tpdb-blue);
    --bs-btn-hover-bg: var(--tpdb-blue);
    --bs-btn-hover-border-color: var(--tpdb-blue);
    --bs-btn-active-bg: var(--tpdb-blue-hover);
    --bs-btn-active-border-color: var(--tpdb-blue-hover);
    --bs-btn-focus-shadow-rgb: 49, 95, 130;
}

.btn-link {
    --bs-btn-color: var(--tpdb-blue);
    --bs-btn-hover-color: var(--tpdb-blue-hover);
}

.tpdb-nav .dropdown-menu {
    border: 0;
    border-radius: 8px;
    box-shadow: 0 16px 36px rgba(9, 20, 38, 0.18);
    padding: 0.45rem;
}

.tpdb-nav .dropdown-item {
    border-radius: 6px;
    color: #26384d;
    font-weight: 700;
    padding: 0.55rem 0.75rem;
}

.tpdb-nav .dropdown-item:hover,
.tpdb-nav .dropdown-item:focus {
    background: #edf4f8;
    color: #315f82;
}

.search-module-head {
    align-items: flex-end;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.search-mode-nav {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.search-mode-nav a {
    background: #f4f8fb;
    border: 1px solid #d9e5ee;
    border-radius: 7px;
    color: #314355;
    font-size: 0.9rem;
    font-weight: 800;
    padding: 0.55rem 0.75rem;
    text-decoration: none;
}

.search-mode-nav a.active,
.search-mode-nav a:hover {
    background: #e8f0f5;
    border-color: #c9d9e4;
    color: #315f82;
}

.search-advanced-card {
    border-radius: 8px;
}

.advanced-search-layout {
    align-items: start;
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(310px, 0.36fr) minmax(0, 1fr);
}

.advanced-search-layout .search-advanced-card {
    position: sticky;
    top: 88px;
}

.advanced-search-layout .search-advanced-card .row {
    --bs-gutter-y: 0.65rem;
}

.advanced-search-layout .search-advanced-card .row > [class*="col-"] {
    flex: 0 0 100%;
    max-width: 100%;
    width: 100%;
}

.advanced-search-layout .search-card-head {
    margin-bottom: 0.85rem;
}

.advanced-search-layout .quick-query-row {
    align-items: stretch;
    grid-template-columns: 1fr;
}

.advanced-search-layout .quick-query-actions {
    align-items: stretch;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.advanced-search-layout .quick-query-actions .btn {
    justify-content: center;
}

.advanced-search-layout .quick-query-actions .btn-success {
    grid-column: 1 / -1;
}

.advanced-search-layout .advanced-filter-group {
    padding: 0.85rem;
}

.advanced-search-layout .advanced-filter-group h3 {
    margin-bottom: 0.65rem;
}

.advanced-search-layout .advanced-result-row {
    grid-template-columns: minmax(0, 1.35fr) minmax(190px, 0.65fr);
}

.search-card-head {
    align-items: center;
    border-bottom: 1px solid #e2ebf3;
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
}

.quick-query-row {
    align-items: end;
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1fr) auto;
    margin-bottom: 1rem;
}

.quick-query-actions,
.form-actions-row {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.advanced-filter-groups {
    display: grid;
    gap: 0.9rem;
}

.advanced-filter-group {
    background: #ffffff;
    border: 1px solid #dbe6ef;
    border-left: 4px solid #5b91c9;
    border-radius: 8px;
    padding: 1rem;
}

.advanced-filter-group h3 {
    color: #25364a;
    font-size: 0.92rem;
    font-weight: 900;
    margin-bottom: 0.85rem;
}

.advanced-filter-group.accent-blue {
    border-left-color: #4f8fcb;
}

.advanced-filter-group.accent-teal {
    border-left-color: #22a699;
}

.advanced-filter-group.accent-violet {
    border-left-color: #7c6ed6;
}

.advanced-filter-group.accent-coral {
    border-left-color: #e07969;
}

.sequence-query-layout {
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.34fr);
}

.sequence-query-box {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    min-height: 180px;
}

.compact-param-grid {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.method-strip {
    border-top: 1px solid #e2ebf3;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 0.85rem;
}

.method-strip span,
.evidence-chip,
.score-pill {
    background: #edf6fb;
    border: 1px solid #d6e8f3;
    border-radius: 999px;
    color: #28516f;
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1;
    padding: 0.38rem 0.55rem;
}

.score-pill {
    background: #eef9f5;
    border-color: #cdece1;
    color: #17745f;
}

.results-panel-head {
    align-items: center;
    background: #f8fbfe;
    border-bottom: 1px solid #e2ebf3;
    display: flex;
    justify-content: space-between;
    padding: 1rem;
}

.advanced-results-card {
    border-radius: 8px;
}

.results-tools {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.advanced-result-list {
    display: grid;
    gap: 0;
}

.advanced-result-row {
    align-items: stretch;
    border-bottom: 1px solid #e5edf4;
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1.45fr) minmax(220px, 0.75fr);
    padding: 1rem;
}

.advanced-result-row:hover {
    background: #f8fbff;
}

.advanced-result-row:last-child {
    border-bottom: 0;
}

.result-main {
    min-width: 0;
}

.result-title-line {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 0.55rem;
}

.result-id {
    color: #315f82;
    font-size: 1rem;
    font-weight: 900;
    text-decoration: none;
}

.result-id:hover,
.open-record-link:hover {
    color: #153f70;
    text-decoration: underline;
}

.result-chip {
    background: #eef5fb;
    border: 1px solid #d6e4ef;
    border-radius: 999px;
    color: #375169;
    font-size: 0.76rem;
    font-weight: 800;
    padding: 0.25rem 0.48rem;
}

.result-sequence {
    color: #26384d;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.result-function {
    color: #596b80;
    display: block;
    font-size: 0.88rem;
    line-height: 1.45;
    margin-top: 0.45rem;
    max-width: 100%;
    overflow: hidden;
    overflow-wrap: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.result-context {
    display: grid;
    gap: 0.65rem;
}

.context-item {
    min-width: 0;
}

.context-label {
    color: #7a8ca1;
    display: block;
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    margin-bottom: 0.2rem;
    text-transform: uppercase;
}

.context-text {
    color: #314355;
    display: block;
    font-size: 0.86rem;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.result-evidence {
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    justify-content: space-between;
}

.badge-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.pill-soft {
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.76rem;
    font-weight: 900;
    line-height: 1;
    padding: 0.36rem 0.5rem;
}

.pill-soft.amber {
    background: #fff6e8;
    color: #986018;
}

.pill-soft.violet {
    background: #f1edff;
    color: #604eb6;
}

.pill-soft.blue {
    background: #eaf4ff;
    color: #216398;
}

.pill-soft.muted-pill {
    background: #f1f5f9;
    color: #64748b;
}

.open-record-link {
    color: #315f82;
    font-size: 0.86rem;
    font-weight: 900;
    text-decoration: none;
}

.empty-state-panel {
    padding: 3rem 1rem;
    text-align: center;
}

.results-pagination {
    border-top: 1px solid #e2ebf3;
    margin-top: 0;
    padding: 0.85rem 1rem;
}

.pager-disabled {
    align-items: center;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    color: #94a3b8;
    display: inline-flex;
    font-size: 0.82rem;
    font-weight: 800;
    min-height: 31px;
    padding: 0.25rem 0.55rem;
}

.structure-filter-stack {
    grid-template-columns: 1fr;
}

@media (max-width: 991.98px) {
    .advanced-search-layout {
        grid-template-columns: 1fr;
    }

    .advanced-search-layout .search-advanced-card {
        position: static;
    }

    .advanced-search-layout .quick-query-actions {
        grid-template-columns: 1fr;
    }

    .search-module-head,
    .quick-query-row,
    .sequence-query-layout,
    .advanced-result-row {
        align-items: stretch;
        display: flex;
        flex-direction: column;
    }

    .results-panel-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.75rem;
    }

    .quick-query-actions {
        justify-content: flex-start;
    }

    .context-text {
        white-space: nowrap;
    }
}

@media (max-width: 575.98px) {
    .compact-param-grid {
        grid-template-columns: 1fr;
    }
}

html {
    font-family: Inter, "IBM Plex Sans", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    min-height: 100%;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    background:
        radial-gradient(circle at top left, rgba(44, 138, 167, 0.13), transparent 28rem),
        linear-gradient(180deg, #f8fbff 0%, var(--tpdb-bg) 42%, #eef3f9 100%);
    color: var(--tpdb-ink);
    display: flex;
    flex-direction: column;
    font-family: Inter, "IBM Plex Sans", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    min-height: 100dvh;
    padding-top: 76px;
}

a {
    color: var(--tpdb-blue);
}

.tpdb-nav {
    background: var(--tpdb-navy);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
    min-height: 64px;
}

.navbar-brand {
    letter-spacing: 0;
}

.tpdb-logo {
    height: 46px;
    width: 46px;
}

.nav-user {
    background: rgba(255, 255, 255, 0.11);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    margin-left: 0.4rem;
    padding-left: 0.9rem !important;
    padding-right: 0.9rem !important;
}

.nav-search {
    display: flex;
    flex: 0 1 360px;
    gap: 0.35rem;
    max-width: 360px;
    min-width: 240px;
}

.nav-search .form-control {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.22);
    color: #ffffff;
}

.nav-search .form-control::placeholder {
    color: rgba(255, 255, 255, 0.68);
}

.nav-search .form-control:focus {
    background: #ffffff;
    border-color: #8ad3ff;
    color: var(--tpdb-ink);
    box-shadow: 0 0 0 0.18rem rgba(138, 211, 255, 0.22);
}

.page-shell {
    align-self: center;
    flex: 1 0 auto;
    margin-left: auto;
    margin-right: auto;
    max-width: min(1760px, calc(100% - 64px));
    width: min(100%, calc(100% - 64px));
}

.tpdb-nav > .container {
    margin-left: auto;
    margin-right: auto;
}

.tpdb-card {
    background: var(--tpdb-panel);
    border: 1px solid var(--tpdb-line);
    border-radius: 8px;
    box-shadow: 0 18px 42px rgba(31, 44, 71, 0.08);
}

.tpdb-plain-card {
    background: var(--tpdb-panel);
    border: 1px solid var(--tpdb-line);
    border-radius: 8px;
}

.muted {
    color: var(--tpdb-muted);
}

.hero-panel {
    min-height: 360px;
    overflow: hidden;
    position: relative;
}

.home-search-wrap {
    background:
        radial-gradient(circle at 18% 18%, rgba(31, 95, 191, 0.12), transparent 25rem),
        radial-gradient(circle at 84% 28%, rgba(44, 138, 167, 0.12), transparent 28rem),
        radial-gradient(circle at 50% 72%, rgba(25, 140, 104, 0.08), transparent 30rem),
        linear-gradient(180deg, rgba(248, 251, 255, 0.5), rgba(248, 251, 255, 0.94));
    border: 1px solid rgba(159, 181, 207, 0.48);
    border-radius: 8px;
    box-shadow: 0 24px 60px rgba(31, 44, 71, 0.1);
    min-height: 360px;
    overflow: hidden;
    position: relative;
}

.home-search-wrap::before {
    background-image:
        linear-gradient(rgba(31, 95, 191, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(31, 95, 191, 0.045) 1px, transparent 1px);
    background-size: 58px 58px;
    content: "";
    inset: 0;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.16));
    opacity: 0.7;
    pointer-events: none;
    position: absolute;
}

.home-search-wrap::after {
    background: linear-gradient(90deg, rgba(31, 95, 191, 0.16), rgba(44, 138, 167, 0.12), rgba(25, 140, 104, 0.16));
    bottom: 0;
    content: "";
    height: 4px;
    left: 0;
    position: absolute;
    right: 0;
}

.tp5-ambient,
#tp5AmbientCanvas {
    inset: 0;
    position: absolute;
}

.tp5-ambient {
    filter: drop-shadow(0 18px 28px rgba(16, 35, 63, 0.14));
    pointer-events: none;
    z-index: 0;
}

#tp5AmbientCanvas {
    height: 100%;
    width: 100%;
}

.home-search-inner {
    max-width: min(1320px, 92vw);
    position: relative;
    z-index: 2;
}

.home-search-copy {
    max-width: 860px;
}

.home-search-form {
    max-width: min(1180px, 92vw);
}

.home-search-form .input-group {
    border-radius: 8px;
    box-shadow: 0 18px 50px rgba(16, 35, 63, 0.16);
    position: relative;
}

.home-search-form .form-control {
    min-height: 58px;
}

.home-activity-select {
    flex: 0 0 230px !important;
    max-width: 230px;
}

.hero-kicker {
    color: var(--tpdb-cyan);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
}

.hero-visual {
    background:
        linear-gradient(145deg, rgba(16, 35, 63, 0.94), rgba(28, 91, 130, 0.9)),
        url("/static/peptides/peptide-structure.svg") center/cover no-repeat;
    border-radius: 8px;
    min-height: 360px;
    color: white;
    position: relative;
}

.metric {
    border-left: 3px solid var(--tpdb-cyan);
    padding-left: 0.8rem;
}

.endpoint-metric {
    border-left: 5px solid #8ad3ff;
    padding-left: 1rem;
}

.endpoint-metric-value {
    font-size: clamp(2.4rem, 5vw, 4.2rem);
    font-weight: 850;
    line-height: 0.95;
}

.endpoint-metric-label {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-top: 0.45rem;
    text-transform: uppercase;
}

.metric-value {
    font-size: clamp(1.4rem, 2.4vw, 2.1rem);
    font-weight: 750;
}

.quick-link {
    background: #f8fbff;
    border: 1px solid var(--tpdb-line);
    border-radius: 999px;
    color: var(--tpdb-ink);
    display: inline-flex;
    font-size: 0.9rem;
    padding: 0.42rem 0.75rem;
    text-decoration: none;
}

.quick-link:hover {
    background: #eaf2ff;
    border-color: #b8cdef;
}

.section-title {
    font-size: 1.05rem;
    font-weight: 700;
}

.activity-stack {
    display: flex;
    flex-direction: column;
}

.activity-card {
    flex: 1 1 auto;
}

.activity-group-card {
    flex: 0 0 auto;
}

.activity-group-grid {
    display: grid;
    gap: 0.65rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.activity-group-item {
    background: #f8fbff;
    border: 1px solid var(--tpdb-line);
    border-radius: 8px;
    min-width: 0;
    padding: 0.72rem;
}

.activity-group-head {
    align-items: start;
    display: grid;
    gap: 0.6rem;
    grid-template-columns: minmax(0, 1fr) auto;
    margin-bottom: 0.55rem;
}

.activity-group-head span {
    color: var(--tpdb-ink);
    font-size: 0.92rem;
    font-weight: 750;
    line-height: 1.2;
}

.activity-group-head strong {
    color: var(--tpdb-blue);
    font-size: 1.05rem;
    line-height: 1;
}

.activity-group-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.activity-group-tags a {
    align-items: center;
    background: #ffffff;
    border: 1px solid #dbe7f4;
    border-radius: 999px;
    color: var(--tpdb-muted);
    display: inline-flex;
    gap: 0.35rem;
    max-width: 100%;
    min-width: 0;
    padding: 0.2rem 0.45rem;
    text-decoration: none;
}

.activity-group-tags a:hover {
    background: #eef6f7;
    border-color: #c6ddea;
    color: var(--tpdb-ink);
}

.activity-group-tags span {
    font-size: 0.76rem;
    line-height: 1.1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.activity-group-tags em {
    color: var(--tpdb-blue);
    flex: 0 0 auto;
    font-size: 0.72rem;
    font-style: normal;
    font-weight: 750;
    line-height: 1;
}

.external-dock {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--tpdb-line);
    border-radius: 8px;
    flex: 0 0 auto;
    padding: 0.85rem;
}

.resource-grid {
    display: grid;
    gap: 0.5rem;
    grid-template-columns: repeat(16, minmax(0, 1fr));
}

.resource-card {
    align-items: center;
    background: #f8fbff;
    border: 1px solid var(--tpdb-line);
    border-radius: 8px;
    color: var(--tpdb-ink);
    display: inline-flex;
    height: 38px;
    justify-content: center;
    min-height: 0;
    padding: 0;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
    width: 100%;
}

.resource-card:hover {
    border-color: #aac3e6;
    box-shadow: 0 14px 30px rgba(31, 44, 71, 0.09);
    color: var(--tpdb-ink);
    transform: translateY(-2px);
}

.resource-card img {
    height: 23px;
    width: 23px;
}

.facet-link {
    align-items: center;
    border-radius: 6px;
    color: var(--tpdb-ink);
    display: flex;
    justify-content: space-between;
    padding: 0.45rem 0.55rem;
    text-decoration: none;
}

.facet-link span:first-child,
.clamp-text {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.facet-link:hover {
    background: #f1f6fc;
}

.facet-count {
    color: var(--tpdb-muted);
    font-size: 0.82rem;
}

.download-section {
    scroll-margin-top: 92px;
}

.download-hero {
    background:
        linear-gradient(135deg, rgba(248, 251, 255, 0.96), rgba(238, 246, 247, 0.96)),
        url("/static/peptides/search-hero-bg.svg") center/cover no-repeat;
}

.download-panel {
    overflow: hidden;
}

.download-panel-head {
    align-items: center;
    background: #f8fbff;
    border-bottom: 1px solid var(--tpdb-line);
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
}

.download-panel-title {
    font-size: 0.98rem;
    font-weight: 750;
}

.download-count {
    background: #eef6f7;
    border: 1px solid #cfe5ea;
    border-radius: 999px;
    color: #155d72;
    flex: 0 0 auto;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.22rem 0.55rem;
}

.download-list {
    display: grid;
}

.download-row {
    align-items: center;
    color: var(--tpdb-ink);
    display: grid;
    gap: 0.75rem;
    grid-template-columns: 36px minmax(0, 1fr) minmax(11rem, auto);
    min-height: 76px;
    padding: 0.85rem 1.1rem;
    text-decoration: none;
}

.download-row + .download-row {
    border-top: 1px solid var(--tpdb-line);
}

.download-row:hover {
    background: #f4f9ff;
    color: var(--tpdb-ink);
}

.download-icon {
    align-items: center;
    background: #eaf2ff;
    border: 1px solid #c9dcf8;
    border-radius: 8px;
    color: var(--tpdb-blue);
    display: inline-flex;
    height: 36px;
    justify-content: center;
    width: 36px;
}

.download-icon svg {
    fill: none;
    height: 20px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    width: 20px;
}

.download-main,
.download-meta {
    min-width: 0;
}

.download-title,
.download-file {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.download-title {
    font-weight: 750;
}

.download-file {
    color: var(--tpdb-muted);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 0.78rem;
    margin-top: 0.12rem;
}

.download-meta {
    align-items: flex-end;
    color: var(--tpdb-muted);
    display: flex;
    flex-direction: column;
    font-size: 0.78rem;
    gap: 0.1rem;
    text-align: right;
}

.download-type {
    background: #fff7ed;
    border: 1px solid #f4d0a5;
    border-radius: 999px;
    color: #8a4a12;
    display: inline-block;
    font-weight: 750;
    max-width: 100%;
    overflow: hidden;
    padding: 0.15rem 0.5rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.length-filter-form {
    display: grid;
    gap: 0.35rem;
}

.length-range-control {
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--tpdb-line);
    border-radius: 8px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    min-height: 38px;
    overflow: hidden;
}

.length-range-control .form-control {
    border: 0;
    box-shadow: none;
    min-width: 0;
}

.length-range-control .form-control:focus {
    box-shadow: inset 0 0 0 0.18rem rgba(31, 95, 191, 0.12);
}

.length-range-divider {
    color: var(--tpdb-muted);
    font-weight: 700;
    padding: 0 0.15rem;
}

.length-filter-option {
    align-items: center;
    border-radius: 6px;
    color: var(--tpdb-ink);
    cursor: pointer;
    display: flex;
    gap: 0.5rem;
    padding: 0.35rem 0.55rem;
}

.length-filter-option:hover {
    background: #f1f6fc;
}

.result-table {
    table-layout: fixed;
}

.result-table th {
    color: #465366;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.sequence-text {
    color: #1c2f48;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    overflow-wrap: anywhere;
}

.sequence-cell {
    max-width: none;
}

.clamp-badge {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: bottom;
    white-space: nowrap;
}

.structure-thumb {
    align-items: center;
    background: #f8fbff;
    border: 1px solid var(--tpdb-line);
    border-radius: 8px;
    color: var(--tpdb-muted);
    display: inline-flex;
    flex-direction: column;
    font-size: 0.72rem;
    gap: 0.1rem;
    min-width: 116px;
    padding: 0.3rem;
    text-decoration: none;
}

.structure-thumb:hover {
    background: #edf7fb;
    border-color: #aac3e6;
}

.structure-thumb svg {
    height: 54px;
    width: 112px;
}

.structure-thumb line {
    stroke: #9fb5cf;
    stroke-linecap: round;
    stroke-width: 5;
}

.structure-thumb circle {
    stroke: #ffffff;
    stroke-width: 3;
}

.structure-thumb text {
    alignment-baseline: middle;
    dominant-baseline: middle;
    fill: #ffffff;
    font-size: 11px;
    font-weight: 800;
    text-anchor: middle;
}

.molstar-thumb svg rect {
    fill: #101827;
    stroke: #2c8aa7;
    stroke-width: 2;
}

.molstar-thumb .molstar-ribbon {
    fill: none;
    stroke: #8ad3ff;
    stroke-linecap: round;
    stroke-width: 11;
}

.molstar-thumb .molstar-trace {
    fill: none;
    stroke: #d8f3ff;
    stroke-linecap: round;
    stroke-width: 3;
}

.molstar-thumb .molstar-node {
    fill: #ffffff;
    stroke: #2c8aa7;
    stroke-width: 3;
}

.structure-placeholder {
    color: var(--tpdb-muted);
    font-size: 0.78rem;
}

.badge-soft {
    background: #eef6f7;
    border: 1px solid #cfe5ea;
    color: #155d72;
    font-weight: 600;
}

.metadata-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.metadata-item {
    border-bottom: 1px solid var(--tpdb-line);
    padding-bottom: 0.8rem;
}

.metadata-label {
    color: var(--tpdb-muted);
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
}

.fasta-box {
    background: #0f1f36;
    border: 0;
    border-radius: 8px;
    color: #dbeafe;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    min-height: 150px;
    resize: vertical;
}

.peptide-detail-shell {
    margin: 0 auto;
    max-width: 1200px;
}

.detail-top-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.detail-action-btn {
    align-items: center;
    background: #f5f5f5;
    border: 1px solid #d7d7d7;
    border-radius: 4px;
    color: #333;
    display: inline-flex;
    font-size: 0.8rem;
    font-weight: 800;
    min-height: 30px;
    padding: 0.32rem 0.75rem;
    text-decoration: none;
}

.detail-action-btn:hover {
    background: #ffffff;
    border-color: var(--tpdb-blue);
    color: var(--tpdb-blue);
}

.peptide-detail-header {
    align-items: flex-start;
    background: #ffffff;
    border: 1px solid #d9e2ef;
    display: flex;
    gap: 1.5rem;
    justify-content: space-between;
    margin-bottom: 1.1rem;
    padding: 1.1rem 1.25rem;
}

.peptide-detail-header h1 {
    color: #1f2937;
    font-size: clamp(1.65rem, 3vw, 2.25rem);
    font-weight: 850;
    letter-spacing: 0;
    line-height: 1.05;
    margin: 0 0 0.65rem;
}

.classification-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.42rem;
}

.classification-pill {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 4px;
    color: #ffffff;
    display: inline-flex;
    font-size: 0.76rem;
    font-weight: 850;
    line-height: 1.2;
    padding: 0.28rem 0.62rem;
}

.tag-name {
    background: #ca842a;
}

.tag-activity {
    background: #2f73c4;
}

.tag-sequence {
    background: #33865d;
}

.tag-modification {
    background: #a64d5f;
}

.detail-length-box {
    align-items: flex-end;
    border-left: 1px solid #e5edf5;
    color: var(--tpdb-muted);
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    min-width: 110px;
    padding-left: 1.25rem;
}

.detail-length-box strong {
    color: #1f2937;
    font-size: 2rem;
    line-height: 1;
}

.detail-length-box span {
    font-size: 0.8rem;
    font-weight: 700;
    margin-top: 0.25rem;
}

.name-chip-row,
.detail-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.detail-section {
    background: #ffffff;
    margin-bottom: 1.35rem;
}

.detail-section-banner {
    align-items: center;
    background: #f5f5f5;
    border: 1px solid #d9e2ef;
    color: #333;
    display: flex;
    font-size: 0.92rem;
    font-weight: 800;
    justify-content: space-between;
    padding: 0.58rem 0.95rem;
}

.detail-section-banner span:last-child {
    color: var(--tpdb-muted);
    font-size: 0.78rem;
    font-weight: 700;
}

.detail-content-block {
    background: #ffffff;
    border: 1px solid #d9e2ef;
    border-top: 0;
    margin-bottom: 1rem;
}

.detail-basic-with-structure {
    display: grid;
    grid-template-columns: minmax(360px, 0.95fr) minmax(0, 1.05fr);
    overflow: hidden;
}

.detail-basic-structure-pane {
    border-right: 1px solid #d9e2ef;
    min-width: 0;
    padding: 0.85rem;
}

.detail-basic-info-pane {
    min-width: 0;
}

.detail-basic-info-pane .detail-info-row:first-child {
    border-top: 0;
}

.detail-basic-info-pane .detail-info-row:last-child {
    border-bottom: 0;
}

.detail-basic-viz-item {
    height: 100%;
}


@media (max-width: 991.98px) {
    .detail-basic-with-structure {
        grid-template-columns: 1fr;
    }

    .detail-basic-structure-pane {
        border-bottom: 1px solid #d9e2ef;
        border-right: 0;
    }
}

.detail-info-row {
    align-items: flex-start;
    border-bottom: 1px solid #eef2f6;
    display: grid;
    gap: 1rem;
    grid-template-columns: 190px minmax(0, 1fr);
    padding: 0.72rem 0.85rem;
}

.detail-info-row:last-child {
    border-bottom: 0;
}

.detail-info-row label {
    color: #667085;
    font-size: 0.8rem;
    font-weight: 800;
    margin: 0;
    overflow-wrap: anywhere;
}

.detail-info-row > span {
    color: #111827;
    font-size: 0.86rem;
    font-weight: 650;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.detail-copy-field {
    min-width: 0;
    position: relative;
    width: 100%;
}

.detail-copy-field-inline {
    align-items: flex-start;
    display: flex;
    gap: 0.75rem;
    justify-content: flex-start;
    padding-right: 0.58rem;
}

.detail-copy-field-inline .detail-sequence {
    flex: 1 1 auto;
    min-width: 0;
}

.detail-copy-button {
    background: #eef5f8;
    border: 1px solid #d6e5ec;
    border-radius: 999px;
    color: #315f82;
    cursor: pointer;
    flex: 0 0 auto;
    font-size: 0.78rem;
    font-weight: 850;
    line-height: 1;
    padding: 0.44rem 0.72rem;
    transition: background 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}

.detail-copy-button:hover,
.detail-copy-button.is-copied {
    background: #ffffff;
    box-shadow: 0 1px 4px rgba(31, 44, 71, 0.08);
    color: #173f59;
}

.detail-copy-button-floating {
    background: rgba(219, 234, 254, 0.1);
    border-color: rgba(191, 219, 254, 0.28);
    box-shadow: 0 8px 18px rgba(2, 8, 23, 0.18);
    color: #dbeafe;
    position: absolute;
    right: 0.58rem;
    top: 0.58rem;
    z-index: 2;
}

.detail-copy-button-floating:hover,
.detail-copy-button-floating.is-copied {
    background: rgba(219, 234, 254, 0.18);
    border-color: rgba(191, 219, 254, 0.48);
    box-shadow: 0 10px 22px rgba(2, 8, 23, 0.24);
    color: #ffffff;
}

.detail-copy-field-block .fasta-box {
    padding-right: 5.3rem;
}

@media (max-width: 575.98px) {
    .detail-copy-field-inline {
        align-items: stretch;
        flex-direction: column;
    }

    .detail-copy-button {
        align-self: flex-start;
    }
}

.detail-sequence {
    font-size: 1rem;
    font-weight: 700;
}

.detail-chip {
    background: #ffffff;
    border: 1px solid #cfddee;
    border-radius: 4px;
    color: #26384f;
    display: inline-flex;
    font-size: 0.82rem;
    font-weight: 650;
    line-height: 1.25;
    min-width: 0;
    overflow-wrap: anywhere;
    padding: 0.28rem 0.52rem;
    word-break: break-word;
}

.detail-chip-name {
    background: #fff7ed;
    border-color: #f4d0a5;
    color: #8a4a12;
    font-weight: 700;
}

.detail-analysis-grid {
    display: grid;
    gap: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0;
}

.experiment-record-list {
    display: grid;
    gap: 1rem;
    padding: 1rem;
}

.experiment-card {
    border: 1px solid #d9e2ef;
    border-radius: 4px;
    overflow: hidden;
}

.experiment-card-header {
    align-items: center;
    background: #f9f9f9;
    border-bottom: 1px solid #d9e2ef;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 0.62rem 0.85rem;
}

.experiment-card-header strong {
    color: #27364b;
    font-size: 0.86rem;
}

.experiment-card-header span {
    color: var(--tpdb-muted);
    font-size: 0.78rem;
    font-weight: 800;
}

.experiment-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
}

.experiment-col {
    border-right: 1px solid #eef2f6;
    border-bottom: 1px solid #eef2f6;
    grid-column: span 6;
    min-width: 0;
    padding: 0.85rem;
}

.experiment-col:nth-child(2n),
.experiment-col:last-child {
    border-right: 0;
}

.experiment-col-wide {
    grid-column: 1 / -1;
}

.experiment-col-wide {
    border-right: 0;
}

.experiment-col h3 {
    border-bottom: 1px solid #eef2f6;
    color: var(--tpdb-blue);
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.04em;
    margin: 0 0 0.65rem;
    padding-bottom: 0.32rem;
    text-transform: uppercase;
}

.mini-row {
    align-items: flex-start;
    display: flex;
    gap: 0.45rem;
    margin-bottom: 0.42rem;
}

.mini-row label {
    color: #7a8697;
    flex: 0 0 190px;
    font-size: 0.72rem;
    font-weight: 800;
    margin: 0;
    overflow-wrap: normal;
    white-space: nowrap;
    word-break: keep-all;
}

.mini-row span {
    color: #111827;
    flex: 1 1 auto;
    font-size: 0.8rem;
    font-weight: 650;
    line-height: 1.4;
    min-width: 0;
}

.mini-row-long {
    display: grid;
    gap: 0.35rem;
}

.mini-row-long label {
    flex-basis: auto;
}

.experiment-long-chip-row {
    display: grid;
    gap: 0.45rem;
}

.detail-chip-long {
    align-items: flex-start;
    border-radius: 4px;
    display: block;
    line-height: 1.55;
    padding: 0.5rem 0.62rem;
    white-space: normal;
}

.definition-table-wrap {
    border: 1.5px solid #9fb2c7;
    border-radius: 6px;
    overflow-x: auto;
}

.definition-table {
    border-collapse: collapse;
    font-size: 0.8rem;
    min-width: 620px;
    width: 100%;
}

.definition-table th {
    background: #f7f9fc;
    border: 1.5px solid #9fb2c7;
    color: #5b6b80;
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.03em;
    padding: 0.55rem 0.65rem;
    text-align: left;
    text-transform: uppercase;
}

.definition-table td {
    border: 1.5px solid #9fb2c7;
    color: #1f2937;
    line-height: 1.5;
    padding: 0.62rem 0.65rem;
    vertical-align: top;
}

.definition-table th:first-child,
.definition-table td:first-child {
    width: 34%;
}

.definition-table-chip {
    background: #eef5ff;
    border: 1px solid #d7e7fb;
    border-radius: 4px;
    color: #315f82;
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 800;
    margin: 0 0.28rem 0.28rem 0;
    padding: 0.22rem 0.45rem;
}

.definition-table-text + .definition-table-text {
    margin-top: 0.4rem;
}

.definition-source-segment {
    display: block;
    margin-bottom: 0.38rem;
}

.definition-source-segment:last-child {
    margin-bottom: 0;
}

.definition-source-name {
    color: inherit;
    font-weight: 850;
    margin-right: 0.35rem;
}

.analysis-metric {
    border-bottom: 1px solid #eef2f6;
    display: grid;
    gap: 0.35rem;
    grid-template-columns: 170px minmax(0, 1fr);
    min-width: 0;
    padding: 0.72rem 0.85rem;
}

.analysis-metric:nth-child(2n + 1) {
    border-right: 1px solid #eef2f6;
}

.analysis-metric-wide {
    grid-column: 1 / -1;
}

.analysis-metric label {
    color: #667085;
    font-size: 0.78rem;
    font-weight: 800;
    margin: 0;
}

.analysis-metric strong {
    color: #111827;
    font-size: 0.86rem;
    overflow-wrap: anywhere;
}

.structure-detail-block {
    padding: 1rem;
}

.related-record-grid {
    display: grid;
    gap: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0;
}

.related-record-link {
    border-bottom: 1px solid #eef2f6;
    color: var(--tpdb-ink);
    display: grid;
    gap: 0.25rem;
    grid-template-columns: minmax(8rem, auto) minmax(0, 1fr) auto;
    padding: 0.85rem;
    text-decoration: none;
}

.related-record-link:nth-child(2n + 1) {
    border-right: 1px solid #eef2f6;
}

.related-record-link:hover {
    background: #f8fbff;
    color: var(--tpdb-blue);
}

.related-record-link span {
    color: var(--tpdb-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.related-record-link em {
    color: var(--tpdb-muted);
    font-size: 0.78rem;
    font-style: normal;
    font-weight: 700;
}

.property-grid {
    display: grid;
    gap: 0.9rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.property-grid > div {
    background: #f8fbff;
    border: 1px solid var(--tpdb-line);
    border-radius: 8px;
    padding: 0.75rem;
}

.property-grid strong {
    display: block;
    font-size: 1rem;
    overflow-wrap: anywhere;
}

.property-wide {
    grid-column: 1 / -1;
}

.half-life-list {
    display: grid;
    gap: 0.2rem;
    font-weight: 700;
}

.aa-chart {
    display: grid;
    gap: 0.35rem 0.5rem;
    grid-template-columns: auto minmax(0, 1fr);
}

.aa-chart-y {
    align-self: center;
    color: var(--tpdb-muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transform: rotate(-90deg);
    white-space: nowrap;
    width: 1.2rem;
}

.aa-bars {
    align-items: stretch;
    border-bottom: 1px solid var(--tpdb-line);
    border-left: 1px solid var(--tpdb-line);
    display: grid;
    gap: 0.25rem;
    grid-template-columns: repeat(20, minmax(0, 1fr));
    height: 170px;
    padding: 0.55rem 0.35rem 0;
}

.aa-bar-item {
    align-items: center;
    display: grid;
    gap: 0.18rem;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 1fr auto;
    height: 100%;
    justify-items: center;
    min-height: 0;
}

.aa-bar-value,
.aa-bar-label {
    color: var(--tpdb-muted);
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    width: 1rem;
}

.aa-bar-track {
    align-items: end;
    display: flex;
    height: 100%;
    justify-content: center;
    width: 1rem;
}

.aa-bar-fill {
    border-radius: 3px 3px 0 0;
    min-height: 2px;
    width: 0.7rem;
}

.aa-chart-x {
    color: var(--tpdb-muted);
    font-size: 0.78rem;
    font-weight: 700;
    grid-column: 2;
    letter-spacing: 0.04em;
    text-align: center;
    text-transform: uppercase;
}

.composition-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.composition-list span {
    background: #eef6f7;
    border: 1px solid #cfe5ea;
    border-radius: 999px;
    color: #155d72;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.25rem 0.55rem;
}

.pagination-bar {
    align-items: center;
    display: grid;
    gap: 0.75rem;
    grid-template-columns: 1fr auto auto;
}

.page-icon {
    align-items: center;
    display: inline-flex;
    font-size: 1.3rem;
    height: 34px;
    justify-content: center;
    line-height: 1;
    padding: 0;
    width: 38px;
}

.page-jump {
    align-items: center;
    display: flex;
    gap: 0.45rem;
}

.page-jump .form-control {
    width: 5.4rem;
}

.static-structure-image {
    background:
        radial-gradient(circle at 50% 40%, rgba(138, 211, 255, 0.26), transparent 18rem),
        linear-gradient(145deg, #10233f, #152c4b);
    border-radius: 8px;
    display: block;
    overflow: hidden;
    width: 100%;
}

.static-structure-image svg {
    display: block;
    min-height: 280px;
    width: 100%;
}

.static-structure-image rect {
    fill: rgba(255, 255, 255, 0.06);
    stroke: rgba(207, 229, 234, 0.28);
    stroke-width: 2;
}

.static-bond {
    stroke: #cfe5ea;
    stroke-linecap: round;
    stroke-width: 8;
}

.static-node circle {
    stroke: rgba(255, 255, 255, 0.88);
    stroke-width: 4;
}

.static-node text {
    alignment-baseline: middle;
    dominant-baseline: middle;
    fill: #ffffff;
    font-size: 16px;
    font-weight: 800;
    text-anchor: middle;
}

.static-caption {
    fill: rgba(255, 255, 255, 0.72);
    font-size: 16px;
    text-anchor: middle;
}

.pdb-viewer {
    background:
        radial-gradient(circle at 50% 38%, rgba(138, 211, 255, 0.2), transparent 18rem),
        linear-gradient(145deg, #10233f, #152c4b);
    border-radius: 8px;
    height: clamp(340px, 45vw, 540px);
    overflow: hidden;
    position: relative;
    width: 100%;
}

.pdb-viewer canvas {
    display: block;
}

.structure-note {
    color: var(--tpdb-muted);
    font-size: 0.86rem;
    margin-top: 0.35rem;
}

.molstar-viewer {
    background: #101827;
    border-radius: 8px;
    height: clamp(340px, 45vw, 540px);
    overflow: hidden;
    position: relative;
    width: 100%;
}

.pdb-empty {
    align-items: center;
    background: #f8fbff;
    border: 1px dashed var(--tpdb-line);
    border-radius: 8px;
    color: var(--tpdb-muted);
    display: flex;
    min-height: 180px;
    padding: 1rem;
}

.tpdb-viz-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
}

.tpdb-viz-item {
    background: #ffffff;
    border: 1px solid #d9e3ec;
    border-radius: 4px;
    overflow: hidden;
}

.tpdb-viz-title {
    align-items: center;
    background: #fafafa;
    border-bottom: 1px solid #d9e3ec;
    color: #7a8794;
    display: flex;
    font-size: 11px;
    font-weight: 800;
    gap: 10px;
    justify-content: space-between;
    min-height: 34px;
    padding: 6px 12px;
    text-transform: uppercase;
}

.tpdb-viz-controls {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: flex-end;
}

.tpdb-viz-controls button {
    background: #ffffff;
    border: 1px solid #d7e2ee;
    border-radius: 3px;
    color: #4a90e2;
    cursor: pointer;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.45;
    padding: 2px 7px;
}

.tpdb-viz-controls button:hover,
.tpdb-viz-controls button.is-active {
    background: #eef6ff;
    border-color: #9fc3ea;
}

.tpdb-viz-divider {
    background: #e1e7ef;
    display: inline-block;
    height: 16px;
    margin: 0 2px;
    width: 1px;
}

.tpdb-pdb-3d-viewer {
    background: #ffffff;
    cursor: grab;
    height: 350px;
    position: relative;
    width: 100%;
}

.tpdb-alpha-helix-svg {
    background: #ffffff;
    display: block;
    height: 350px;
    width: 100%;
}

.tpdb-pdb-3d-viewer:active {
    cursor: grabbing;
}

.detail-basic-with-structure .detail-basic-3d-viewer,
.detail-basic-with-structure .tpdb-alpha-helix-svg {
    height: 420px;
}

.tpdb-viz-info {
    background: #fbfbfb;
    border-top: 1px solid #eeeeee;
    color: #555555;
    font-size: 11px;
    line-height: 1.45;
    min-height: 30px;
    padding: 7px 10px;
}

.tpdb-viz-info strong {
    color: #333333;
}

.tpdb-model-info {
    padding: 14px 15px;
}

.tpdb-model-info .mini-row {
    border-bottom: 1px solid #eeeeee;
    display: grid;
    gap: 12px;
    grid-template-columns: 92px 1fr;
    margin: 0;
    padding: 9px 0;
}

.tpdb-model-info .mini-row:last-child {
    border-bottom: 0;
}

.tpdb-model-info .mini-row label {
    color: #777777;
    font-size: 11px;
    font-weight: 800;
    margin: 0;
}

.tpdb-model-info .mini-row span {
    color: #111827;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.45;
    word-break: break-word;
}

.tpdb-viz-error {
    align-items: center;
    color: var(--tpdb-muted);
    display: flex;
    min-height: 180px;
    padding: 20px;
}

@media (max-width: 900px) {
    .tpdb-viz-grid {
        grid-template-columns: 1fr;
    }

    .tpdb-viz-title {
        align-items: flex-start;
        flex-direction: column;
    }

    .tpdb-viz-controls {
        justify-content: flex-start;
    }
}

.feature-title {
    align-items: center;
    display: flex;
    gap: 0.55rem;
}

.feature-icon {
    align-items: center;
    background: linear-gradient(145deg, var(--tpdb-blue), var(--tpdb-cyan));
    border-radius: 8px;
    color: #ffffff;
    display: inline-flex;
    flex: 0 0 30px;
    font-size: 0.78rem;
    font-weight: 800;
    height: 30px;
    justify-content: center;
    width: 30px;
}

.feature-icon svg {
    fill: none;
    height: 18px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    width: 18px;
}

.toolbar-band {
    background: #eef4fb;
    border: 1px solid var(--tpdb-line);
    border-radius: 8px;
}

.site-footer {
    background: #4f5b67;
    color: #eef2f5;
    flex: 0 0 auto;
    margin-top: auto;
    padding: 2.4rem 0 2.1rem;
}

.footer-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: minmax(260px, 1.55fr) minmax(140px, 0.75fr) minmax(220px, 1fr) minmax(140px, 0.75fr);
    align-items: start;
}

.footer-brand {
    align-items: center;
    display: flex;
    gap: 0.9rem;
    margin-bottom: 0.9rem;
}

.footer-logo {
    height: 66px;
    width: 66px;
}

.footer-short {
    color: #ffffff;
    font-size: 1.22rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.footer-full {
    color: #d8dee6;
    font-size: 0.9rem;
}

.footer-about-text {
    color: #d8dee6;
    font-size: 0.9rem;
    line-height: 1.65;
    margin: 0 0 0.85rem;
    max-width: 32rem;
}

.footer-copy {
    align-items: center;
    color: #c9d2dc;
    display: flex;
    flex-wrap: wrap;
    font-size: 0.84rem;
    gap: 0.2rem 0.45rem;
}

.footer-beian-link {
    color: inherit;
    text-decoration: none;
    transition: color 150ms ease;
}

.footer-beian-link:hover,
.footer-beian-link:focus-visible {
    color: #ffffff;
    text-decoration: underline;
}

.footer-section h2 {
    color: #ffffff;
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    margin: 0 0 0.9rem;
    text-transform: uppercase;
}

.footer-links {
    display: grid;
    gap: 0.42rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links a,
.footer-link-button {
    background: transparent;
    border: 0;
    color: #d8dee6;
    display: inline-flex;
    font: inherit;
    font-size: 0.9rem;
    line-height: 1.35;
    padding: 0;
    text-align: left;
    text-decoration: none;
    transition: color 0.16s ease, transform 0.16s ease;
}

.footer-links a:hover,
.footer-link-button:hover {
    color: #ffffff;
    transform: translateX(2px);
}

.footer-tool-icons {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.72rem;
    max-width: 18rem;
}

.footer-tool-logo {
    align-items: center;
    display: inline-flex;
    height: 44px;
    justify-content: center;
    text-decoration: none;
    transition: opacity 0.16s ease, transform 0.16s ease;
    width: 44px;
}

.footer-tool-logo img {
    display: block;
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.18));
    height: 42px;
    width: 42px;
}

.footer-tool-logo:hover {
    opacity: 0.92;
    transform: translateY(-3px) scale(1.04);
}

@media (max-width: 991.98px) {
    .footer-grid {
        grid-template-columns: minmax(0, 1.2fr) minmax(180px, 0.8fr);
    }

    .footer-tools-section {
        grid-column: auto;
    }
}

@media (max-width: 767.98px) {
    .site-footer {
        padding: 2rem 0;
    }

    .footer-grid {
        gap: 1.5rem;
        grid-template-columns: 1fr;
    }

    .footer-brand {
        margin-bottom: 0.8rem;
    }

    .footer-logo {
        height: 58px;
        width: 58px;
    }

    .footer-about-text {
        max-width: none;
    }

    .footer-tool-icons {
        max-width: none;
    }


    body {
        padding-top: 70px;
    }

    .metadata-grid {
        grid-template-columns: 1fr;
    }

    .peptide-detail-header {
        flex-direction: column;
    }

    .detail-length-box {
        align-items: flex-start;
        border-left: 0;
        border-top: 1px solid #e5edf5;
        padding-left: 0;
        padding-top: 0.9rem;
        width: 100%;
    }

    .detail-info-row {
        grid-template-columns: 1fr;
        gap: 0.45rem;
    }

    .detail-analysis-grid,
    .related-record-grid {
        grid-template-columns: 1fr;
    }

    .experiment-grid {
        grid-template-columns: 1fr;
    }

    .experiment-col {
        border-bottom: 1px solid #eef2f6;
        border-right: 0;
        grid-column: 1;
    }

    .experiment-col:last-child {
        border-bottom: 0;
    }

    .mini-row {
        display: grid;
        gap: 0.3rem;
    }

    .mini-row label {
        flex-basis: auto;
    }

    .analysis-metric {
        grid-template-columns: 1fr;
    }

    .analysis-metric:nth-child(2n + 1),
    .related-record-link:nth-child(2n + 1) {
        border-right: 0;
    }

    .hero-panel,
    .hero-visual {
        min-height: auto;
    }

    .result-table {
        table-layout: auto;
    }

    .resource-grid {
        grid-template-columns: repeat(8, minmax(0, 1fr));
        justify-content: start;
    }

    .activity-group-grid {
        grid-template-columns: 1fr;
    }

    .home-search-form .input-group {
        display: grid;
        gap: 0.6rem;
    }

    .home-search-form .form-control,
    .home-search-form .form-select,
    .home-search-form .btn {
        border-radius: 8px !important;
        width: 100%;
    }

    .home-activity-select {
        flex: auto !important;
        max-width: none;
    }

    .nav-user {
        margin-left: 0;
        margin-top: 0.4rem;
        text-align: center;
    }

    .nav-search {
        flex: none;
        max-width: none;
        min-width: 0;
        width: 100%;
    }

    .pagination-bar {
        align-items: stretch;
        grid-template-columns: 1fr;
    }

    .page-jump {
        justify-content: flex-start;
    }

    .download-row {
        align-items: start;
        grid-template-columns: 36px minmax(0, 1fr);
    }

    .download-meta {
        align-items: flex-start;
        grid-column: 2;
        text-align: left;
    }

    .site-footer .page-shell {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-copy {
        text-align: left;
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .nav-search {
        flex-basis: 280px;
        max-width: 280px;
        min-width: 220px;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .resource-grid {
        grid-template-columns: repeat(8, minmax(0, 1fr));
    }
}

@media (min-width: 1400px) {
    .container {
        margin-left: auto;
        margin-right: auto;
        max-width: min(1760px, calc(100% - 64px));
    }

    .nav-search {
        flex-basis: 460px;
        max-width: 460px;
    }

    .home-search-wrap {
        min-height: 420px;
    }

    .hero-panel,
    .hero-visual {
        min-height: 420px;
    }

    .home-search-form .form-control {
        min-height: 64px;
    }

    .resource-card {
        height: 44px;
    }

    .resource-card img {
        height: 26px;
        width: 26px;
    }

    .result-table th:first-child {
        width: 13% !important;
    }

    .result-table th:nth-child(2) {
        width: 14% !important;
    }

    .result-table th:nth-child(3) {
        width: 42% !important;
    }

    .result-table th:nth-child(4) {
        width: 8% !important;
    }

    .result-table th:nth-child(5) {
        width: 23% !important;
    }

    .structure-thumb {
        min-width: 132px;
    }

    .structure-thumb svg {
        height: 60px;
        width: 126px;
    }

    .static-structure-image svg {
        min-height: 340px;
    }

    .row > .col-lg-3:has(+ .col-lg-9) {
        width: 20%;
    }

    .row > .col-lg-9 {
        width: 80%;
    }

    .row > .col-lg-8:has(.static-structure-image) {
        width: 72%;
    }

    .row > .col-lg-8:has(.static-structure-image) + .col-lg-4 {
        width: 28%;
    }
}

@media (min-width: 1600px) {
    body {
        background:
            radial-gradient(circle at top left, rgba(44, 138, 167, 0.15), transparent 34rem),
            radial-gradient(circle at top right, rgba(31, 95, 191, 0.1), transparent 28rem),
            linear-gradient(180deg, #f8fbff 0%, var(--tpdb-bg) 42%, #eef3f9 100%);
    }

    .home-search-wrap {
        min-height: 460px;
    }

    .hero-panel,
    .hero-visual {
        min-height: 460px;
    }

    .display-5 {
        font-size: 3.35rem;
    }

    .lead {
        font-size: 1.22rem;
    }

    .section-title {
        font-size: 1.12rem;
    }

    .metric-value {
        font-size: 2.35rem;
    }

    .facet-link {
        padding: 0.55rem 0.7rem;
    }

    .tpdb-card {
        box-shadow: 0 22px 52px rgba(31, 44, 71, 0.09);
    }
}

/* Benchmark page */
.benchmark-layout {
    align-items: stretch;
    display: grid;
    gap: 0;
    grid-template-columns: 230px minmax(0, 1fr);
    overflow: hidden;
    padding: 0;
}

.benchmark-sidebar {
    background: #f7fafc;
    border-right: 1px solid var(--tpdb-line);
    padding: 1rem 0.85rem;
}

.benchmark-sidebar-title {
    color: var(--tpdb-navy);
    font-size: 0.92rem;
    font-weight: 900;
    margin: 0.2rem 0 0.85rem;
    padding: 0 0.35rem;
}

.benchmark-side-nav {
    display: grid;
    gap: 0.35rem;
}

.benchmark-side-link {
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--tpdb-ink);
    display: grid;
    gap: 0.12rem;
    padding: 0.68rem 0.72rem;
    text-decoration: none;
}

.benchmark-side-link span {
    font-weight: 800;
}

.benchmark-side-link small {
    color: var(--tpdb-muted);
    font-size: 0.78rem;
}

.benchmark-side-link:hover {
    background: #ffffff;
    border-color: var(--tpdb-line);
    color: var(--tpdb-navy);
}

.benchmark-side-link.active {
    background: #eef4ff;
    border-color: #c8d9f4;
    color: #244f93;
}

.benchmark-side-link.active small {
    color: #426699;
}

.benchmark-content {
    min-width: 0;
    padding: 1.05rem 1.15rem 1.2rem;
}

.benchmark-header {
    align-items: flex-start;
    border-bottom: 1px solid var(--tpdb-line);
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding: 0.1rem 0 0.95rem;
}

.benchmark-header h1 {
    color: var(--tpdb-navy);
    line-height: 1.25;
}

.benchmark-header .muted {
    font-size: 0.98rem;
    line-height: 1.55;
    max-width: 720px;
}

.benchmark-status,
.benchmark-chip,
.split-pill {
    align-items: center;
    background: #f5f7fa;
    border: 1px solid var(--tpdb-line);
    border-radius: 999px;
    color: var(--tpdb-muted);
    display: inline-flex;
    font-size: 0.76rem;
    font-weight: 800;
    min-height: 28px;
    padding: 0.25rem 0.7rem;
    white-space: nowrap;
}

.benchmark-chip {
    background: #eef4ff;
    border-color: #c8d9f4;
    color: #244f93;
}

.split-pill {
    background: #eef6f3;
    border-color: #cbe4db;
    color: #17634d;
}

.benchmark-strip {
    border: 1px solid var(--tpdb-line);
    border-radius: 8px;
    display: grid;
    gap: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: hidden;
    padding: 0;
}

.benchmark-strip-item {
    border-right: 1px solid var(--tpdb-line);
    display: grid;
    gap: 0.25rem;
    min-width: 0;
    padding: 0.85rem 0.95rem;
}

.benchmark-strip-item:last-child {
    border-right: 0;
}

.benchmark-strip-item span {
    color: var(--tpdb-muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.benchmark-strip-item strong {
    color: var(--tpdb-navy);
    font-size: 1rem;
    line-height: 1.25;
}

.benchmark-strip-item small {
    color: var(--tpdb-muted);
    font-size: 0.84rem;
}

.benchmark-panel {
    border: 1px solid var(--tpdb-line);
    border-radius: 8px;
    padding: 0.95rem;
}

.benchmark-panel-head {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.benchmark-panel-head.compact .hero-kicker {
    font-size: 0.72rem;
}

.benchmark-question-grid {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.benchmark-question-grid div {
    background: #f7f9fb;
    border: 1px solid var(--tpdb-line);
    border-radius: 8px;
    display: grid;
    gap: 0.35rem;
    padding: 0.85rem;
}

.benchmark-question-grid strong {
    color: var(--tpdb-navy);
}

.benchmark-question-grid span {
    color: var(--tpdb-muted);
    font-size: 0.9rem;
}

.benchmark-table {
    font-size: 0.92rem;
}

.benchmark-table th {
    border-top: 0;
    color: var(--tpdb-muted);
    font-size: 0.74rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    white-space: nowrap;
}

.benchmark-table td {
    border-color: var(--tpdb-line);
    color: var(--tpdb-ink);
    white-space: nowrap;
}

.metric-strong {
    color: var(--tpdb-navy) !important;
    font-weight: 800;
}

.benchmark-bars {
    display: grid;
    gap: 0.9rem;
}

.benchmark-bar-row {
    display: grid;
    gap: 0.35rem;
}

.benchmark-bar-label {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.benchmark-bar-label strong {
    color: var(--tpdb-navy);
    font-size: 0.9rem;
}

.benchmark-bar-row small {
    color: var(--tpdb-muted);
    font-size: 0.82rem;
}

.benchmark-bar-track {
    background: #edf1f5;
    border-radius: 999px;
    height: 9px;
    overflow: hidden;
}

.benchmark-bar-fill {
    background: #2f7ac8;
    border-radius: inherit;
    height: 100%;
}

@media (max-width: 991.98px) {
    .benchmark-layout {
        grid-template-columns: 1fr;
    }

    .benchmark-sidebar {
        border-bottom: 1px solid var(--tpdb-line);
        border-right: 0;
    }

    .benchmark-side-nav {
        display: flex;
        gap: 0.5rem;
        overflow-x: auto;
        padding-bottom: 0.1rem;
    }

    .benchmark-side-link {
        min-width: 160px;
    }
}

@media (max-width: 991.98px) {
    .footer-grid {
        grid-template-columns: minmax(0, 1.2fr) minmax(180px, 0.8fr);
    }

    .footer-tools-section {
        grid-column: auto;
    }
}

@media (max-width: 767.98px) {
    .benchmark-header,
    .benchmark-panel-head,
    .benchmark-bar-label {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.45rem;
    }

    .benchmark-strip,
    .benchmark-question-grid {
        grid-template-columns: 1fr;
    }

    .benchmark-strip-item {
        border-bottom: 1px solid var(--tpdb-line);
        border-right: 0;
    }

    .benchmark-strip-item:last-child {
        border-bottom: 0;
    }

    .benchmark-content {
        padding: 0.9rem;
    }
}

/* Mobile width tuning: keep desktop unchanged, use more of small screens. */
@media (max-width: 991.98px) {
    .footer-grid {
        grid-template-columns: minmax(0, 1.2fr) minmax(180px, 0.8fr);
    }

    .footer-tools-section {
        grid-column: auto;
    }
}

@media (max-width: 767.98px) {
    .page-shell {
        max-width: calc(100% - 24px);
        width: calc(100% - 24px);
    }

    main.page-shell {
        margin-left: 12px;
        margin-right: 12px;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .tpdb-nav > .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .page-shell > .row {
        --bs-gutter-x: 0;
        margin-left: 0;
        margin-right: 0;
    }

    .home-search-wrap,
    .hero-panel,
    .tpdb-card,
    .tpdb-plain-card,
    .detail-section {
        width: 100%;
    }

    .home-search-wrap {
        min-height: 0;
        padding: 1.15rem !important;
    }

    .home-search-inner,
    .home-search-copy,
    .home-search-form {
        max-width: 100%;
        width: 100%;
    }

    .home-search-copy h1 {
        font-size: clamp(1.8rem, 8vw, 2.35rem);
        line-height: 1.12;
    }

    .detail-section-banner {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .detail-content-block {
        margin-bottom: 0.85rem;
    }

    .peptide-detail-header {
        padding: 1rem;
    }

    .detail-info-row {
        padding: 0.7rem 0.75rem;
    }

    .experiment-record-list {
        padding: 0.75rem;
    }

    .experiment-col {
        padding: 0.75rem;
    }

    .tpdb-viz-grid {
        gap: 12px;
    }

    .tpdb-pdb-3d-viewer,
    .tpdb-alpha-helix-svg {
        height: 300px;
    }

    .tpdb-model-info {
        padding: 0.75rem;
    }
}

@media (max-width: 420px) {
    .page-shell {
        max-width: calc(100% - 20px);
        width: calc(100% - 20px);
    }

    main.page-shell {
        margin-left: 10px;
        margin-right: 10px;
    }

    .home-search-wrap {
        padding: 1rem !important;
    }

    .detail-chip {
        font-size: 0.78rem;
    }
}

/* Help page */
.help-hero {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(241, 248, 252, 0.92)),
        url("/static/peptides/search-hero-bg.svg") center/cover no-repeat;
}

.help-hero-grid {
    align-items: end;
    display: grid;
    gap: 1.5rem;
    grid-template-columns: minmax(0, 1fr) auto;
}

.help-quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
    max-width: 440px;
}

.help-quick-links a {
    background: #ffffff;
    border: 1px solid #d4e2ef;
    border-radius: 999px;
    color: #28516f;
    font-size: 0.82rem;
    font-weight: 800;
    padding: 0.45rem 0.7rem;
    text-decoration: none;
}

.help-quick-links a:hover {
    background: #edf6fb;
    color: #315f82;
}

.help-section-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.help-card {
    padding: 1.25rem;
}

.help-card-head {
    align-items: center;
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.help-card-head h2 {
    color: var(--tpdb-ink);
    font-size: 1.05rem;
    font-weight: 850;
    margin: 0;
}

.help-step {
    align-items: center;
    background: #eaf4fb;
    border: 1px solid #d1e5f2;
    border-radius: 999px;
    color: #236386;
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 900;
    height: 34px;
    justify-content: center;
    width: 34px;
}

.help-card p,
.help-faq-item p {
    color: var(--tpdb-muted);
    font-size: 0.94rem;
    line-height: 1.6;
}

.help-list {
    color: #41536a;
    display: grid;
    gap: 0.45rem;
    font-size: 0.9rem;
    margin: 0.8rem 0 0;
    padding-left: 1.1rem;
}

.help-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 1rem;
}

.help-section-head {
    border-bottom: 1px solid var(--tpdb-line);
    margin-bottom: 1rem;
    padding-bottom: 0.85rem;
}

.help-faq-grid {
    display: grid;
    gap: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.help-faq-item {
    border-bottom: 1px solid #edf2f7;
    padding: 1rem 1rem 1rem 0;
}

.help-faq-item:nth-child(2n) {
    border-left: 1px solid #edf2f7;
    padding-left: 1rem;
}

.help-faq-item h3 {
    color: #26384d;
    font-size: 0.98rem;
    font-weight: 850;
    margin-bottom: 0.45rem;
}

.help-contact {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

@media (max-width: 991.98px) {
    .footer-grid {
        grid-template-columns: minmax(0, 1.2fr) minmax(180px, 0.8fr);
    }

    .footer-tools-section {
        grid-column: auto;
    }
}

@media (max-width: 767.98px) {
    .help-hero-grid,
    .help-section-grid,
    .help-faq-grid {
        grid-template-columns: 1fr;
    }

    .help-quick-links {
        justify-content: flex-start;
    }

    .help-faq-item,
    .help-faq-item:nth-child(2n) {
        border-left: 0;
        padding-left: 0;
        padding-right: 0;
    }

    .help-contact {
        align-items: flex-start;
        flex-direction: column;
    }
}


.contact-nav-button {
    background: transparent;
    border: 0;
    color: var(--bs-navbar-color);
    padding: var(--bs-nav-link-padding-y) var(--bs-nav-link-padding-x);
    text-align: left;
}

.contact-nav-button:hover,
.contact-nav-button:focus {
    color: var(--bs-navbar-hover-color);
}

.tpdb-message-stack {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.tpdb-message {
    background: #f6fafd;
    border: 1px solid #dbe7f1;
    border-left: 4px solid var(--tpdb-blue);
    border-radius: 8px;
    color: #31445a;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 0.85rem 1rem;
}

.tpdb-message-success {
    background: #f4fbf7;
    border-color: #cfe9dc;
    border-left-color: #2b9a66;
}

.tpdb-message-error {
    background: #fff8f6;
    border-color: #f0d2c8;
    border-left-color: #d46a4c;
}

/* Contact page */
.contact-hero {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(241, 248, 252, 0.92)),
        url("/static/peptides/search-hero-bg.svg") center/cover no-repeat;
}

.contact-submit-btn {
    border-radius: 8px;
    font-weight: 850;
    padding: 0.68rem 1.05rem;
}

.contact-status {
    border-left: 4px solid var(--tpdb-blue);
    color: #31445a;
    font-size: 0.96rem;
}

.contact-status-success {
    background: #f4fbf7;
    border-left-color: #2b9a66;
}

.contact-status-error {
    background: #fff8f6;
    border-left-color: #d46a4c;
}

.contact-template-head {
    border-bottom: 1px solid var(--tpdb-line);
    margin-bottom: 1rem;
    padding-bottom: 0.85rem;
}

.contact-example {
    background: #f8fbfe;
    border: 1px solid #dbe7f1;
    border-radius: 8px;
    color: #24364c;
    font-size: 0.9rem;
    margin: 0;
    padding: 1rem;
    white-space: pre-wrap;
}

.tpdb-contact-modal {
    border: 0;
    border-radius: 10px;
    overflow: hidden;
}

.tpdb-contact-modal .modal-header {
    background: #f6fafd;
    border-bottom: 1px solid #dbe7f1;
}

.tpdb-contact-modal .modal-title {
    color: var(--tpdb-ink);
    font-weight: 850;
}

.tpdb-contact-modal .form-label {
    color: #40546a;
    font-size: 0.88rem;
    font-weight: 800;
}

.tpdb-contact-modal .form-control,
.tpdb-contact-modal .form-select {
    border-color: #d5e3ef;
    border-radius: 8px;
}

.tpdb-contact-modal textarea.form-control {
    min-height: 150px;
}

@media (max-width: 991.98px) {
    .footer-grid {
        grid-template-columns: minmax(0, 1.2fr) minmax(180px, 0.8fr);
    }

    .footer-tools-section {
        grid-column: auto;
    }
}

@media (max-width: 767.98px) {
    .contact-hero,
    .contact-template {
        width: 100%;
    }

    .tpdb-contact-modal textarea.form-control {
        min-height: 130px;
    }
}

/* Footer three-column ADMET-style override 20260703 */
.site-footer {
    background: #4f5b67;
    color: #eef2f5;
    padding: 2.35rem 0 2rem;
}

.site-footer .footer-grid.footer-grid-compact {
    align-items: start;
    display: grid;
    gap: clamp(1rem, 3vw, 2.6rem);
    grid-template-columns: minmax(0, 1.45fr) minmax(120px, 0.62fr) minmax(220px, 0.95fr);
}

.site-footer .footer-about-text {
    max-width: 34rem;
}

.site-footer .footer-quick-section {
    min-width: 0;
}

.site-footer .footer-tools-section {
    min-width: 0;
}

.site-footer .footer-tool-icons-dev {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    max-width: 18rem;
}

.site-footer .footer-tool-logo {
    align-items: center;
    background: transparent;
    border: 0;
    display: inline-flex;
    height: 42px;
    justify-content: center;
    padding: 0;
    width: 42px;
}

.site-footer .footer-tool-logo img {
    display: block;
    filter: none;
    height: 38px;
    max-width: 42px;
    object-fit: contain;
    width: 38px;
}

.site-footer .footer-tool-logo[aria-label="RDKit"] img {
    height: 42px;
    width: 42px;
}

.site-footer .footer-link-button {
    cursor: pointer;
}

@media (max-width: 991.98px) {
    .site-footer .footer-grid.footer-grid-compact {
        gap: 1.25rem;
        grid-template-columns: minmax(0, 1.25fr) minmax(104px, 0.65fr) minmax(160px, 0.9fr);
    }

    .site-footer .footer-tool-icons-dev {
        gap: 0.68rem;
        max-width: 13rem;
    }
}

@media (max-width: 767.98px) {
    .site-footer {
        padding: 1.45rem 0 1.35rem;
    }

    .site-footer .footer-grid.footer-grid-compact {
        gap: 0.8rem;
        grid-template-columns: minmax(0, 1.08fr) minmax(82px, 0.62fr) minmax(106px, 0.82fr);
    }

    .site-footer .footer-brand {
        gap: 0.55rem;
        margin-bottom: 0.55rem;
    }

    .site-footer .footer-logo {
        height: 46px;
        width: 46px;
    }

    .site-footer .footer-short {
        font-size: 1rem;
    }

    .site-footer .footer-full,
    .site-footer .footer-about-text,
    .site-footer .footer-links a,
    .site-footer .footer-link-button,
    .site-footer .footer-copy {
        font-size: 0.76rem;
        line-height: 1.42;
    }

    .site-footer .footer-section h2 {
        font-size: 0.72rem;
        margin-bottom: 0.55rem;
    }

    .site-footer .footer-links {
        gap: 0.28rem;
    }

    .site-footer .footer-tool-icons-dev {
        gap: 0.46rem;
        max-width: 7.5rem;
    }

    .site-footer .footer-tool-logo {
        height: 28px;
        width: 28px;
    }

    .site-footer .footer-tool-logo img {
        height: 25px;
        max-width: 28px;
        width: 25px;
    }

    .site-footer .footer-tool-logo[aria-label="RDKit"] img {
        height: 28px;
        width: 28px;
    }
}

/* Footer tool logo corrections 20260703 */
.site-footer .footer-tool-logo-wide {
    width: 74px;
}

.site-footer .footer-tool-logo-wide img {
    max-width: 72px;
    width: 72px;
}

@media (max-width: 767.98px) {
    .site-footer .footer-tool-logo-wide {
        width: 46px;
    }

    .site-footer .footer-tool-logo-wide img {
        max-width: 44px;
        width: 44px;
    }
}


/* ColabFold footer icon rounding 20260703 */
.site-footer .footer-tool-logo-rounded img {
    border-radius: 50%;
    overflow: hidden;
}

@media (max-width: 767.98px) {
    .site-footer .footer-tool-logo-rounded img {
        border-radius: 50%;
    }
}


/* ColabFold footer icon circle crop 20260703 */
.site-footer .footer-tool-logo-rounded {
    border-radius: 50%;
    overflow: hidden;
}

.site-footer .footer-tool-logo-rounded img {
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    display: block;
    height: 38px;
    object-fit: cover;
    object-position: center;
    overflow: hidden;
    width: 38px;
}

@media (max-width: 767.98px) {
    .site-footer .footer-tool-logo-rounded img {
        height: 25px;
        width: 25px;
    }
}


/* Django footer icon jpg 20260703 */
.site-footer .footer-tool-logo[aria-label="Django"] img {
    border-radius: 9px;
    height: 38px;
    object-fit: cover;
    width: 38px;
}

@media (max-width: 767.98px) {
    .site-footer .footer-tool-logo[aria-label="Django"] img {
        border-radius: 7px;
        height: 25px;
        width: 25px;
    }
}


/* Benchmark nested navigation 20260703 */
.benchmark-nav-group {
    display: grid;
    gap: 0.28rem;
}

.benchmark-sub-nav {
    border-left: 1px solid #d9e4ef;
    display: grid;
    gap: 0.24rem;
    margin: 0.1rem 0 0.18rem 0.68rem;
    padding-left: 0.5rem;
}

.benchmark-sub-nav.nested {
    margin-left: 0.54rem;
}

.benchmark-side-link.benchmark-side-child {
    padding: 0.52rem 0.58rem;
}

.benchmark-side-link.benchmark-side-grandchild {
    padding: 0.44rem 0.54rem;
}

.benchmark-nav-group.level-1 .benchmark-side-link span,
.benchmark-side-link.benchmark-side-child span {
    font-size: 0.9rem;
}

.benchmark-side-link.benchmark-side-grandchild span {
    font-size: 0.84rem;
}

.benchmark-side-link.benchmark-side-grandchild small {
    font-size: 0.72rem;
}

@media (max-width: 991.98px) {
    .benchmark-nav-group {
        min-width: 150px;
    }

    .benchmark-sub-nav {
        border-left: 0;
        margin-left: 0;
        padding-left: 0;
    }

    .benchmark-side-link.benchmark-side-child,
    .benchmark-side-link.benchmark-side-grandchild {
        min-width: 150px;
    }
}


/* Benchmark open tree visual 20260703 */
.benchmark-tree-nav {
    display: grid;
    gap: 0.35rem;
}

.benchmark-tree-node {
    display: grid;
    gap: 0.16rem;
}

.benchmark-tree-link {
    align-items: center;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--tpdb-ink);
    display: flex;
    font-size: 0.92rem;
    font-weight: 800;
    gap: 0.42rem;
    line-height: 1.25;
    min-height: auto;
    padding: 0.68rem 0.72rem;
    text-decoration: none;
}

.benchmark-tree-link:hover {
    background: #ffffff;
    border-color: var(--tpdb-line);
    color: var(--tpdb-ink);
}

.benchmark-tree-link.active {
    background: #f1f4f7;
    border-color: #dce4ec;
    color: var(--tpdb-ink);
}

.benchmark-tree-children,
.benchmark-tree-children.nested {
    border-left: 1px solid #d7e1eb;
    display: grid;
    gap: 0.16rem;
    margin: 0.12rem 0 0.18rem 0.78rem;
    padding-left: 0.5rem;
}

.benchmark-tree-child,
.benchmark-tree-grandchild,
.benchmark-tree-link.level-0,
.benchmark-tree-parent {
    color: var(--tpdb-ink);
    font-size: 0.92rem;
    padding: 0.68rem 0.72rem;
}

@media (max-width: 991.98px) {
    .benchmark-layout {
        grid-template-columns: minmax(132px, 0.34fr) minmax(0, 1fr);
    }

    .benchmark-sidebar {
        border-bottom: 0;
        border-right: 1px solid var(--tpdb-line);
        padding: 0.82rem 0.62rem;
    }

    .benchmark-tree-nav {
        display: grid;
        gap: 0.18rem;
        overflow-x: visible;
    }

    .benchmark-tree-node,
    .benchmark-tree-link.level-0 {
        min-width: 0;
    }

    .benchmark-tree-link,
    .benchmark-tree-child,
    .benchmark-tree-grandchild,
    .benchmark-tree-link.level-0,
    .benchmark-tree-parent {
        color: var(--tpdb-ink);
        font-size: 0.78rem;
        padding: 0.46rem 0.48rem;
    }

    .benchmark-tree-children,
    .benchmark-tree-children.nested {
        border-left: 1px solid #d7e1eb;
        margin-left: 0.52rem;
        padding-left: 0.34rem;
    }
}

@media (max-width: 575.98px) {
    .benchmark-layout {
        grid-template-columns: 118px minmax(0, 1fr);
    }

    .benchmark-tree-link,
    .benchmark-tree-child,
    .benchmark-tree-grandchild,
    .benchmark-tree-link.level-0,
    .benchmark-tree-parent {
        color: var(--tpdb-ink);
        font-size: 0.7rem;
        padding: 0.4rem 0.34rem;
    }
}


/* Benchmark parent labels 20260703 */
.benchmark-tree-label {
    align-items: center;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--tpdb-ink);
    cursor: default;
    display: flex;
    font-size: 0.92rem;
    font-weight: 800;
    gap: 0.42rem;
    line-height: 1.25;
    min-height: auto;
    padding: 0.68rem 0.72rem;
    text-decoration: none;
}

@media (max-width: 991.98px) {
    .benchmark-tree-label {
        color: var(--tpdb-ink);
        font-size: 0.78rem;
        padding: 0.46rem 0.48rem;
    }
}

@media (max-width: 575.98px) {
    .benchmark-tree-label {
        color: var(--tpdb-ink);
        font-size: 0.7rem;
        padding: 0.4rem 0.34rem;
    }
}


/* Benchmark activity preview chart 20260703 */
.benchmark-chart-panel {
    overflow: visible;
}

.benchmark-chart-head {
    border-bottom: 1px solid var(--tpdb-line);
    margin-bottom: 0.9rem;
    padding-bottom: 0.85rem;
}

.benchmark-chart-meta {
    color: var(--tpdb-muted);
    font-size: 0.86rem;
    line-height: 1.45;
}

.benchmark-chart-wrap {
    background: #fbfcfd;
    border: 1px solid #e3e9ef;
    border-radius: 8px;
    min-height: 360px;
    overflow-x: auto;
    padding: 1rem 0.8rem 0.55rem;
    position: relative;
}

.benchmark-bar-chart {
    display: block;
    min-width: 860px;
    width: 100%;
}

.benchmark-axis {
    stroke: #8d99a6;
    stroke-width: 1.2;
}

.benchmark-grid-line {
    stroke: #e8edf2;
    stroke-width: 1;
}

.benchmark-axis-label,
.benchmark-x-label {
    fill: #526071;
    font-size: 12px;
    font-weight: 700;
}

.benchmark-x-label {
    text-anchor: middle;
}

.benchmark-bar {
    fill: #7fa7c7;
    transition: fill 0.16s ease, opacity 0.16s ease;
}

.benchmark-bar-group:hover .benchmark-bar {
    fill: #577f9f;
}

.benchmark-error {
    stroke: #263241;
    stroke-linecap: round;
    stroke-width: 1.4;
}

.benchmark-chart-tooltip {
    background: rgba(26, 36, 51, 0.94);
    border-radius: 6px;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.45;
    opacity: 0;
    padding: 0.5rem 0.62rem;
    pointer-events: none;
    position: absolute;
    transform: translateY(-100%);
    transition: opacity 0.12s ease;
    white-space: nowrap;
    z-index: 5;
}

.benchmark-chart-tooltip.show {
    opacity: 1;
}

@media (max-width: 575.98px) {
    .benchmark-chart-wrap {
        min-height: 330px;
        padding: 0.75rem 0.55rem 0.45rem;
    }

    .benchmark-bar-chart {
        min-width: 760px;
    }
}


/* Benchmark model metric chart correction 20260703 */
.benchmark-metric-tabs {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: -0.1rem 0 0.85rem;
}

.benchmark-metric-tab {
    background: #f6f8fa;
    border: 1px solid #dbe4ec;
    border-radius: 999px;
    color: var(--tpdb-ink);
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1;
    padding: 0.46rem 0.72rem;
    transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.benchmark-metric-tab:hover {
    background: #ffffff;
    border-color: #bfcbd8;
}

.benchmark-metric-tab.active {
    background: #e9eef3;
    border-color: #b8c5d1;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.62);
}

.benchmark-model-chart-wrap {
    min-height: 390px;
}

.benchmark-model-bar-chart {
    min-width: 1280px;
}

.benchmark-metric-series {
    display: none;
}

.benchmark-metric-series.active {
    display: inline;
}

.benchmark-model-legend {
    background: #fbfcfd;
    border: 1px solid #e3e9ef;
    border-radius: 8px;
    color: #526071;
    display: grid;
    font-size: 0.76rem;
    gap: 0.35rem 0.7rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    line-height: 1.35;
    margin-top: 0.75rem;
    max-height: 190px;
    overflow: auto;
    padding: 0.75rem;
}

.benchmark-model-legend span {
    min-width: 0;
}

.benchmark-model-legend strong {
    color: var(--tpdb-ink);
    display: inline-block;
    min-width: 2.2rem;
}

@media (max-width: 991.98px) {
    .benchmark-model-legend {
        grid-template-columns: minmax(0, 1fr);
    }
}


/* Benchmark colored compact bars 20260703 */
.benchmark-model-bar-chart {
    min-width: 1060px;
}

.benchmark-bar {
    fill: var(--bar-color, #7fa7c7);
}

.benchmark-bar-group:hover .benchmark-bar {
    fill: var(--bar-color, #577f9f);
    filter: brightness(0.88) saturate(1.08);
}


/* Benchmark colored legend markers 20260703 */
.benchmark-model-legend span {
    align-items: center;
    display: flex;
    gap: 0.35rem;
}

.benchmark-model-legend i {
    background: var(--legend-color, #7fa7c7);
    border: 1px solid rgba(38, 50, 65, 0.12);
    border-radius: 3px;
    flex: 0 0 auto;
    height: 0.72rem;
    width: 0.72rem;
}


/* Benchmark compact legend matrix 20260703 */
.benchmark-model-legend {
    align-items: start;
    display: grid;
    font-size: 0.7rem;
    gap: 0.28rem 0.62rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    line-height: 1.25;
    max-height: none;
    overflow: visible;
    padding: 0.62rem 0.68rem;
}

.benchmark-model-legend span {
    align-items: center;
    display: grid;
    gap: 0.24rem;
    grid-template-columns: 0.58rem 2rem minmax(0, 1fr);
    min-width: 0;
}

.benchmark-model-legend i {
    height: 0.58rem;
    width: 0.58rem;
}

.benchmark-model-legend strong {
    min-width: 0;
}

.benchmark-model-legend .legend-model-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 1199.98px) {
    .benchmark-model-legend {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .benchmark-model-legend {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .benchmark-model-legend {
        grid-template-columns: minmax(0, 1fr);
    }
}


/* Benchmark activity selector 20260710 */

.benchmark-chart-select-group {
    align-items: end;
    display: grid;
    gap: 0.75rem;
    grid-template-columns: minmax(220px, 1.25fr) minmax(220px, 0.95fr);
    justify-content: end;
    max-width: min(760px, 100%);
    width: min(760px, 100%);
}

.benchmark-chart-select-group .benchmark-chart-select-wrap {
    min-width: 0;
    width: 100%;
}
.benchmark-chart-select-wrap {
    align-self: center;
    display: grid;
    gap: 0.35rem;
    justify-items: start;
    min-width: min(320px, 100%);
}

.benchmark-chart-select-wrap label {
    color: var(--tpdb-muted);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1;
    text-transform: uppercase;
}

.benchmark-chart-select {
    appearance: none;
    background: #fbfcfd;
    background-image: linear-gradient(45deg, transparent 50%, #526071 50%), linear-gradient(135deg, #526071 50%, transparent 50%);
    background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%;
    background-repeat: no-repeat;
    background-size: 6px 6px, 6px 6px;
    border: 1px solid #d8e2ea;
    border-radius: 8px;
    color: var(--tpdb-ink);
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1.2;
    min-height: 42px;
    padding: 0.58rem 2.35rem 0.58rem 0.8rem;
    width: 100%;
}

.benchmark-chart-select:focus {
    border-color: #aebdca;
    box-shadow: 0 0 0 3px rgba(47, 122, 200, 0.1);
    outline: none;
}

.benchmark-chart-panel.is-hidden {
    display: none;
}

@media (max-width: 767.98px) {
    .benchmark-chart-select-wrap {
        width: 100%;
    }
}

/* Benchmark all activity charts 20260703 */
.benchmark-activity-chart-list {
    display: grid;
    gap: 1rem;
}

.benchmark-activity-chart-list .benchmark-chart-panel {
    scroll-margin-top: 88px;
}


/* Benchmark welcome overview 20260706 */
.benchmark-welcome-page {
    display: grid;
    gap: 1rem;
}

.benchmark-welcome-visual {
    background: linear-gradient(135deg, #f7fbfc 0%, #ffffff 58%, #f5faf8 100%);
    border: 1px solid #d7e6ee;
    border-radius: 12px;
    box-shadow: 0 14px 36px rgba(12, 50, 70, 0.08);
    overflow: hidden;
    padding: 0.55rem;
}

.benchmark-welcome-visual img {
    border-radius: 8px;
    display: block;
    height: auto;
    width: 100%;
}

.benchmark-welcome-highlights {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.benchmark-welcome-highlights article {
    background: #ffffff;
    border: 1px solid #dbe8ee;
    border-radius: 10px;
    display: grid;
    gap: 0.2rem;
    min-width: 0;
    padding: 0.9rem 0.95rem;
}

.benchmark-welcome-highlights span {
    color: #607284;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.benchmark-welcome-highlights strong {
    color: #12344a;
    font-size: 2rem;
    font-weight: 850;
    line-height: 1;
}

.benchmark-welcome-highlights p {
    color: #526779;
    font-size: 0.88rem;
    line-height: 1.45;
    margin: 0;
}

.benchmark-welcome-actions {
    display: grid;
    gap: 0.65rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.benchmark-welcome-actions a {
    align-items: center;
    background: #f5f9fa;
    border: 1px solid #d6e5ec;
    border-radius: 8px;
    color: #17465d;
    display: inline-flex;
    font-weight: 800;
    justify-content: center;
    min-height: 42px;
    padding: 0.55rem 0.8rem;
    text-decoration: none;
    transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.benchmark-welcome-actions a:hover {
    background: #edf6f7;
    border-color: #bcdce4;
    color: #10384c;
    transform: translateY(-1px);
}

@media (max-width: 991.98px) {
    .benchmark-welcome-highlights,
    .benchmark-welcome-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .benchmark-welcome-highlights,
    .benchmark-welcome-actions {
        grid-template-columns: 1fr;
    }
}

/* Benchmark download page 20260706 */
.benchmark-download-page {
    display: grid;
    gap: 18px;
}

.benchmark-download-section {
    padding: 18px;
}

.benchmark-download-head {
    align-items: center;
    border-bottom: 1px solid rgba(103, 123, 142, 0.16);
    margin-bottom: 14px;
    padding-bottom: 12px;
}

.benchmark-download-count {
    color: #647789;
    font-size: 0.86rem;
    font-weight: 650;
    white-space: nowrap;
}

.benchmark-download-methods {
    display: grid;
    gap: 14px;
}

.benchmark-download-method {
    border: 1px solid rgba(103, 123, 142, 0.16);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.benchmark-download-method-head {
    align-items: center;
    background: #f7f9fb;
    border-bottom: 1px solid rgba(103, 123, 142, 0.14);
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
}

.benchmark-download-method-head h3 {
    color: #263845;
    font-size: 0.98rem;
    font-weight: 760;
    margin: 0 0 2px;
}

.benchmark-download-method-head p {
    color: #687a89;
    font-size: 0.82rem;
    margin: 0;
}

.benchmark-download-method-head > span {
    color: #708294;
    font-size: 0.76rem;
    font-weight: 760;
    letter-spacing: 0.06em;
}

.benchmark-download-table {
    display: grid;
}

.benchmark-download-row {
    align-items: center;
    border-bottom: 1px solid rgba(103, 123, 142, 0.1);
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(170px, 1fr) auto;
    padding: 9px 14px;
}

.benchmark-download-row:last-child {
    border-bottom: 0;
}

.benchmark-download-name {
    color: #314554;
    font-size: 0.9rem;
    font-weight: 650;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.benchmark-download-actions {
    display: flex;
    gap: 7px;
    justify-content: flex-end;
}

.benchmark-download-link {
    align-items: center;
    background: #eef4f7;
    border: 1px solid rgba(72, 104, 125, 0.16);
    border-radius: 6px;
    color: #36566d;
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 720;
    justify-content: center;
    line-height: 1;
    min-width: 48px;
    padding: 7px 9px;
    text-decoration: none;
}

.benchmark-download-link:hover {
    background: #e3edf2;
    color: #294a60;
}

.benchmark-download-table.regression .benchmark-download-row {
    grid-template-columns: minmax(220px, 1fr) auto;
}

@media (max-width: 720px) {
    .benchmark-download-row,
    .benchmark-download-table.regression .benchmark-download-row {
        align-items: start;
        grid-template-columns: 1fr;
    }

    .benchmark-download-actions {
        justify-content: flex-start;
    }
}

/* Homepage TPDB overview schematic */
.tpdb-overview-strip {
    align-items: center;
    background: var(--tpdb-panel);
    border: 1px solid var(--tpdb-line);
    border-radius: 8px;
    box-shadow: 0 18px 42px rgba(31, 44, 71, 0.08);
    display: flex;
    justify-content: center;
    margin-left: 0;
    margin-right: 0;
    overflow: hidden;
    padding: 10px;
    width: 100%;
}

.tpdb-overview-strip img {
    border-radius: 6px;
    display: block;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    width: 100%;
}

@media (max-width: 768px) {
    .tpdb-overview-strip {
        padding: 6px;
    }
}


.example-record-list {
    display: grid;
    gap: 10px;
}

.example-record-link {
    align-items: center;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid var(--tpdb-line);
    border-radius: 8px;
    color: var(--tpdb-ink);
    display: grid;
    gap: 8px;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    min-height: 56px;
    padding: 7px 10px;
    text-decoration: none;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.example-record-link:hover {
    border-color: rgba(30, 117, 133, 0.32);
    box-shadow: 0 10px 24px rgba(31, 44, 71, 0.08);
    color: var(--tpdb-ink);
    transform: translateY(-1px);
}

.example-structure-thumb {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 0;
    display: flex;
    height: 48px;
    justify-content: center;
    overflow: visible;
    width: 58px;
}

.example-structure-thumb img {
    display: block;
    height: 62px;
    margin-left: 10px;
    object-fit: contain;
    width: 88px;
}

.example-record-copy {
    min-width: 0;
}

.example-record-title {
    display: block;
    font-weight: 700;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.example-record-id {
    color: var(--tpdb-muted);
    display: block;
    font-size: 0.82rem;
    line-height: 1.25;
    margin-top: 2px;
}

@media (max-width: 480px) {
    .example-record-link {
        grid-template-columns: 54px minmax(0, 1fr) auto;
        padding: 8px;
    }

    .example-structure-thumb {
        height: 46px;
        width: 54px;
    }
}

.similarity-search-layout .similarity-query-card {
    position: sticky;
    top: 88px;
}

.similarity-search-layout .sequence-query-layout {
    grid-template-columns: 1fr;
}

.similarity-search-layout .sequence-query-box {
    min-height: 150px;
}

.similarity-search-layout .compact-param-grid {
    grid-template-columns: 1fr;
}

.similarity-search-layout .form-actions-row {
    align-items: stretch;
    display: grid;
    grid-template-columns: 1fr;
}

.similarity-search-layout .method-strip {
    gap: 0.4rem;
}

.similarity-search-layout .method-strip span {
    font-size: 0.72rem;
}

.similarity-search-layout .table-responsive {
    min-width: 0;
}

.similarity-search-layout .result-table {
    min-width: 680px;
}

@media (max-width: 991.98px) {
    .similarity-search-layout .similarity-query-card {
        position: static;
    }
}

.result-sort-control {
    align-items: center;
    background: #eef5f8;
    border: 1px solid #d6e5ec;
    border-radius: 999px;
    display: inline-flex;
    gap: 0.25rem;
    padding: 0.22rem;
}

.result-sort-control > span {
    color: var(--tpdb-muted);
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0 0.35rem;
}

.result-sort-link {
    border-radius: 999px;
    color: #315f82;
    font-size: 0.78rem;
    font-weight: 850;
    line-height: 1;
    padding: 0.42rem 0.55rem;
    text-decoration: none;
}

.result-sort-link:hover,
.result-sort-link.active {
    background: #ffffff;
    box-shadow: 0 1px 4px rgba(31, 44, 71, 0.08);
    color: #173f59;
}

@media (max-width: 575.98px) {
    .result-sort-control {
        flex-wrap: wrap;
        border-radius: 8px;
    }
}

.table-sort-button {
    align-items: center;
    background: #eef5f8;
    border: 1px solid #d6e5ec;
    border-radius: 999px;
    color: #315f82;
    display: inline-flex;
    font-size: 0.82rem;
    font-weight: 850;
    gap: 0.25rem;
    justify-content: center;
    line-height: 1;
    padding: 0.48rem 0.7rem;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.table-sort-button:hover,
.table-sort-button.active {
    background: #ffffff;
    box-shadow: 0 1px 4px rgba(31, 44, 71, 0.08);
    color: #173f59;
}

.length-sort-button {
    align-items: center;
    background: #eef5f8;
    border: 1px solid #d6e5ec;
    border-radius: 999px;
    color: #315f82;
    display: inline-flex;
    font-size: 0.82rem;
    font-weight: 850;
    gap: 0.25rem;
    line-height: 1;
    padding: 0.48rem 0.7rem;
    text-decoration: none;
}

.length-sort-button:hover,
.length-sort-button.active {
    background: #ffffff;
    box-shadow: 0 1px 4px rgba(31, 44, 71, 0.08);
    color: #173f59;
}

.result-chain-type-select {
    background-color: #eef5f8;
    border: 1px solid #d6e5ec;
    border-radius: 999px;
    color: #315f82;
    font-size: 0.82rem;
    font-weight: 850;
    min-height: 32px;
    padding: 0.35rem 1.85rem 0.35rem 0.7rem;
}

.result-chain-type-select:focus {
    border-color: #8cb8c8;
    box-shadow: 0 0 0 0.18rem rgba(49, 95, 130, 0.12);
    outline: none;
}


/* Unnatural amino acid library 20260825 */
.uaa-hero {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(241, 248, 252, 0.92)),
        url("/static/peptides/search-hero-bg.svg") center/cover no-repeat;
}

.uaa-hero-grid {
    align-items: center;
    display: grid;
    gap: 1.5rem;
    grid-template-columns: minmax(0, 1fr) auto;
}

.uaa-summary-card {
    align-items: center;
    background: #ffffff;
    border: 1px solid #d4e2ef;
    border-radius: 8px;
    box-shadow: 0 16px 34px rgba(31, 44, 71, 0.08);
    display: grid;
    min-width: 210px;
    padding: 1.15rem 1.3rem;
}

.uaa-summary-card strong {
    color: var(--tpdb-ink);
    font-size: 2.35rem;
    font-weight: 900;
    line-height: 1;
}

.uaa-summary-card span {
    color: var(--tpdb-muted);
    font-size: 0.9rem;
    font-weight: 750;
    margin-top: 0.3rem;
}

.uaa-summary-card small {
    color: #60758a;
    font-size: 0.76rem;
    line-height: 1.35;
    margin-top: 0.35rem;
}

.uaa-context-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.uaa-note-card {
    padding: 1.2rem;
}

.uaa-note-card h2 {
    color: var(--tpdb-ink);
    font-size: 1.02rem;
    font-weight: 850;
    margin-bottom: 0.45rem;
}

.uaa-note-card p {
    color: var(--tpdb-muted);
    font-size: 0.94rem;
    line-height: 1.6;
    margin: 0;
}

.uaa-section-head {
    align-items: flex-end;
    border-bottom: 1px solid var(--tpdb-line);
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.85rem;
}

.uaa-filter-status {
    color: #60758a;
    font-size: 0.82rem;
    font-weight: 700;
    text-align: right;
}

.uaa-filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.uaa-filter-pills button {
    background: #f3f8fb;
    border: 1px solid #d7e5ee;
    border-radius: 999px;
    color: #42566d;
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.2;
    padding: 0.46rem 0.72rem;
    transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, box-shadow 150ms ease;
}

.uaa-filter-pills button span {
    color: #75899b;
    font-size: 0.72rem;
    margin-left: 0.25rem;
}

.uaa-filter-pills button:hover {
    background: #eaf3f7;
    border-color: #b9d2de;
}

.uaa-filter-pills button:focus-visible {
    outline: 3px solid rgba(49, 95, 130, 0.2);
    outline-offset: 2px;
}

.uaa-filter-pills button[aria-pressed="true"] {
    background: #315f82;
    border-color: #315f82;
    box-shadow: 0 5px 12px rgba(49, 95, 130, 0.14);
    color: #ffffff;
}

.uaa-filter-pills button[aria-pressed="true"] span {
    color: rgba(255, 255, 255, 0.78);
}

.uaa-groups {
    display: grid;
    gap: 1.4rem;
}

.uaa-category-group[hidden] {
    display: none;
}

.uaa-group-head {
    align-items: center;
    display: flex;
    gap: 0.8rem;
    justify-content: space-between;
    margin-bottom: 0.7rem;
    padding: 0 0.15rem;
}

.uaa-group-head h2 {
    color: var(--tpdb-ink);
    font-size: 1.08rem;
    font-weight: 850;
    margin: 0;
}

.uaa-group-head span {
    color: #718498;
    font-size: 0.78rem;
    font-weight: 750;
}

.uaa-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.uaa-card {
    display: grid;
    grid-template-rows: 160px minmax(0, 1fr);
    min-width: 0;
    overflow: hidden;
}

.uaa-structure-wrap {
    align-items: center;
    background: linear-gradient(180deg, #fbfdff, #f3f8fb);
    border-bottom: 1px solid #e2ebf3;
    display: flex;
    justify-content: center;
    padding: 0.65rem;
}

.uaa-structure-wrap img {
    display: block;
    max-height: 142px;
    max-width: 100%;
    object-fit: contain;
}

.uaa-card-body {
    display: flex;
    flex-direction: column;
    padding: 1rem;
}

.uaa-abbr {
    color: var(--tpdb-blue);
    font-size: 1.1rem;
    font-weight: 900;
    margin-bottom: 0.45rem;
}

.uaa-card h3 {
    color: var(--tpdb-ink);
    font-size: 1rem;
    font-weight: 850;
    line-height: 1.24;
    margin-bottom: 0.5rem;
}

.uaa-card-note {
    color: var(--tpdb-muted);
    font-size: 0.88rem;
    line-height: 1.48;
    margin: 0 0 0.9rem;
}

.uaa-source-row {
    align-items: flex-start;
    border-top: 1px solid #e4ecf2;
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem 0.55rem;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 0.72rem;
}

.uaa-source-row > span {
    color: #718498;
    font-size: 0.74rem;
    font-weight: 700;
}

.uaa-source-row a {
    color: #315f82;
    font-size: 0.76rem;
    font-weight: 850;
    text-decoration: none;
}

.uaa-source-row a:hover {
    text-decoration: underline;
}

@media (max-width: 1199.98px) {
    .uaa-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .uaa-hero-grid,
    .uaa-context-grid {
        grid-template-columns: 1fr;
    }

    .uaa-summary-card {
        min-width: 0;
    }

    .uaa-section-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .uaa-filter-status {
        text-align: left;
    }

    .uaa-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .uaa-card {
        grid-template-rows: 132px minmax(0, 1fr);
    }

    .uaa-structure-wrap img {
        max-height: 118px;
    }
}

@media (max-width: 480px) {
    .uaa-grid {
        grid-template-columns: 1fr;
    }
}
