/* Tool controls, built from the same tokens as home.css: 2px #213a43 borders with a heavier bottom edge. */
[hidden] {
    display: none !important;
}
.elo-page details {
    font-weight: 500;
    font-size: 15px;
    min-width: 0;
    margin-block: 12px;
    padding: 12px;
    outline: 1px solid rgb(33 58 67 / 18%);
    border-radius: 5px;
}
.elo-page details > summary {
    width: fit-content;
    max-width: 100%;
    font-weight: 500;
    font-size: 15px;
    -webkit-user-select: none;
    user-select: none;
    cursor: pointer;
    overflow-wrap: anywhere;
}
.elo-page details[open] {
    outline-color: rgb(33 58 67 / 28%);
}
.tool-connection {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 20px 0;
    padding: 0;
    max-width: none;
}
.tool-connection li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: "Mona Sans";
    font-weight: 700;
    font-size: 16px;
    margin: 0;
    padding: 8px 0;
    border-bottom: 2px dashed #ebebeb;
}
.tool-connection small {
    margin-left: auto;
    font-weight: 500;
    color: #4f6881;
}
.tool-connection [data-state="ok"] i { color: #2e7d32; }
.tool-connection [data-state="bad"] i { color: darkred; }
.tool-connection [data-state="wait"] i { color: #4f6881; }
.tool-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
    gap: 20px;
    margin: 30px 0;
}
@media (min-width: 1150px) {
    .tool-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.tool-cards .tool-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px;
    color: #213a43;
    text-decoration: none;
    background-color: #ffffff;
    border: 2px solid #213a43;
    border-bottom-width: 5px;
    border-radius: 5px;
}
.tool-card:hover {
    background-color: #f5f5f5;
}
.tool-card:active {
    border-color: black;
    border-bottom-width: 2px;
    transform: translateY(3px);
    margin-bottom: 3px;
}
.tool-card:focus-visible {
    outline: 3px solid #5f8895;
    outline-offset: 3px;
}
.tool-cards .tool-card h2,
.tool-cards .tool-card p {
    margin: 0;
    padding: 0;
    border: 0;
}
.tool-card h2 {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: "Mona Sans";
    font-size: 24px;
    font-weight: 800;
    font-stretch: extra-expanded;
}
.tool-card p {
    line-height: 1.5;
}
.tool-card[href="leela2onnx/"] h2 .bi-gear::before,
.tool-card[href="game-exporter/"] h2 .bi-download::before {
    -webkit-text-stroke: 0.8px currentColor;
}
.tool-card[href="leela2onnx/"] h2 .bi-gear,
.tool-card[href="game-exporter/"] h2 .bi-download,
.tool-card[href="leela2onnx/"] h2 svg,
.tool-card[href="game-exporter/"] h2 svg {
    flex-shrink: 0;
}
.tool-card[href="game-exporter/"] h2 { font-weight: 800; gap: 14px; }
.markdown-section .tool-group-divider {
    height: 0;
    margin: 0;
    border: 0;
    border-top: 1px solid rgb(33 58 67 / 18%);
}
.tool-card h2 .elo-eye-word {
    display: inline;
    font-weight: 500;
}
@font-face {
    font-family: "PBookSmith Whisper";
    src: url("../assets/fonts/Whisper-Regular.ttf") format("truetype");
    font-display: block;
}
/* Reserve the Whisper P's advance so font loading cannot move the title. */
.tool-card h2 .personality-card-name { display: inline-flex; align-items: center; white-space: nowrap; }
.tool-card h2 .personality-card-prefix { flex: 0 0 0.565em; min-width: 0; align-self: center; line-height: 46px; font-family: "PBookSmith Whisper", cursive; font-size: 36px; font-weight: 700; -webkit-text-stroke: 0.5px currentcolor; }
.tool-card h2 .personality-card-name > span { display: block; margin: 0; font-weight: inherit; }
.tool-card[href="booksmith/personality/"] h2 svg { flex: 0 0 auto; }
.tool-card[href="doppelmaia/"] h2 .doppelmaia-name {
    display: inline-flex;
    align-items: baseline;
    justify-content: flex-start;
    margin: 0;
    font-family: inherit;
    gap: 0;
    white-space: nowrap;
}
.tool-card[href="doppelmaia/"] h2 .doppelmaia-name strong { font-weight: 800; }
.tool-card[href="doppelmaia/"] h2 .doppelmaia-name > span {
    display: inline;
    margin: 0;
    font-weight: 500;
    justify-content: initial;
}
.tool-card[href="doppelmaia/"] h2 .doppelmaia-profiles { flex: 0 0 auto; }
.tool-card span {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    font-family: "Mona Sans";
    font-weight: 700;
}
.tool-steps {
    margin: 16px 0;
    padding-left: 24px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.tool-steps > li:last-child {
    border-bottom: 0;
}
#lottie-animation {
    height: 600px;
    overflow: hidden;
}
@media (max-width: 768px) {
    #lottie-animation {
        height: auto;
        max-height: 400px;
    }
}
.elo-guide {
    margin-bottom: 0;
}
.elo-page,
.elo-result-page {
    font-size: 18px;
    line-height: 1.5;
}
.markdown-section section.elo-guide {
    margin: 0 32px 28px;
}
.elo-guide h2 {
    margin-top: 20px !important;
    padding: 8px 0 !important;
}
.elo-guide-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
    align-items: center;
    gap: 18px;
}
:is(.elo-accuracy-table, .personality-guide-card) {
    min-width: 0;
    background: white;
    border: 1px solid #d5dfe2;
    border-bottom: 3px solid #9aafb3;
    border-radius: 4px;
}
.elo-accuracy-table { overflow-x: auto; }
.personality-guide-card { overflow: hidden; }
:is(.elo-accuracy-table, .book-page .personality-guide-card) table {
    display: table;
    width: 100%;
    margin: 0;
    border: 0;
    border-collapse: collapse;
    color: #213a43;
    font: 600 16px/1.5 "Rubik", sans-serif;
    font-variant-numeric: tabular-nums;
}
:is(.elo-accuracy-table, .book-page .personality-guide-card) tr {
    display: table-row;
    border: 0;
    background: transparent;
    font: inherit;
}
:is(.elo-accuracy-table, .book-page .personality-guide-card) :is(th, td) {
    padding: 6px 10px;
    border: 0;
    border-bottom: 1px solid #dce5e6;
    text-align: left;
    vertical-align: middle;
    font: inherit;
    overflow-wrap: anywhere;
}
:is(.elo-accuracy-table, .book-page .personality-guide-card) thead {
    background: #eef4f3;
}
:is(.elo-accuracy-table, .book-page .personality-guide-card) thead th {
    font-weight: 700;
}
:is(.elo-accuracy-table, .book-page .personality-guide-card) tbody tr:last-child > * {
    border-bottom: 0;
}
.elo-guide-art {
    min-width: 0;
}
.elo-guide-art #lottie-animation {
    height: 380px;
    overflow: hidden;
}
.elo-guide-art .tool-note {
    margin: 0 auto;
}
.elo-tool-section {
    margin: 0 auto;
    width: 100%;
}
.markdown-section.elo-page > section:first-child {
    margin: 20px 20px 0;
}
.elo-page #eloeye {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 0;
    min-height: 46px;
}
.elo-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}
.markdown-section section.elo-tool-section {
    width: auto;
    margin: 0 32px 32px;
}
.elo-tool {
    container-type: inline-size;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 0 auto;
    padding: 0;
    min-width: 0;
}
.elo-checkpoint {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    max-width: 100%;
}
.elo-checkpoint p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    max-width: 300px;
}
.elo-checkpoint .tool-button {
    padding: 6px 12px;
    font-size: 16px;
    min-height: 46px;
}
.tool-board-opponent {
    margin-left: auto;
    font-size: inherit;
    font-weight: 500;
    font-stretch: normal;
}
.elo-heading-main .tool-connection {
    margin: 6px 0 0;
    padding: 0;
    list-style: none;
}
.elo-heading-main .tool-connection li {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    grid-template-rows: auto;
    align-items: start;
    align-content: start;
    gap: 2px 8px;
    padding: 0;
    border: 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}
