:root {
    --app-bg: #edf3fb;
    --app-surface: rgba(255, 255, 255, 0.76);
    --app-surface-strong: rgba(255, 255, 255, 0.9);
    --app-line: rgba(15, 23, 42, 0.09);
    --app-line-strong: rgba(15, 23, 42, 0.14);
    --app-text: #102036;
    --app-muted: #5f728c;
    --app-accent: #0a76ea;
    --app-accent-strong: #005fc2;
    --app-accent-soft: rgba(10, 118, 234, 0.12);
    --app-shadow: 0 22px 60px rgba(15, 23, 42, 0.12);
    --app-shadow-soft: 0 14px 32px rgba(15, 23, 42, 0.08);
    --app-radius-xl: 28px;
    --app-radius-lg: 22px;
    --app-radius-md: 18px;
    --app-radius-sm: 14px;
}

html {
    scroll-behavior: smooth;
}

body.app-shell-body {
    color: var(--app-text);
    font-family: "SF Pro Display", "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at 12% 6%, rgba(0, 113, 227, 0.22), rgba(0, 113, 227, 0) 28%),
        radial-gradient(circle at 90% 14%, rgba(34, 197, 246, 0.16), rgba(34, 197, 246, 0) 26%),
        radial-gradient(circle at 88% 90%, rgba(14, 165, 233, 0.14), rgba(14, 165, 233, 0) 24%),
        linear-gradient(160deg, #f7fbff 0%, #eef4fa 42%, #f5f8fb 100%);
    overflow-x: hidden;
}

body.app-shell-body::before,
body.app-shell-body::after {
    content: "";
    position: fixed;
    inset: auto;
    pointer-events: none;
    z-index: 0;
    border-radius: 999px;
    filter: blur(20px);
}

body.app-shell-body::before {
    width: 26rem;
    height: 26rem;
    top: -10rem;
    left: -6rem;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.2), rgba(14, 165, 233, 0));
}

body.app-shell-body::after {
    width: 22rem;
    height: 22rem;
    right: -7rem;
    bottom: -5rem;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.18), rgba(59, 130, 246, 0));
}

.app-shell {
    position: relative;
    z-index: 1;
}

.app-shell::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: radial-gradient(rgba(148, 163, 184, 0.16) 0.5px, transparent 0.5px);
    background-size: 4px 4px;
    opacity: 0.2;
}

.glass-card {
    border-radius: var(--app-radius-xl) !important;
    border-color: rgba(255, 255, 255, 0.72) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.72),
        inset 0 -1px 0 rgba(148, 163, 184, 0.08),
        0 20px 52px rgba(15, 23, 42, 0.11),
        0 4px 10px rgba(15, 23, 42, 0.04) !important;
}

.app-header {
    position: relative;
    overflow: hidden;
}

.app-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0)),
        radial-gradient(circle at 100% 0%, rgba(10, 118, 234, 0.12), rgba(10, 118, 234, 0) 30%);
    pointer-events: none;
}

.app-header-grid {
    position: relative;
    z-index: 1;
    display: block;
}

.app-brand-block {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.app-title-row {
    display: flex;
    align-items: center;
    gap: 0.9rem 1rem;
    flex-wrap: wrap;
}

.app-badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 0.8rem;
}

.app-badge-row-inline {
    margin-top: 0;
}

.app-badge,
.panel-badge,
.panel-status,
.app-summary-label,
.app-sidebar-note-label,
.app-hero-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    letter-spacing: 0.03em;
}

.app-badge {
    padding: 0.45rem 0.95rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--app-accent-strong);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(10, 118, 234, 0.12);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.app-summary-label,
.app-sidebar-note-label {
    padding: 0.3rem 0.7rem;
    width: fit-content;
    font-size: 0.7rem;
    font-weight: 700;
    color: #47617e;
    background: rgba(15, 23, 42, 0.05);
}

.app-stage {
    align-items: stretch;
}

.app-sidebar,
.app-main {
    position: relative;
}

.mobile-guide-modal {
    position: fixed;
    inset: 0;
    z-index: 70;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.34);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
}

.mobile-guide-modal[data-open="true"] {
    opacity: 1;
    pointer-events: auto;
}

