html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    color: #1b2d2f;
    font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(240, 180, 90, 0.22), transparent 34%),
        radial-gradient(circle at top right, rgba(66, 131, 120, 0.16), transparent 28%),
        linear-gradient(180deg, #f7f2e9 0%, #eef1eb 44%, #e6ece8 100%);
    background-attachment: fixed;
}

body:before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(27, 45, 47, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(27, 45, 47, 0.025) 1px, transparent 1px);
    background-size: 26px 26px;
    opacity: 0.5;
}

a {
    color: #2c6a61;
}

a:hover,
a:focus {
    color: #173f45;
}

.invalidBreederCageLink,
.invalidBreederCageLink:hover,
.invalidBreederCageLink:focus {
    color: #b13c2e;
    font-weight: 700;
}

.container {
    position: relative;
}

.navbar.navbar-inverse {
    margin: 18px 18px 28px;
    border: 1px solid rgba(33, 73, 72, 0.12);
    border-radius: 22px;
    background: rgba(17, 42, 46, 0.84);
    box-shadow: 0 18px 45px rgba(18, 35, 36, 0.14);
}

.navbar-inverse .container {
    width: auto;
    padding: 8px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-inverse .navbar-text {
    margin-top: 14px;
    margin-bottom: 14px;
    color: #f6e7c9;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.navbar-inverse .navbar-header {
    flex: 0 0 auto;
}

#navbar {
    flex: 1 1 auto;
    min-width: 0;
}

#navbar .navbar-nav {
    display: flex;
    flex-wrap: nowrap;
}

.navbar-inverse .nav > li > a,
.navbar-inverse .navbar-nav > li > a,
.navbar-inverse .navbar-link,
.navbar-inverse .dropdown-menu > li > a {
    color: rgba(243, 247, 242, 0.9);
    font-weight: 600;
}

.navbar-inverse .nav > li > a,
.navbar-inverse .navbar-nav > li > a {
    padding: 13px 14px;
    font-size: 16px;
    line-height: 1.2;
    white-space: nowrap;
}

.navbar-inverse .nav > li > a:hover,
.navbar-inverse .nav > li > a:focus,
.navbar-inverse .navbar-nav > .active > a,
.navbar-inverse .navbar-nav > .active > a:hover,
.navbar-inverse .navbar-nav > .active > a:focus {
    color: #173f45;
    background: #f3e2bc;
    border-radius: 999px;
}

.navbar-inverse .dropdown-menu {
    margin-top: 12px;
    padding: 8px;
    border: 1px solid rgba(23, 63, 69, 0.12);
    border-radius: 16px;
    background: rgba(255, 250, 241, 0.98);
    box-shadow: 0 16px 40px rgba(17, 42, 46, 0.12);
}

.navbar-inverse .navbar-right .dropdown-toggle,
.navbar-inverse .navbar-right .dropdown-menu > li > a {
    color: #f6e7c9;
}

.navbar-inverse .navbar-right {
    flex: 0 0 auto;
    margin-right: 0;
    margin-left: auto;
}

.navbar-inverse .navbar-right > li > a {
    padding: 13px 12px;
    font-size: 16px;
    white-space: nowrap;
}

.navbar-inverse .navbar-right .dropdown-toggle:hover,
.navbar-inverse .navbar-right .dropdown-toggle:focus,
.navbar-inverse .navbar-nav > .open > a,
.navbar-inverse .navbar-nav > .open > a:hover,
.navbar-inverse .navbar-nav > .open > a:focus {
    color: #102f34;
    background: rgba(243, 226, 188, 0.92);
    border-radius: 999px;
}

.navbar-inverse .dropdown-menu > li > a:hover,
.navbar-inverse .dropdown-menu > li > a:focus {
    color: #102f34;
    background: #edf3ef;
    border-radius: 10px;
}

.loginPage {
    max-width: 520px;
    margin: 72px auto 0;
    padding: 34px 32px 28px;
    border: 1px solid rgba(24, 61, 58, 0.08);
    border-radius: 28px;
    background: rgba(255, 251, 244, 0.92);
    box-shadow: 0 28px 70px rgba(27, 45, 47, 0.16);
    backdrop-filter: blur(10px);
}