.elo-heading-main .tool-connection i {
    width: 22px;
    height: 24px;
    font-size: 20px;
    transform: translateY(-2px);
}
.elo-tool .tool-form {
    order: 1;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: flex-end;
    gap: 12px 14px;
    width: 100%;
    margin: 0;
    max-width: none;
}
.elo-tool .tool-field {
    order: 1;
    min-width: 0;
    margin: 0;
}
.elo-tool .tool-field:first-child {
    flex: 0 1 300px;
}
.elo-tool .tool-field select,
.elo-tool .tool-field input {
    min-width: 0;
    height: 46px;
    padding: 8px 10px;
}
.elo-tool .tool-field select:disabled,
.elo-tool .tool-field input:disabled {
    opacity: 0.5;
    filter: blur(0.6px);
    cursor: not-allowed;
    -webkit-text-fill-color: #213a43;
}
.elo-tool .tool-field > span {
    line-height: 20px;
    white-space: nowrap;
}
.elo-tool #boards {
    width: 80px;
}
.elo-run-plan {
    order: 1;
    align-self: end;
    margin: 0;
    color: #4f6881;
    font-size: 16px;
    line-height: 1.5;
    text-align: center;
}
.elo-tool .tool-error,
.elo-tool .tool-record {
    text-align: center;
}
.elo-tool-wide,
.elo-tool .tool-form .elo-tool-wide {
    grid-column: 1 / -1;
}
.elo-tool .tool-form > .elo-tool-wide {
    order: 2;
    flex: 0 0 100%;
    margin: 0;
}
.elo-tool .elo-actions {
    order: 1;
    display: flex;
    flex: 0 0 100px;
    margin: 0 0 0 auto;
}
.elo-actions > button {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    height: 46px;
    min-height: 46px;
    padding: 0 12px;
    border-bottom-width: 5px;
    font-size: 16px;
    line-height: 1;
}
.elo-tool .tool-run {
    order: 3;
    margin: 0;
    max-width: none;
}
.elo-tool .tool-run p {
    margin: 0;
}
.elo-tool .tool-boards {
    order: 4;
    margin-top: 8px;
}
.tool-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 30px 0;
    max-width: 460px;
}
.tool-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-family: "Mona Sans";
    font-weight: 700;
    font-size: 16px;
}
.tool-field select,
.tool-field input,
.tool-button {
    box-sizing: border-box;
    width: 100%;
    padding: 12px 14px;
    color: #213a43;
    background-color: #ffffff;
    border: 2px solid #213a43;
    border-bottom-width: 5px;
    border-radius: 5px;
    font-family: "Mona Sans";
    font-size: 16px;
    font-weight: 600;
}
.tool-field select:not([multiple]):not([size]),
.elo-tool .tool-field select:not([multiple]):not([size]) {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 36px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23213a43' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 6px center;
    background-size: 20px 20px;
}
.tool-field select:focus-visible,
.tool-field input:focus-visible,
.tool-button:focus-visible,
.install-button:focus-visible {
    outline: 3px solid #5f8895;
    outline-offset: 3px;
}
.tool-field input:invalid {
    border-color: darkred;
}
.tool-button {
    width: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    line-height: 1.4;
    cursor: pointer;
    transition: background-color 0.1s;
}
.markdown-section a.tool-button {
    color: #213a43;
    text-decoration: none;
}
.tool-file-picker {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 12px;
    min-width: 0;
}
.tool-file-control {
    position: relative;
    display: inline-flex;
    max-width: 100%;
}
.tool-file-control input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 1;
}
.tool-file-control input:focus-visible + .tool-button {
    outline: 3px solid #5f8895;
    outline-offset: 3px;
}
.tool-file-control input:disabled,
.tool-file-control input:disabled + .tool-button {
    cursor: not-allowed;
}
.tool-file-control input:disabled + .tool-button {
    opacity: 0.5;
}
.tool-file-control:has(input:not(:disabled)):hover .tool-button {
    background-color: rgb(0 0 0 / 5%);
}
.tool-file-picker > [role="status"] {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    font-weight: 400;
}
.tool-button:hover {
    background-color: rgb(0 0 0 / 5%);
}
.markdown-section .tool-button:active:not(:disabled),
.markdown-section .tool-file-control input:not(:disabled):active + .tool-button,
.markdown-section .install-button:active:not(:disabled) {
    height: auto;
    min-height: 0;
    border-bottom-width: 2px;
    border-color: black;
    transform: translateY(3px);
    margin-bottom: 3px;
}
.markdown-section .install-button:active:not(:disabled) {
    border-color: transparent;
}
.markdown-section .elo-checkpoint > .tool-button:active:not(:disabled) {
    min-height: 43px;
}
.markdown-section .elo-actions > button:active:not(:disabled) {
    height: 43px;
    min-height: 43px;
}
.tool-actions {
    display: flex;
    gap: 12px;
}
.install-button {
    cursor: pointer;
    font-size: 18px;
}
.install-button:disabled {
    cursor: not-allowed;
    filter: grayscale(0.7);
    animation: none;
}
.elo-tool #start:disabled {
    filter: none;
}
.elo-tool #start.checkpoint-unreadable {
    filter: grayscale(1);
    animation: none;
}
.tool-error {
    margin: 0;
    color: darkred;
    font-size: 16px;
}
.tool-run {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 30px 0;
    max-width: 460px;
}
.tool-status,
.tool-record {
    margin: 4px 0;
    font-size: 16px;
}
.tool-record {
    color: #4f6881;
}