.mobile-guide-dialog {
    width: min(100%, 24rem);
    padding: 1.1rem;
    border-radius: 24px !important;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.mobile-guide-dialog-icon {
    width: 3rem;
    height: 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #fff;
    font-size: 1.2rem;
    background: linear-gradient(135deg, var(--app-accent), #22a5f6);
    box-shadow: 0 12px 24px rgba(10, 118, 234, 0.22);
}

.mobile-guide-dialog-copy h2 {
    margin: 0;
    font-size: 1rem;
    line-height: 1.45;
    color: #0f1f35;
}

.mobile-guide-dialog-copy p {
    margin: 0.35rem 0 0;
    font-size: 0.84rem;
    line-height: 1.65;
    color: var(--app-muted);
}

.mobile-guide-close {
    width: 100%;
    min-height: 2.85rem;
    border: 0;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--app-accent), #22a5f6);
    box-shadow: 0 14px 28px rgba(10, 118, 234, 0.24);
}

.menu-guide-btn {
    position: relative;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
    animation: menuGuidePulse 1.9s ease-in-out infinite;
}

@keyframes menuGuidePulse {
    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
    }
    50% {
        transform: scale(1.06);
        box-shadow: 0 14px 28px rgba(10, 118, 234, 0.2);
    }
}

#feature-nav,
#feature-nav-mobile {
    gap: 0.65rem;
}

.feature-btn {
    border: 1px solid transparent;
    transition:
        transform 220ms ease,
        border-color 220ms ease,
        background-color 220ms ease,
        box-shadow 220ms ease,
        color 220ms ease;
}

.feature-btn:hover {
    transform: translateY(-1px);
}

.desktop-feature-btn,
.mobile-feature-btn {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.36));
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.05);
}

.desktop-feature-btn[data-active="true"],
.mobile-feature-btn[data-active="true"] {
    background: linear-gradient(145deg, rgba(10, 118, 234, 0.14), rgba(255, 255, 255, 0.82));
    border-color: rgba(10, 118, 234, 0.16);
    box-shadow: 0 16px 28px rgba(10, 118, 234, 0.12);
}

.feature-btn-layout,
.feature-btn-main,
.feature-btn-copy {
    display: flex;
}

.feature-btn-layout {
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
}

.feature-btn-main {
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.feature-nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.65rem;
    min-height: 2.65rem;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
}

.feature-btn-copy {
    flex-direction: column;
    gap: 0.16rem;
    min-width: 0;
}

.feature-btn-name {
    font-size: 0.93rem;
    font-weight: 700;
    color: #13253c;
}

.feature-btn-subtitle {
    font-size: 0.76rem;
    line-height: 1.5;
    color: var(--app-muted);
    white-space: normal;
}

.feature-btn-index {
    flex-shrink: 0;
    min-width: 2.2rem;
    height: 2.2rem;
    padding: 0 0.45rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.76rem;
    font-weight: 700;
    color: #6a7c94;
    background: rgba(15, 23, 42, 0.05);
}

.desktop-feature-btn[data-active="true"] .feature-btn-index,
.mobile-feature-btn[data-active="true"] .feature-btn-index {
    color: #fff;
    background: linear-gradient(135deg, var(--app-accent), #22a5f6);
    box-shadow: 0 10px 24px rgba(10, 118, 234, 0.24);
}

.feature-nav-icon {
    width: 2.65rem;
    height: 2.65rem;
    border-radius: 0.95rem;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.05), rgba(15, 23, 42, 0.03));
    color: #5e6e84;
}

.desktop-feature-btn[data-active="true"] .feature-btn-name,
.mobile-feature-btn[data-active="true"] .feature-btn-name {
    color: #08376a;
}

.desktop-feature-btn[data-active="true"] .feature-btn-subtitle,
.mobile-feature-btn[data-active="true"] .feature-btn-subtitle {
    color: #36516f;
}

.app-panel-head {
    padding: 0.4rem 0.1rem 0.15rem;
}

.panel-title-row {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    flex-wrap: wrap;
}