.loginPage-shell {
    display: flex;
    gap: 28px;
    max-width: 1080px;
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}

.loginHero,
.loginCard {
    border: 1px solid rgba(24, 61, 58, 0.08);
    border-radius: 28px;
    background: rgba(255, 251, 244, 0.92);
    box-shadow: 0 28px 70px rgba(27, 45, 47, 0.16);
    backdrop-filter: blur(10px);
}

.loginHero {
    flex: 1 1 56%;
    padding: 42px 40px;
}

.loginCard {
    flex: 0 0 380px;
    padding: 34px 32px 28px;
}

.loginTitleBlock {
    text-align: center;
}

.loginBrandTitle {
    margin: 0;
    color: #16343a;
    font-size: 48px;
    font-weight: 700;
    line-height: 1.05;
}

.loginHeroSummary {
    margin: 18px 0 0;
    color: #16343a;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.6;
}

.loginLead {
    max-width: 540px;
    margin: 18px auto 0;
    color: rgba(22, 52, 58, 0.8);
    font-size: 16px;
    line-height: 1.6;
}

.loginHighlights {
    margin-top: 28px;
}

.loginHighlight {
    padding: 18px 0;
    border-top: 1px solid rgba(23, 63, 69, 0.08);
}

.loginHighlight strong {
    display: block;
    margin-bottom: 6px;
    color: #16343a;
    font-size: 16px;
}

.loginHighlight span {
    color: rgba(22, 52, 58, 0.78);
    line-height: 1.6;
}

.form-signin {
    max-width: none;
}

.form-signin-heading {
    margin: 0 0 22px;
    color: #16343a;
    font-size: 34px;
    font-weight: 700;
    line-height: 1.15;
}

.loginCardText {
    margin: -6px 0 22px;
    color: rgba(22, 52, 58, 0.72);
    line-height: 1.6;
}

.form-control {
    height: 48px;
    border: 1px solid rgba(29, 68, 66, 0.14);
    border-radius: 14px;
    box-shadow: none;
}

.form-control:focus {
    border-color: #2c6a61;
    box-shadow: 0 0 0 4px rgba(44, 106, 97, 0.12);
}

.form-signin .form-control + .form-control {
    margin-top: 12px;
}

