.fct{--fct-bg:#fff;--fct-text:#191b21;--fct-line:#c8cbd1;--fct-soft:#f3f4f6;--fct-red:#b62331;color:var(--fct-text);background:var(--fct-bg);max-width:100%;min-width:0;font-size:16px;line-height:1.85;overflow-wrap:anywhere}.fct *{box-sizing:border-box}.fct [hidden]{display:none!important}.fct h1{font-size:clamp(25px,3vw,36px);line-height:1.45}.fct h2{font-size:23px;line-height:1.5;margin:1.6em 0 .7em}.fct h3{font-size:19px;line-height:1.55}.fct p{margin:.7em 0}.fct a{color:var(--fct-red);text-decoration:underline;text-underline-offset:3px}.fct :focus-visible{outline:3px solid #e06627;outline-offset:3px}.fct-hero{border-bottom:3px solid var(--fct-red);padding:18px 0 22px}.fct-nav,.fct-links{display:flex;gap:10px 18px;flex-wrap:wrap;margin:18px 0}.fct-panel,.fct-card{border:1px solid var(--fct-line);padding:20px;border-radius:8px;background:var(--fct-bg);margin:16px 0}.fct-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:14px}.fct-card{margin:0}.fct-card h2,.fct-card h3{margin:0 0 8px}.fct-note{padding:12px 16px;border-left:4px solid var(--fct-red);background:var(--fct-soft)}.fct label{display:flex;flex-direction:column;gap:6px;font-weight:600;min-width:0}.fct input,.fct select,.fct textarea,.fct button{font:inherit;color:var(--fct-text);background:var(--fct-bg);border:1px solid var(--fct-line);border-radius:5px;min-height:44px;max-width:100%;padding:8px 10px}.fct input[type=checkbox]{width:22px;height:22px;min-height:22px;flex-shrink:0;accent-color:var(--fct-red)}.fct .fct-check{flex-direction:row;align-items:center;font-weight:400;min-height:44px;gap:10px}.fct button{cursor:pointer;border:1px solid var(--fct-red);font-weight:600}.fct button:hover{background:var(--fct-soft)}.fct button:disabled{opacity:.45;cursor:default}.fct-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr));gap:12px}.fct-controls{padding:16px;background:var(--fct-soft);border-radius:8px;margin:16px 0}.fct-row{border:1px solid var(--fct-line);border-radius:6px;background:var(--fct-bg);margin:10px 0}.fct-row summary{cursor:pointer;padding:15px;min-height:50px;font-weight:700}.fct-row summary span{font-size:14px;font-weight:400;margin-left:12px}.fct-detail{padding:0 18px 18px}.fct-detail dl{display:grid;grid-template-columns:100px minmax(0,1fr);gap:8px 12px}.fct-detail dt{font-weight:700}.fct-detail dd{margin:0}.fct-pager{display:flex;gap:16px;align-items:center;justify-content:center;margin:20px 0}.fct-table{max-width:100%;overflow-x:auto;margin:16px 0;overscroll-behavior-x:contain}.fct table{border-collapse:collapse;width:100%;min-width:580px;background:var(--fct-bg)}.fct th,.fct td{padding:12px;border:1px solid var(--fct-line);text-align:left;vertical-align:top;font-size:15px;line-height:1.7;min-width:110px;color:var(--fct-text);background:var(--fct-bg)}.fct th{background:var(--fct-soft);font-weight:700}.fct-toc{background:var(--fct-soft);padding:16px;border-radius:8px}.fct-toc ol{margin:0;padding-left:23px}.fct section[id],.fct details[id]{scroll-margin-top:100px}.fct-step{border-top:1px solid var(--fct-line);padding:15px 0}.fct-team{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.fct-team select{width:100%}.fct-team label{font-size:14px}.fct-output{background:var(--fct-soft);padding:16px;margin-top:14px;min-height:54px}.fct-status{font-size:14px;color:var(--fct-text)}.fct small{font-size:14px}.fct .fct-error{color:#a51920}.fct-footer{border-top:1px solid var(--fct-line);margin-top:24px;padding-top:16px}.gamex-factorio-live #main_content{min-width:0}.gamex-factorio-live .c-postContent{max-width:100%}
html[data-theme=dark] .fct,body[data-theme=dark] .fct{--fct-bg:#191b21;--fct-text:#f0f1f3;--fct-line:#505562;--fct-soft:#252932;--fct-red:#ff9eaa}
@media(max-width:600px){.fct-panel{padding:14px}.fct-detail{padding:0 12px 15px}.fct-detail dl{grid-template-columns:1fr;gap:2px}.fct-detail dd{margin-bottom:9px}.fct-team{grid-template-columns:1fr}.fct h2{font-size:21px}.fct-nav{font-size:14px;gap:9px 14px}.fct-row summary span{display:block;margin-left:0}}

/* Keep comparison row labels readable while scrolling on narrow screens. */
.fct [data-compare-output] th[scope=row],.fct [data-compare-output] thead th:first-child{min-width:135px;width:135px;position:sticky;left:0;z-index:1;white-space:nowrap;overflow-wrap:normal}.fct [data-compare-output] thead th:first-child{z-index:2}

.fct-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}.fct-grid label{border:1px solid var(--fct-line);padding:10px;border-radius:5px;font-size:14px}.fct-material{border-top:1px solid var(--fct-line);padding:10px 0}.fct-material label{max-width:240px}@media(max-width:800px){.fct-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

.fct[data-route=boons] table{min-width:0}.fct[data-route=boons] th,.fct[data-route=boons] td{min-width:0}

/* Compact quality tables fit small screens; multi-item comparisons keep horizontal scrolling. */
.fct[data-route=equipment] table[data-cols="2"],.fct[data-route=equipment] table[data-cols="3"]{min-width:0;table-layout:fixed}.fct[data-route=equipment] table[data-cols="2"] th,.fct[data-route=equipment] table[data-cols="2"] td,.fct[data-route=equipment] table[data-cols="3"] th,.fct[data-route=equipment] table[data-cols="3"] td{min-width:0}

@media(max-width:1040px){.fct .fct-nav a,.fct .fct-links a{display:inline-flex;align-items:center;min-height:44px;min-width:44px;padding:4px 2px}.fct .fct-toc a{display:block;min-height:44px;padding:6px 2px}}

@media(max-width:1040px){.gamex-factorio-live .fct .fct-nav>a{min-height:44px}}

@media(min-width:601px){.fct-team{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(min-width:1100px){.fct-team{grid-template-columns:repeat(4,minmax(0,1fr))}}

.fct-catalog summary small{display:block;font-weight:400}.fct .fct-choices{margin:12px 0}.fct .fct-slot{border:1px solid var(--fct-line);padding:14px;margin:12px 0;border-radius:6px}.fct .fct-note a{color:var(--fct-red)}.fct img{max-width:100%;height:auto}.fct .fct-hero-art{width:460px;border-radius:7px;margin-top:16px}.fct .fct-result-links{display:flex;flex-wrap:wrap;gap:12px}.fct-output label{max-width:260px}.fct .fct-error{font-weight:600}.fct [data-catalog-error] button{margin:8px 0}.fct-progress{display:flex;gap:12px;flex-wrap:wrap}.fct-progress span{border:1px solid var(--fct-line);padding:6px 12px;border-radius:5px}.fct-toc a{line-height:1.5}

/* Keep bilingual result names separate at every viewport width. */
.fct .fct-row>summary>small{display:block;font-size:14px;font-weight:400;line-height:1.65;margin-top:3px}

.fct .fct-stat-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;margin:14px 0}.fct .fct-stat-grid>div{border:1px solid var(--fct-line);padding:8px 3px;text-align:center;background:var(--fct-soft)}.fct .fct-stat-grid dt{font-size:12px;line-height:1.6}.fct .fct-stat-grid dd{margin:4px 0 0;font-size:14px}.fct .fct-recipes{padding-left:22px}.fct .fct-recipes>li{padding:12px 0;border-bottom:1px solid var(--fct-line)}.fct .fct-recipes small{display:block}.fct .fct-table-wrap{scrollbar-width:auto}.fct [data-compare-output] th:first-child{min-width:100px}.fct [data-dlc-options]{display:grid;gap:6px}.fct .fct-rank-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr));gap:12px}.fct .fct-rank-grid label{padding:12px;border:1px solid var(--fct-line)}.fct .fct-rank-grid select{width:100%}
.fct .fct-meal-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:12px}.fct .fct-meal-grid label{padding:12px;border:1px solid var(--fct-line);border-radius:5px}.fct .fct-rank-grid input{width:100%}.fct .fct-detail section{border-top:1px solid var(--fct-line);margin-top:18px;padding-top:12px}

.fct fieldset{min-width:0;margin:18px 0;padding:16px;border:1px solid var(--fct-line)}.fct legend{font-weight:700}.fct .fct-check-row{padding:12px 0;border-bottom:1px solid var(--fct-line)}.fct .fct-check-row p{margin-left:32px}.fct textarea{width:100%}.fct dl dd a{display:inline-block;min-height:44px;padding:4px 0}.fct .fct-pager span{white-space:nowrap}.fct .fct-row small{white-space:normal}.fct .fct-controls button{margin-bottom:8px}.fct [data-export],.fct [data-import]{font-family:monospace;font-size:14px}.fct [data-machine-output] td{min-width:140px}