.mobile-feature-switch-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 2.25rem;
    padding: 0.42rem 0.82rem;
    border: 1px solid rgba(10, 118, 234, 0.16);
    border-radius: 999px;
    background: rgba(10, 118, 234, 0.08);
    color: #0b63c7;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(10, 118, 234, 0.1);
    transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.mobile-feature-switch-btn:hover {
    border-color: rgba(10, 118, 234, 0.28);
    background: rgba(10, 118, 234, 0.12);
    box-shadow: 0 12px 24px rgba(10, 118, 234, 0.14);
}

.panel-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 0.35rem;
}

.panel-badge,
.panel-status {
    padding: 0.28rem 0.68rem;
    font-size: 0.7rem;
    font-weight: 700;
}

.panel-badge {
    color: var(--app-accent-strong);
    background: rgba(10, 118, 234, 0.1);
}

.panel-status {
    color: #47617d;
    background: rgba(15, 23, 42, 0.05);
}

.panel-subtitle {
    margin: 0.3rem 0 0;
    font-size: 0.87rem;
    color: var(--app-muted);
}

.panel-stage {
    position: relative;
    min-height: 620px;
    background: transparent;
    border-radius: 0 !important;
}

.panel-stage::before {
    content: none;
}

#panel-content {
    background: transparent !important;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
}

#panel-content > * {
    position: relative;
    z-index: 1;
}

.site-logo {
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.38),
        0 16px 32px rgba(0, 113, 227, 0.28) !important;
}

.feature-icon,
.other-tool-icon,
.other-tool-arrow,
.mobile-guide-dialog-icon,
.menu-guide-btn {
    flex-shrink: 0;
}

.feature-icon {
    min-width: 2rem;
    min-height: 2rem;
    aspect-ratio: 1 / 1;
}

.feature-nav-icon i,
.feature-icon i,
.other-tool-arrow i,
.mobile-guide-dialog-icon i,
.menu-guide-btn i {
    line-height: 1;
}

.other-tool-icon {
    line-height: 1;
    aspect-ratio: 1 / 1;
}

.seed-tool,
.bca-tool,
.mol-tool,
.animal-tool,
.prep-tool,
.pcr-tool,
.dt-tool {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.seed-tool {
    gap: 0.75rem;
}

.bca-tool {
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.seed-mode-panel {
    display: grid;
    gap: 0.85rem;
    padding: 0.9rem !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

.seed-mode-switch {
    display: inline-flex;
    width: fit-content;
    align-self: flex-start;
}

.seed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 360px));
    justify-content: flex-start;
    align-items: start;
    gap: 1rem 1.15rem;
}

.seed-field {
    width: 100%;
    max-width: 360px;
}

.seed-field-full {
    max-width: 520px;
}

.seed-input-wrap,
.seed-inline {
    max-width: 100%;
}

.seed-extra {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.85rem;
    flex-wrap: wrap;
    width: fit-content;
    max-width: 100%;
    padding: 0.15rem 0 0;
}

.seed-extra-input {
    width: auto;
    max-width: 140px;
}

.seed-extra-input .seed-input {
    min-width: 100px;
}

.seed-actions {
    align-items: center;
    gap: 0.75rem;
    padding-top: 0.1rem;
}

.bca-hero,
.mol-hero,
.animal-hero,
.prep-hero,
.pcr-hero,
.dt-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.1rem 0 0.2rem !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.bca-top-grid,
.bca-bottom {
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.bca-eyebrow,
.mol-eyebrow,
.animal-eyebrow,
.prep-eyebrow,
.pcr-eyebrow,
.dt-eyebrow,
.bca-pill,
.mol-section-tag,
.animal-section-tag,
.prep-section-tag,
.pcr-section-tag,
.dt-section-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.34rem 0.74rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--app-accent-strong);
    background: rgba(10, 118, 234, 0.1);
}

.bca-hero h3,
.mol-hero h3,
.animal-hero h3,
.prep-hero h3,
.pcr-hero h3,
.dt-hero h3 {
    margin-top: 0.6rem;
    font-size: 1.26rem;
}

.bca-hero p,
.mol-hero p,
.animal-hero p,
.prep-hero p,
.pcr-hero p,
.dt-hero p,
.bca-hint,
.mol-hint,
.animal-hint,
.prep-hint,
.pcr-hint,
.dt-hint {
    margin: 0.55rem 0 0;
    line-height: 1.65;
    color: var(--app-muted);
}