.btn {
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.01em;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

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

.btn-primary {
    border-color: #1d544f;
    background: linear-gradient(135deg, #1f5d59 0%, #35796f 100%);
    box-shadow: 0 12px 28px rgba(31, 93, 89, 0.18);
}

.btn-primary:hover,
.btn-primary:focus {
    border-color: #163f43;
    background: linear-gradient(135deg, #194947 0%, #2e6a62 100%);
}

.btn-default.loginSecondaryAction {
    border-color: rgba(23, 63, 69, 0.14);
    color: #173f45;
    background: rgba(255, 250, 241, 0.92);
}

.btn-default.loginSecondaryAction:hover,
.btn-default.loginSecondaryAction:focus {
    color: #173f45;
    background: #f3e2bc;
    border-color: rgba(23, 63, 69, 0.12);
}

.btn-block + .btn-block {
    margin-top: 12px;
}

.alert {
    border-radius: 16px;
    border: none;
}

.alert-danger {
    color: #7c1f17;
    background: #fde7df;
}

.invalid-username-error {
    margin-left: 10px;
}

.table {
    border-radius: 18px;
    overflow: hidden;
    background: rgba(255, 252, 247, 0.9);
    box-shadow: 0 16px 36px rgba(17, 42, 46, 0.08);
}

.table > thead > tr > th {
    color: #16343a;
    background: #f0e4c9;
    border-bottom: 1px solid rgba(22, 52, 58, 0.08);
}

.table > tbody > tr > td {
    border-top: 1px solid rgba(22, 52, 58, 0.06);
}

.dataTableShell {
    position: relative;
    overflow: visible;
    overflow-y: visible;
    border-radius: 18px;
}

.dataTable {
    margin-bottom: 0;
    overflow: visible;
    border-collapse: separate;
    border-spacing: 0;
}

.dataTable.table {
    overflow: visible;
}

.dataTableHead {
    position: relative;
    z-index: 4;
}

.dataTableHeaderCell {
    position: sticky;
    top: 0;
    z-index: 5;
    min-width: 120px;
    vertical-align: top;
    background: #f0e4c9;
    box-shadow: inset 0 -1px 0 rgba(22, 52, 58, 0.08), 0 6px 16px rgba(17, 42, 46, 0.08);
}

.dataTableHeaderTitleRow {
    display: flex;
    align-items: center;
    gap: 6px;
}

.dataTableEditableHint {
    color: #2c6a61;
    font-size: 12px;
    line-height: 1;
}

.dataTableCell,
.dataTableActionCell {
    vertical-align: middle;
}

.dataTableActionCell {
    width: 1%;
    white-space: nowrap;
}

.dataTableSelectionCell {
    width: 56px;
    min-width: 56px;
    text-align: center;
}

.dataTableSelectionToggle {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.dataTableRow-editing {
    background: rgba(243, 226, 188, 0.34);
}

.dataTableBody .dataTableRow-cageBandA > td {
    background: rgba(255, 252, 247, 0.94);
}

.dataTableBody .dataTableRow-cageBandB > td {
    background: rgba(243, 226, 188, 0.26);
}

.dataTableBody .dataTableRow-female.dataTableRow-cageBandA > td,
.dataTableBody .dataTableRow-female > td {
    background: rgba(251, 227, 236, 0.96);
}

.dataTableBody .dataTableRow-female.dataTableRow-cageBandB > td {
    background: rgba(246, 210, 224, 0.88);
}

.dataTableSort {
    padding: 0;
    color: #16343a;
    font-weight: 700;
    border: none;
    background: none;
}

.dataTableSort:hover,
.dataTableSort:focus {
    color: #2c6a61;
    text-decoration: underline;
    outline: none;
}

.dataTableColumnButtons {
    display: flex;
    gap: 6px;
    align-items: center;
    margin-top: 8px;
}

.dataTableEmptyRow td {
    padding: 32px 20px;
}

.dataTableEmptyCell {
    color: rgba(22, 52, 58, 0.7);
    text-align: center;
    font-size: 15px;
}

.mice-table-input {
    width: 50px;
}

.custom-filter {
    width: 70px;
    margin-right: 20px;
}

.mice-table-input.long-input {
    width: 100%;
}

.genotypeEditControl {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    width: auto;
    min-width: max-content;
}

.genotypeEditToolbar {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.genotypeEditInput {
    flex: 0 0 auto;
}

.genotypeEditInput .mice-table-input.long-input {
    width: auto;
    min-width: 28ch;
}

.genotypeAutofillButton {
    border: 1px solid #b8cbd1;
    background: #f4fafb;
    color: #184149;
    border-radius: 4px;
    font-size: 12px;
    line-height: 1;
    padding: 6px 8px;
    cursor: pointer;
    flex: 0 0 auto;
}

.genotypeAutofillButton:hover,
.genotypeAutofillButton:focus {
    background: #e4f1f4;
    outline: none;
}

.genotypeAutofillButton[disabled] {
    opacity: 0.55;
    cursor: default;
    background: #eef3f4;
    color: #6d8086;
}

.genotypePredictionPanel {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
    align-items: flex-start;
}

.genotypePredictionField {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-weight: 400;
    color: #184149;
}

.genotypePredictionLabel {
    font-size: 12px;
    white-space: nowrap;
}

.genotypePredictionField select {
    min-width: 110px;
    max-width: 180px;
    font-size: 12px;
}

.mice-table-input.invalid {
    background-color: #ffd2c4;
}

.mice-table-input.warning {
    background-color: #fff4c7;
    box-shadow: inset 0 0 0 1px rgba(194, 133, 30, 0.38);
}

.inputWarningText {
    margin-top: 6px;
    color: #9c5c00;
    font-size: 12px;
    line-height: 1.4;
}

.genotypeImpossibleWarning {
    color: inherit;
    font-weight: inherit;
}

.genotypeImpossibleGene {
    color: #b42318;
    font-weight: 700;
}

.breederAssignCell {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 140px;
}

.breederAssignCurrent {
    color: #16343a;
    font-size: 12px;
    line-height: 1.4;
}

.breederAssignEditor {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.breederAssignInput {
    width: 72px;
}

.breederAssignButton {
    border: 1px solid rgba(29, 68, 66, 0.16);
    border-radius: 999px;
    background: rgba(255, 250, 241, 0.92);
    color: #173f45;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    padding: 6px 10px;
}

.breederAssignButton-primary {
    background: linear-gradient(135deg, #1f5d59 0%, #35796f 100%);
    border-color: #1d544f;
    color: #f7fbf8;
}

.breederAssignButton:disabled {
    opacity: 0.65;
}

.breederAssignError {
    flex-basis: 100%;
    color: #8b3b27;
    font-size: 12px;
    line-height: 1.4;
}

.column-buttons {
    white-space: nowrap;
}

.or-button {
    margin-left: 10px;
}

.remove-column {
    padding: 0;
    margin-left: 10px;
    font-size: 8pt;
    border: none;
    background: none;
}

.duplicate-row,
.remove-row,
.edit-gene {
    padding: 0;
    margin-right: 10px;
    font-size: 15pt;
    border: none;
    background: none;
}

.query-item,
.gene-list {
    max-width: 400px;
}

select {
    margin-left: 10px;
    margin-right: 10px;
    border-radius: 10px;
}

select:disabled {
    color: graytext;
}

.checkbox-label {
    margin-left: 20px;
}

.edit-gene,
.edit-gene:hover {
    color: #173f45;
    text-decoration: none;
}

.modal-content {
    border: 1px solid rgba(23, 63, 69, 0.08);
    border-radius: 24px;
    box-shadow: 0 28px 60px rgba(27, 45, 47, 0.16);
}

.modal-header {
    border-bottom: 1px solid rgba(23, 63, 69, 0.08);
}

.modal-footer {
    border-top: 1px solid rgba(23, 63, 69, 0.08);
}

.workspacePage {
    padding-bottom: 28px;
}

.workspaceIntro {
    margin-bottom: 22px;
}

.workspaceIntro h1 {
    margin: 0;
    color: #16343a;
    font-size: 34px;
    font-weight: 700;
}

.workspaceIntro p {
    max-width: 760px;
    margin: 10px 0 0;
    color: rgba(22, 52, 58, 0.72);
    font-size: 16px;
    line-height: 1.65;
}

.queryLoading {
    padding: 28px 32px;
    border: 1px solid rgba(23, 63, 69, 0.08);
    border-radius: 24px;
    background: rgba(255, 251, 244, 0.92);
    box-shadow: 0 20px 50px rgba(27, 45, 47, 0.12);
}

.queryError {
    border-color: rgba(168, 73, 43, 0.22);
    background: rgba(255, 245, 239, 0.96);
    color: #8b3b27;
}

.queryWorkspace {
    display: block;
}

.queryToolbar,
.queryResultsPanel,
.queryPanel {
    border: 1px solid rgba(23, 63, 69, 0.08);
    border-radius: 24px;
    background: rgba(255, 251, 244, 0.94);
    box-shadow: 0 20px 50px rgba(27, 45, 47, 0.1);
}

.queryToolbar {
    display: flex;
    justify-content: space-between;
    gap: 22px;
    align-items: flex-start;
    padding: 24px 26px;
}

.queryToolbarCopy h2 {
    margin: 0;
    color: #16343a;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
}

.queryToolbarSubtitle {
    margin-top: 8px;
    font-size: 22px;
    line-height: 1.2;
    white-space: nowrap;
}

.breederWorkspaceTitle {
    font-size: 22px;
}

.queryEyebrow {
    margin: 0 0 8px;
    color: #2c6a61;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.queryActionGroup {
    display: grid;
    grid-template-columns: repeat(2, minmax(190px, 1fr));
    gap: 12px;
    justify-content: end;
    align-content: start;
}

.queryViewToggleGroup {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    grid-column: 1 / -1;
}

.queryActionButton {
    min-width: 0;
    width: 100%;
}

.breederActionPair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
}

.breederActionPairButton {
    min-width: 0;
    width: 100%;
    padding-left: 10px;
    padding-right: 10px;
}

.parentSlotContent {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.breederParentValue {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.breederParentValue-dead {
    color: #c43c35;
    font-weight: 700;
}

.breederParentStateBadge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1px 6px;
    border-radius: 999px;
    background: #fff1f0;
    border: 1px solid #f2b8b5;
    color: #c43c35;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
}

.parentSwapButton {
    width: 18px;
    height: 18px;
    padding: 0;
    border: 2px solid #f25a54;
    border-radius: 999px;
    background: #fff;
    color: #f25a54;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    line-height: 1;
}

.parentSwapButton .glyphicon {
    font-size: 8px;
    top: 0;
}

.parentSwapButton:hover,
.parentSwapButton:focus {
    background: #fff4f1;
    color: #d94a44;
    border-color: #d94a44;
    outline: none;
}

.parentRemoveButton {
    width: 18px;
    height: 18px;
    padding: 0;
    border: 2px solid rgba(22, 52, 58, 0.24);
    border-radius: 999px;
    background: #fff;
    color: rgba(22, 52, 58, 0.76);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    line-height: 1;
}

.parentRemoveButton .glyphicon {
    font-size: 8px;
    top: 0;
}

.parentRemoveButton:hover,
.parentRemoveButton:focus {
    background: rgba(22, 52, 58, 0.06);
    color: #16343a;
    border-color: rgba(22, 52, 58, 0.42);
    outline: none;
}

.queryStats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 18px 0;
}

.queryStatCard {
    padding: 18px 20px;
    border: 1px solid rgba(23, 63, 69, 0.08);
    border-radius: 20px;
    background: rgba(244, 248, 243, 0.9);
    box-shadow: 0 14px 30px rgba(27, 45, 47, 0.08);
}

.queryStatCard strong {
    display: block;
    margin-top: 6px;
    color: #16343a;
    font-size: 28px;
    font-weight: 700;
}

.queryStatLabel {
    color: rgba(22, 52, 58, 0.72);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.queryControlGrid {
    margin-bottom: 18px;
}

.queryControlGrid > [class^="col-"] {
    margin-bottom: 16px;
}

.queryPanel {
    height: 100%;
    padding: 22px 24px;
}

.queryPanelTitle {
    margin: 0;
    color: #16343a;
    font-size: 22px;
    font-weight: 700;
}

.queryPanelText {
    margin: 8px 0 18px;
    color: rgba(22, 52, 58, 0.72);
    line-height: 1.6;
}

.queryErrorText {
    color: #b42318;
    font-weight: 600;
}

.breederProfileActions {
    grid-template-columns: minmax(160px, 220px);
}

.queryWarningText {
    color: #9c5c00;
    font-weight: 600;
}

.queryFilterList {
    margin-bottom: 14px;
}

.queryFilterItem {
    border: 1px solid rgba(23, 63, 69, 0.06);
    border-radius: 16px;
    background: #fffdfa;
}

.queryInlineControls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    color: #173f45;
    font-weight: 600;
}

.queryInlineControls select {
    margin: 0;
}

.enhancedSelect {
    min-width: 180px;
}

.enhancedSelectButton {
    border-radius: 12px;
    min-width: 180px;
    text-align: left;
}

.queryColumnTools > div {
    margin-bottom: 12px;
    color: #173f45;
    font-weight: 600;
}

.queryColumnControlRow {
    justify-content: flex-start;
}

.queryColumnAddButton {
    padding: 6px 12px;
    line-height: 1.2;
}

.queryExportOptionList {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.queryExportOptionButton {
    width: 100%;
    text-align: left;
    padding: 10px 14px;
}

.queryResultsPanel {
    padding: 22px 24px;
}

.queryResultsHeader {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    margin-bottom: 16px;
}

.mouseWorkspace .queryResultsPanel + .queryResultsPanel {
    margin-top: 18px;
}

.mouseToolbar {
    margin-bottom: 18px;
}

.mouseStats {
    margin-bottom: 18px;
}

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

.managementCard {
    display: block;
    padding: 24px 24px 22px;
    border: 1px solid rgba(23, 63, 69, 0.08);
    border-radius: 22px;
    background: rgba(255, 251, 244, 0.94);
    box-shadow: 0 18px 40px rgba(27, 45, 47, 0.1);
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.managementCard:hover,
.managementCard:focus {
    text-decoration: none;
    transform: translateY(-2px);
    border-color: rgba(44, 106, 97, 0.18);
    box-shadow: 0 24px 48px rgba(27, 45, 47, 0.14);
}

.managementCard strong {
    display: block;
    margin-bottom: 8px;
    color: #16343a;
    font-size: 20px;
    font-weight: 700;
}

.managementCard span {
    color: rgba(22, 52, 58, 0.74);
    line-height: 1.65;
}

.breederParentHover {
    position: relative;
    display: inline-flex;
    align-items: center;
    color: inherit;
}

.breederParentHover-value {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.breederParentHover-dead {
    color: #c43c35;
    font-weight: 700;
}

.breederParentHover-tooltip {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    transform: translateX(-50%);
    z-index: 20;
    min-width: 180px;
    max-width: 320px;
    padding: 6px 10px;
    border-radius: 6px;
    background: rgba(15, 23, 42, 0.96);
    color: #f8fafc;
    font-size: 12px;
    line-height: 1.4;
    white-space: normal;
    text-align: left;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.22);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.05s ease-out;
}

.breederParentHover-tooltip::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 100%;
    transform: translateX(-50%);
    border-width: 6px 6px 0 6px;
    border-style: solid;
    border-color: rgba(15, 23, 42, 0.96) transparent transparent transparent;
}

.breederParentHover:hover .breederParentHover-tooltip,
.breederParentHover:focus-within .breederParentHover-tooltip {
    opacity: 1;
}

.managementPanel {
    padding: 22px 24px;
}

.teamAccessStatsGrid {
    margin-top: 18px;
}

.statsSelectRow {
    margin-bottom: 18px;
}

.statsChart {
    width: 100%;
}

.statsChart-vertical {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
    align-items: end;
    min-height: 280px;
}

.statsBarGroup {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.statsBarValue {
    color: #16343a;
    font-size: 13px;
    font-weight: 700;
}

.statsBarTrack {
    display: flex;
    align-items: flex-end;
    width: 100%;
    height: 200px;
    padding: 6px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(44, 106, 97, 0.08) 0%, rgba(44, 106, 97, 0.16) 100%);
}

.statsBarFill {
    width: 100%;
    min-height: 4px;
    border-radius: 12px 12px 8px 8px;
    background: linear-gradient(180deg, #2f7a70 0%, #1d544f 100%);
    box-shadow: 0 12px 22px rgba(31, 93, 89, 0.16);
}

.statsBarLabel {
    color: rgba(22, 52, 58, 0.76);
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    line-height: 1.4;
}

.statsChart-horizontal {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.statsHorizontalRow {
    display: grid;
    grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
    gap: 16px;
    align-items: center;
}

.statsHorizontalLabel {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.statsHorizontalLabel strong {
    color: #16343a;
    font-size: 14px;
}

.statsHorizontalLabel span {
    color: rgba(22, 52, 58, 0.7);
    font-size: 12px;
    line-height: 1.4;
}

.statsHorizontalTrack {
    position: relative;
    height: 34px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(44, 106, 97, 0.12);
}

.statsHorizontalFill {
    height: 100%;
    min-width: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, #cc8b42 0%, #a95e2a 100%);
}

.statsHorizontalValue {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    color: #16343a;
    font-size: 12px;
    font-weight: 700;
}

.managementList {
    margin-bottom: 14px;
}

.managementListItem {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    border: 1px solid rgba(23, 63, 69, 0.06);
    border-radius: 16px;
    background: #fffdfa;
}

.managementListCopy {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    min-width: 0;
    flex: 1 1 auto;
}

.managementUsageBadge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(44, 106, 97, 0.12);
    color: #1d544f;
    font-size: 12px;
    font-weight: 700;
}

.managementEmptyItem {
    color: rgba(22, 52, 58, 0.68);
    text-align: center;
}

.managementListActions {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
    flex: 0 0 auto;
    float: none;
    margin-left: auto;
}

.managementListItem input[type="text"] {
    min-width: 220px;
}

.managementListActions .remove-row {
    margin-right: 0;
}

.managementListActions select {
    margin: 0;
}

.familyTreeRoot {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.familyTreeSection {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.familyTreeCurrentMouse {
    display: flex;
    justify-content: center;
}

.familyTreeList,
.familyTreeChildren {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.familyTreeChildren {
    margin-top: 14px;
    margin-left: 28px;
    padding-left: 18px;
    border-left: 2px solid rgba(44, 106, 97, 0.16);
}

.familyTreeChildren-ancestor {
    border-left-color: rgba(148, 163, 184, 0.32);
}

.familyTreeCard {
    padding: 18px 20px;
    border: 1px solid rgba(23, 63, 69, 0.08);
    border-radius: 18px;
    background: rgba(255, 251, 244, 0.88);
}

.familyTreeCard-current {
    width: min(100%, 560px);
    border-color: rgba(44, 106, 97, 0.18);
    background: rgba(240, 253, 250, 0.9);
    box-shadow: 0 12px 24px rgba(27, 45, 47, 0.08);
}

.familyTreeCard-current .familyTreeBadge {
    background: rgba(16, 185, 129, 0.12);
    color: #047857;
}

.familyTreeCard-ancestor {
    background: rgba(247, 250, 252, 0.92);
    border-color: rgba(194, 101, 34, 0.18);
    color: #9a3412;
}

.familyTreeCard-ancestor .queryEyebrow,
.familyTreeCard-ancestor .queryPanelText,
.familyTreeCard-ancestor .familyTreeMeta {
    color: rgba(154, 52, 18, 0.8);
}

.familyTreeCard-ancestor .familyTreeHeader h4,
.familyTreeCard-ancestor .familyTreeHeader h4 a,
.familyTreeCard-ancestor .familyTreeHeader h4 a:hover,
.familyTreeCard-ancestor .familyTreeHeader h4 a:focus {
    color: #c2410c;
}

.familyTreeCard-ancestor .familyTreeBadge {
    background: rgba(251, 146, 60, 0.16);
    color: #c2410c;
}

.familyTreeHeader {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
}

.familyTreeHeader h4 {
    margin: 4px 0 0;
    color: #16343a;
    font-size: 20px;
    font-weight: 700;
}

.familyTreeBadge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(44, 106, 97, 0.12);
    color: #1d544f;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.familyTreeMeta {
    margin: 0;
    color: rgba(22, 52, 58, 0.72);
    font-size: 13px;
    font-weight: 600;
}

@media (max-width: 768px) {
    .navbar.navbar-inverse {
        margin: 10px;
        border-radius: 18px;
    }

    .navbar-inverse .container {
        padding: 6px 14px 12px;
        display: block;
    }

    #navbar .navbar-nav {
        display: block;
    }

    .navbar-inverse .navbar-right {
        margin-left: 0;
    }

    .loginPage {
        margin: 24px 12px 0;
        padding: 26px 20px 22px;
    }

    .loginPage-shell {
        display: block;
        max-width: none;
        padding: 0;
    }

    .loginHero,
    .loginCard {
        padding: 26px 20px 22px;
    }

    .loginHero {
        margin-bottom: 18px;
    }

    .form-signin-heading {
        font-size: 28px;
    }

    .loginHero h1 {
        font-size: 30px;
    }

    .queryToolbar {
        display: block;
    }

    .queryActionGroup {
        grid-template-columns: 1fr;
        margin-top: 16px;
    }

    .queryActionGroup {
        justify-content: flex-start;
        margin-top: 16px;
    }

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

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

    .statsChart-vertical {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        min-height: auto;
    }

    .statsBarTrack {
        height: 160px;
    }

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

    .familyTreeChildren {
        margin-left: 12px;
        padding-left: 12px;
    }
}