/* Result card */
.tool-result {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 30px 0;
    padding: 24px 28px;
    max-width: 460px;
    border: 2px solid #213a43;
    border-bottom-width: 5px;
    border-radius: 5px;
    background-color: #ffffff;
}
.tool-rating {
    font-family: "Mona Sans";
    font-size: 64px;
    font-weight: 900;
    font-stretch: expanded;
    line-height: 1.1;
}
.elo-live-summary {
    margin: 16px 0;
    text-align: center;
}
.elo-match-status {
    font-size: 14px;
    font-weight: 600;
    color: #4f6881;
    line-height: 1.5;
}
.elo-tool .elo-time-status {
    font-size: 14px;
    font-weight: 400;
    color: #4f6881;
    line-height: 1.5;
}
.elo-estimate-status {
    overflow-wrap: anywhere;
}
.elo-live-estimate #live-range:not([hidden]) + .elo-estimate-status {
    margin-top: 8px;
    padding-top: 10px;
    border-top: 1px solid rgb(33 58 67 / 12%);
}
.elo-tool .elo-live-estimate {
    box-sizing: border-box;
    align-self: center;
    width: min(100%, 340px);
    margin: 8px auto 0;
    padding: 18px 24px;
    text-align: center;
}
.elo-live-estimate .tool-rating {
    font-size: clamp(26px, 5vw, 36px);
}
.elo-range-chart {
    position: relative;
    margin: 16px 0 12px;
    color: #4f6881;
}
.elo-range-chart[hidden] {
    display: none;
}
.elo-range-chart svg {
    display: block;
    touch-action: pan-y pinch-zoom;
    width: 100%;
    height: auto;
    margin-top: 8px;
    overflow: visible;
    font: 600 12px "Mona Sans", sans-serif;
    fill: #4f6881;
}
.elo-range-chart svg:focus {
    outline: none;
}
.elo-chart-grid {
    stroke: rgb(33 58 67 / 12%);
}
.elo-chart-current-label {
    fill: #213a43;
    font-weight: 900;
}
.elo-chart-area {
    fill: rgb(95 136 149 / 20%);
}
.elo-chart-estimate {
    fill: none;
    stroke: #5f8895;
    stroke-width: 2;
    stroke-linejoin: round;
}
.elo-chart-projection {
    stroke: #5f8895;
    stroke-width: 2;
    stroke-dasharray: 6 4;
}
.elo-chart-latest-range {
    stroke: rgb(95 136 149 / 50%);
    stroke-width: 2;
}
.elo-chart-point {
    fill: #5f8895;
}
.elo-chart-selection {
    stroke: #5f8895;
    stroke-width: 1;
    stroke-dasharray: 3 3;
    pointer-events: none;
}
.elo-chart-selected-point {
    fill: #5f8895;
    stroke: white;
    stroke-width: 2;
    pointer-events: none;
}
.elo-chart-readout {
    position: absolute;
    z-index: 1;
    padding: 5px 8px;
    border: 1px solid rgb(33 58 67 / 15%);
    border-radius: 4px;
    background: white;
    color: #4f6881;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
    pointer-events: none;
}
.elo-range-chart-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 16px;
    font-size: 14px;
    font-weight: 600;
}
.elo-range-chart-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.elo-range-chart-legend span[hidden] {
    display: none;
}
.elo-range-chart-legend .elo-chart-keyboard {
    display: none;
    padding: 2px 6px;
    border: 2px solid #5f8895;
    border-radius: 4px;
}
.elo-range-chart svg:focus-visible ~ .elo-range-chart-legend .elo-chart-keyboard {
    display: inline-flex;
}
.elo-range-chart-legend i {
    display: inline-block;
    width: 18px;
}
.elo-range-key {
    height: 8px;
    border-radius: 2px;
    background: rgb(95 136 149 / 30%);
}
.elo-estimate-key {
    border-top: 2px solid #5f8895;
}
.elo-projection-key {
    border-top: 2px dashed #5f8895;
}
.tool-range,
.tool-details {
    margin: 0;
    font-size: 16px;
}
.tool-details {
    margin-top: 10px;
    color: #4f6881;
}
.elo-result-page .elo-result-content {
    max-width: 560px;
}
.elo-result-page .tool-result {
    box-sizing: border-box;
    max-width: none;
    gap: 8px;
    margin: 24px 0 16px;
    padding: 24px;
}
.tool-result-label {
    font-family: "Mona Sans", sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    color: #4f6881;
}
.elo-result-page .tool-rating {
    font-size: clamp(32px, 6vw, 48px);
    line-height: 1.15;
}
.elo-result-page .tool-range {
    font-size: 16px;
    line-height: 1.5;
}
.tool-result-record {
    margin: 8px 0 0;
    padding-top: 16px;
    border-top: 1px solid rgb(33 58 67 / 12%);
    font-family: "Mona Sans", sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
}
.elo-result-page .tool-details {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}
.elo-result-page .tool-note {
    max-width: none;
    margin: 0 0 20px;
    font-size: 14px;
    line-height: 1.6;
    text-align: left;
    color: #4f6881;
}
.elo-result-page .tool-actions .install-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 44px;
    padding: 8px 20px;
    border-bottom-width: 5px;
    font-size: 16px;
    line-height: 1.25;
}
@media (max-width: 768px) {
    .elo-result-page > section:first-child,
    .elo-result-page section.elo-result-content {
        margin-left: 12px;
        margin-right: 12px;
    }
    .elo-result-page section.elo-result-content {
        margin-top: 24px;
    }
    .elo-result-page .tool-result {
        padding: 18px;
    }
}
.tool-note {
    font-size: 14px;
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.tool-boards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 16px;
}
.tool-boards[data-mode="manual"] {
    grid-template-columns: minmax(0, 1fr);
}
.markdown-section .elo-tool .tool-board {
    box-sizing: border-box;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
}
.tool-board-heading {
    display: flex;
    align-items: baseline;
    gap: 6px;
    color: #4f6881;
    font-family: "Mona Sans", sans-serif;
    font-size: 13px;
    font-weight: 700;
    font-stretch: expanded;
    line-height: 20px;
    pointer-events: none;
}
.tool-board-heading strong {
    font-family: "Rubik", "IBM Plex Sans", sans-serif;
    font-stretch: normal;
    color: inherit;
    font-size: inherit;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}