.bca-hero-pills,
.mol-hero-tags,
.animal-hero-tags,
.prep-hero-tags,
.pcr-hero-tags,
.dt-hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.bca-hero-pills span,
.mol-hero-tags span,
.animal-hero-tags span,
.prep-hero-tags span,
.pcr-hero-tags span,
.dt-hero-tags span {
    padding: 0.45rem 0.72rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #2a4868;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.seed-mode-panel,
.bca-card,
.mol-card,
.mol-mini-card,
.animal-card,
.animal-result-card,
.prep-card,
.prep-result-card,
.pcr-card,
.pcr-template-box,
.dt-card,
.dt-result-card,
.dt-table-wrap,
.bca-chart-shell,
.bca-block {
    border-radius: var(--app-radius-lg) !important;
    border: 1px solid rgba(255, 255, 255, 0.64) !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.58)) !important;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05) !important;
}

.seed-mode-panel,
.bca-card,
.mol-card,
.mol-mini-card,
.animal-card,
.prep-card,
.pcr-card,
.dt-card {
    padding: 1rem;
}

.bca-head,
.bca-card-head,
.mol-card-head,
.animal-card-head,
.prep-card-head,
.pcr-card-head,
.dt-card-head,
.pcr-subhead,
.prep-subhead,
.animal-subhead,
.bca-subhead,
.dt-subhead {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.9rem;
}

.seed-title,
.bca-card h3,
.bca-card h4,
.mol-card h4,
.mol-mini-card h5,
.animal-card h4,
.prep-card h4,
.pcr-card h4,
.dt-card h4 {
    color: #0f1f35;
}

.seed-grid,
.bca-top-grid,
.mol-grid,
.mol-mini-grid,
.animal-grid,
.prep-grid,
.pcr-grid,
.dt-grid {
    gap: 0.9rem;
}

.seed-field,
.mol-field,
.animal-field,
.prep-field,
.pcr-field,
.dt-field {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.seed-label,
.mol-field > span,
.animal-field > span,
.prep-field > span,
.pcr-field > span,
.dt-field > span,
.bca-inline span:first-child {
    font-size: 0.8rem;
    font-weight: 700;
    color: #29425f;
}

.seed-input,
.bca-input,
.mol-input,
.animal-input,
.prep-input,
.pcr-input,
.dt-input,
.dt-textarea {
    width: 100%;
    border-radius: 16px !important;
    border: 1px solid rgba(15, 23, 42, 0.12) !important;
    background: rgba(255, 255, 255, 0.9) !important;
    color: #102036 !important;
    outline: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.seed-input,
.bca-input,
.mol-input,
.animal-input,
.prep-input,
.pcr-input,
.dt-input {
    min-height: 2.85rem;
    padding: 0 0.95rem;
}

.dt-textarea {
    min-height: 13rem;
    padding: 0.9rem 0.95rem;
    resize: vertical;
}

.seed-input:hover,
.bca-input:hover,
.mol-input:hover,
.animal-input:hover,
.prep-input:hover,
.pcr-input:hover,
.dt-input:hover,
.dt-textarea:hover,
.x-select-btn:hover,
.bca-select-btn:hover,
.mol-select-btn:hover,
.animal-select-btn:hover,
.prep-select-btn:hover,
.pcr-select-btn:hover,
.dt-select-btn:hover {
    border-color: rgba(10, 118, 234, 0.36) !important;
}

.seed-input:focus,
.bca-input:focus,
.mol-input:focus,
.animal-input:focus,
.prep-input:focus,
.pcr-input:focus,
.dt-input:focus,
.dt-textarea:focus {
    border-color: rgba(10, 118, 234, 0.66) !important;
    box-shadow: 0 0 0 4px rgba(10, 118, 234, 0.12) !important;
}

.x-select-btn,
.bca-select-btn,
.mol-select-btn,
.animal-select-btn,
.prep-select-btn,
.pcr-select-btn,
.dt-select-btn {
    width: 100%;
    min-height: 2.85rem;
    padding: 0.45rem 0.95rem;
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.86));
    color: #11233a;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
    font-size: 0.84rem;
    font-weight: 600;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.x-select.open .x-select-btn,
.bca-select.open .bca-select-btn,
.mol-select.open .mol-select-btn,
.animal-select.open .animal-select-btn,
.prep-select.open .prep-select-btn,
.pcr-select.open .pcr-select-btn,
.dt-select.open .dt-select-btn {
    border-color: rgba(10, 118, 234, 0.66);
    box-shadow: 0 0 0 4px rgba(10, 118, 234, 0.12);
}

.x-select-menu,
.bca-select-menu,
.mol-select-menu,
.animal-select-menu,
.prep-select-menu,
.pcr-select-menu,
.dt-select-menu,
.prep-combo-menu {
    margin-top: 0.45rem;
    padding: 0.4rem;
    border-radius: 18px !important;
    border: 1px solid rgba(15, 23, 42, 0.1) !important;
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16) !important;
}

.x-select-option,
.bca-select-option,
.mol-select-option,
.animal-select-option,
.prep-select-option,
.pcr-select-option,
.dt-select-option,
.prep-combo-option {
    border-radius: 12px !important;
    min-height: 2.4rem;
    transition: background-color 140ms ease, color 140ms ease;
}

.x-select-option:hover,
.bca-select-option:hover,
.mol-select-option:hover,
.animal-select-option:hover,
.prep-select-option:hover,
.pcr-select-option:hover,
.dt-select-option:hover,
.prep-combo-option:hover {
    background: rgba(10, 118, 234, 0.08) !important;
}

.x-select-option.is-selected,
.bca-select-option.is-selected,
.mol-select-option.is-selected,
.animal-select-option.is-selected,
.prep-select-option.is-selected,
.pcr-select-option.is-selected,
.dt-select-option.is-selected,
.prep-combo-option.is-selected {
    background: rgba(10, 118, 234, 0.14) !important;
    color: var(--app-accent-strong) !important;
    font-weight: 700;
}

.seed-btn,
.bca-btn,
.mol-btn,
.animal-btn,
.prep-btn,
.pcr-btn,
.dt-btn {
    min-height: 2.8rem;
    padding: 0.66rem 1rem;
    border-radius: 999px !important;
    border: 1px solid transparent;
    font-weight: 700;
    letter-spacing: 0.01em;
    transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.seed-btn:hover,
.bca-btn:hover,
.mol-btn:hover,
.animal-btn:hover,
.prep-btn:hover,
.pcr-btn:hover,
.dt-btn:hover {
    transform: translateY(-1px);
}

.seed-btn-primary,
.bca-btn-primary,
.mol-btn-primary,
.animal-btn-primary,
.prep-btn-primary,
.pcr-btn-primary,
.dt-btn-primary {
    color: #fff !important;
    background: linear-gradient(135deg, var(--app-accent), #26a3f2) !important;
    box-shadow: 0 14px 28px rgba(10, 118, 234, 0.24) !important;
}

.seed-btn-secondary,
.bca-btn-secondary,
.mol-btn-secondary,
.animal-btn-secondary {
    color: #0f2540 !important;
    background: rgba(10, 118, 234, 0.08) !important;
    border-color: rgba(10, 118, 234, 0.12) !important;
}

.seed-btn-secondary,
.bca-btn-light,
.mol-btn-light,
.animal-btn-light,
.prep-btn-light,
.pcr-btn-light,
.dt-btn-light,
.dt-btn-ghost {
    color: #0f2540 !important;
    background: rgba(255, 255, 255, 0.88) !important;
    border-color: rgba(15, 23, 42, 0.1) !important;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06) !important;
}

.seed-actions,
.bca-actions,
.bca-bottom,
.mol-actions,
.animal-actions,
.prep-actions,
.pcr-actions,
.dt-action-strip,
.dt-result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.seed-result,
.mol-result,
.animal-result,
.prep-result,
.pcr-result,
.dt-result,
#bca-result-container {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

#mobile-sidebar {
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

#feature-nav-mobile {
    min-height: 0;
    overflow-y: auto;
    padding-right: 0.15rem;
}