.tool-board-surface {
    position: relative;
    box-sizing: border-box;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border: 1px dashed rgb(33 58 67 / 14%);
    border-radius: 4px;
    background: transparent;
}
.tool-board-surface:has(.board-session:not([hidden])) {
    border: 0;
    background: transparent;
}
.tool-board-empty {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: rgb(33 58 67 / 22%);
    font-family: "Mona Sans";
    font-size: 13px;
    font-weight: 500;
}
.elo-tool .tool-form > #personality {
    order: 1;
    min-inline-size: 0;
    box-sizing: border-box;
    padding: 12px;
}
.elo-tool #personality > summary {
    width: fit-content;
    max-width: 100%;
    padding: 12px 0;
    cursor: pointer;
    font-weight: 600;
    user-select: none;
}
.elo-tool #mix-summary {
    display: block;
    margin-left: 18px;
    color: #4f6881;
    font-size: 14px;
    font-weight: 400;
}
.elo-tool #personality[open] {
    padding-bottom: 16px;
}
.elo-mix-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 14px 0;
    font-size: 16px;
    width: fit-content;
    max-width: 100%;
    user-select: none;
    cursor: pointer;
}
.elo-mix-toggle .checkbox-container {
    width: 28px;
    height: 28px;
    --settings-input-border-radius: 5px;
    --settings-input-main-bg-color: #fff;
    --settings-input-border-width: 2px 2px 4px;
    --settings-input-border-style: solid;
    --settings-input-border-color: #213a43;
    flex-shrink: 0;
}
.elo-mix-toggle .checkbox-fill {
    background-color: transparent;
    color: #213a43;
    font-size: 20px;
}
.elo-mix-toggle .checkbox-container:has(input:focus-visible) {
    outline: 3px solid #5f8895;
    outline-offset: 3px;
}
.elo-mix-toggle .checkbox-container:has(input:disabled) {
    opacity: 0.5;
    cursor: not-allowed;
}
.elo-suggestion-mix {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}
.elo-suggestion-mix input {
    width: 100%;
    box-sizing: border-box;
}
#eloeye span {
    font-weight: 500;
}
.elo-suggestion-mix[hidden],
.elo-suggestion-mix > [hidden],
.elo-tool .tool-form > #personality[hidden] {
    display: none;
}
.board-session:not([hidden]) {
    position: relative;
    z-index: 1;
}
.board-session, .board-session .cg-wrap {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}
.tool-boards[data-mode="manual"] .board-session cg-container {
    /* Override the shared board's pan-y rule only for human play. */
    touch-action: none !important;
}