.seed-alert,
.bca-alert,
.animal-alert,
.prep-alert,
.pcr-alert,
.dt-empty,
.pcr-template-summary,
.prep-template-summary,
.bca-curve-info {
    border-radius: 18px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.seed-alert,
.bca-alert,
.animal-alert,
.prep-alert,
.pcr-alert {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 1rem;
}

.bca-hot,
.dt-table-wrap {
    overflow: hidden;
}

.animal-inline {
    flex-wrap: nowrap;
}

.animal-inline > .animal-input,
.animal-inline > .animal-unit,
.animal-inline > .animal-select,
.animal-solvent-main,
.animal-solvent-percent-wrap,
.animal-solvent-percent-wrap > .animal-input,
.pcr-component-col,
.pcr-component-col .pcr-inline > * {
    min-width: 0;
}

.animal-inline > .animal-input {
    flex: 1 1 auto;
}

.animal-inline > .animal-select,
.animal-inline > .animal-unit {
    flex-shrink: 0;
}

.animal-solvent-main {
    overflow: hidden;
}

.animal-solvent-nameplate {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pcr-table-wrap,
.pcr-layout-table-wrap {
    overflow-x: auto;
    padding-bottom: 0.2rem;
}

.pcr-table,
.pcr-layout-table {
    min-width: 560px;
}

.seed-result-card,
.animal-result-card,
.prep-result-card,
.dt-result-card,
.bca-block {
    padding: 1rem;
}

.seed-result-grid,
.animal-stats,
.prep-stats,
.dt-stats,
.mol-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
}

.dt-summary {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    gap: 0.65rem !important;
}

.dt-stats {
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 0.65rem;
}

.seed-result-item,
.animal-stat,
.prep-stat,
.dt-stat,
.mol-stat {
    padding: 0.82rem 0.88rem;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.035);
}

.dt-stat {
    gap: 0.18rem;
    padding: 0.72rem 0.82rem;
    border-radius: 14px;
    min-height: 0;
}

.seed-result-item span,
.animal-stat span,
.prep-stat span,
.dt-stat span,
.mol-stat span {
    display: block;
    font-size: 0.76rem;
    color: var(--app-muted);
}

.seed-result-item strong,
.animal-stat strong,
.prep-stat strong,
.dt-stat strong,
.mol-stat strong {
    display: block;
    margin-top: 0.28rem;
    font-size: 0.96rem;
    color: #102036;
}

.dt-stat strong {
    margin-top: 0.14rem;
    font-size: 0.9rem;
    line-height: 1.35;
}

.dt-table {
    background: rgba(255, 255, 255, 0.7);
}

.dt-table-cell {
    border-color: rgba(15, 23, 42, 0.08) !important;
}

.other-tools-section {
    position: relative;
    overflow: hidden;
}

.other-tools-section::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0)),
        radial-gradient(circle at 100% 0%, rgba(10, 118, 234, 0.08), rgba(10, 118, 234, 0) 28%);
}

.other-tools-head,
.other-tools-grid {
    position: relative;
    z-index: 1;
}

.other-tools-head {
    margin-bottom: 1.15rem;
}

.other-tools-title {
    font-size: clamp(1.15rem, 1.8vw, 1.5rem);
    color: #0f1f35;
}

.other-tools-subtitle {
    margin: 0.38rem 0 0;
    font-size: 0.86rem;
    color: var(--app-muted);
}

.other-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.9rem;
}

.other-tool-card,
.other-tools-empty {
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.76);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.68));
    box-shadow: var(--app-shadow-soft);
}

.other-tool-card {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    min-height: 210px;
    padding: 1rem;
    text-decoration: none;
    color: inherit;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.other-tool-card:hover {
    transform: translateY(-2px);
    border-color: rgba(10, 118, 234, 0.16);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.1);
}

.other-tool-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
}

.other-tool-icon,
.other-tool-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.other-tool-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 16px;
    background: rgba(10, 118, 234, 0.1);
    font-size: 1.45rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.other-tool-arrow {
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 999px;
    color: var(--app-accent-strong);
    background: rgba(15, 23, 42, 0.05);
}