/* Keep the footer at the bottom of the screen on short pages. */
main {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 120px);
    min-height: calc(100dvh - 120px);
}
main > .content {
    flex: 1;
    background: linear-gradient(to bottom, transparent, #fcfeff 260px);
}
main > .content:has(.tool-cards) {
    background: linear-gradient(to bottom, transparent, #fcfeff min(260px, 40%), #fcfeff max(calc(100% - 180px), 60%), transparent);
}
main > .content > .markdown-section {
    background: transparent;
}
@media (max-width: 768px) {
    main {
        min-height: 100vh;
        min-height: 100dvh;
    }
    .elo-guide-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }
    .elo-guide-art #lottie-animation {
        width: min(100%, 340px);
        margin-inline: auto;
        height: auto;
        aspect-ratio: 1;
        max-height: 340px;
    }
    .elo-tool {
        gap: 18px;
        padding: 0;
    }
    .elo-tool .tool-form {
        gap: 12px;
    }
    .elo-tool .tool-form > .tool-field {
        flex: 0 0 100%;
        width: 100%;
        max-width: none;
    }
    .elo-tool .tool-field select,
    .elo-tool #boards {
        width: 100%;
        box-sizing: border-box;
    }
    .elo-suggestion-mix {
        grid-template-columns: minmax(0, 1fr);
    }
    .elo-tool .elo-actions {
        flex-basis: 100%;
        order: 3;
    }
    .elo-checkpoint {
        width: 100%;
        margin-top: 12px;
        align-items: center;
        text-align: center;
    }
    .tool-boards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
    .tool-boards:has(> .tool-board:only-child) {
        grid-template-columns: minmax(0, 1fr);
    }
    .tool-board-heading {
        flex-wrap: wrap;
    }
    .markdown-section section.elo-guide {
        margin: 0 12px 20px;
    }
    .markdown-section section.elo-tool-section {
        margin: 0 12px 28px;
    }
    .elo-page > section:first-child {
        margin-left: 12px;
        margin-right: 12px;
    }
    .elo-guide .tool-steps {
        margin: 8px 0;
    }
}
@media (max-width: 560px) {
    .elo-range-chart svg {
        height: 80vh;
        height: 80dvh;
    }
    .elo-chart-estimate,
    .elo-chart-projection {
        vector-effect: non-scaling-stroke;
        stroke-width: 3px;
    }
    .elo-chart-latest-range {
        vector-effect: non-scaling-stroke;
        stroke-width: 2.5px;
    }
    .elo-chart-selection {
        vector-effect: non-scaling-stroke;
        stroke-width: 1.5px;
    }
    .elo-tool .elo-actions > button {
        padding-left: 6px;
        padding-right: 6px;
    }
}