.other-tool-title {
    margin: 0;
    font-size: 1rem;
    line-height: 1.45;
    color: #102036;
}

.other-tool-desc {
    margin: 0;
    font-size: 0.84rem;
    line-height: 1.65;
    color: var(--app-muted);
}

.other-tool-link {
    margin-top: auto;
    font-size: 0.76rem;
    line-height: 1.55;
    color: #35628f;
    word-break: break-all;
}

.other-tools-empty {
    padding: 1rem 1.1rem;
    font-size: 0.88rem;
    color: var(--app-muted);
}

@media (max-width: 1023px) {
    .panel-stage {
        min-height: 520px;
    }

    .bca-hero,
    .mol-hero,
    .animal-hero,
    .prep-hero,
    .pcr-hero,
    .dt-hero {
        flex-direction: column;
    }

    .app-panel-head {
        align-items: flex-start;
    }

    .panel-title-row {
        align-items: flex-start;
    }

    .animal-select {
        flex: 0 0 110px;
        max-width: 110px;
    }

    .animal-solvent-row {
        grid-template-columns: 56px minmax(0, 1fr) minmax(110px, 132px);
        gap: 0.6rem;
        padding: 0.72rem 2.8rem 0.72rem 0.72rem;
    }

    .animal-solvent-percent-wrap {
        gap: 0.35rem;
    }

    .pcr-table-head,
    .pcr-table-row,
    .pcr-layout-head,
    .pcr-layout-row {
        grid-template-columns: 1.5fr 1fr 0.8fr 0.8fr;
    }

    .seed-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }
}

@media (max-width: 767px) {
    .app-shell {
        width: 95%;
    }

    .app-title-row {
        align-items: flex-start;
        gap: 0.65rem;
    }

    .app-badge {
        padding: 0.38rem 0.78rem;
        font-size: 0.76rem;
    }

    .seed-mode-panel,
    .bca-card,
    .mol-card,
    .mol-mini-card,
    .animal-card,
    .prep-card,
    .pcr-card,
    .dt-card {
        border-radius: 20px !important;
    }

    .feature-btn-subtitle,
    .panel-subtitle {
        font-size: 0.8rem;
    }

    .panel-title-row {
        gap: 0.55rem;
    }

    .mobile-feature-switch-btn {
        min-height: 2.1rem;
        padding: 0.36rem 0.74rem;
    }

    .seed-actions,
    .bca-actions,
    .bca-bottom,
    .mol-actions,
    .animal-actions,
    .prep-actions,
    .pcr-actions,
    .dt-action-strip,
    .dt-result-actions {
        flex-direction: column;
    }

    .seed-btn,
    .bca-btn,
    .mol-btn,
    .animal-btn,
    .prep-btn,
    .pcr-btn,
    .dt-btn {
        width: 100%;
        justify-content: center;
    }

    .feature-nav-icon {
        min-width: 2.5rem;
        min-height: 2.5rem;
    }

    .feature-icon {
        min-width: 2.1rem;
        min-height: 2.1rem;
    }

    .other-tool-icon {
        width: 3.1rem;
        height: 3.1rem;
    }

    .other-tools-grid {
        grid-template-columns: 1fr;
    }

    .seed-grid {
        grid-template-columns: 1fr;
        gap: 0.85rem;
    }

    .seed-field,
    .seed-field-full,
    .seed-extra {
        max-width: 100%;
        width: 100%;
    }

    .seed-extra {
        align-items: flex-start;
    }

    .seed-extra-input {
        max-width: 160px;
    }

    .animal-select {
        flex-basis: 108px;
        max-width: 108px;
    }

    .animal-solvent-table {
        overflow: visible;
    }

    .animal-solvent-row {
        grid-template-columns: 52px minmax(0, 1fr) minmax(104px, 120px);
        gap: 0.5rem;
        padding: 0.68rem 2.55rem 0.68rem 0.68rem;
    }

    .animal-solvent-nameplate,
    .animal-solvent-main .animal-input,
    .animal-solvent-percent-wrap .animal-input {
        font-size: 0.8rem;
    }

    .animal-unit {
        min-width: 4.1rem;
    }

    .pcr-table,
    .pcr-layout-table {
        min-width: 520px;
    }
}
