/* Keep only one visible editor: fuel replaces the parent visually, not its draft. */
#simEditorModal[aria-hidden="true"]{display:none!important;pointer-events:none!important}
.fc-overlay{position:fixed;inset:0;z-index:100100;background:rgba(15,23,42,.46);display:flex;align-items:center;justify-content:center;padding:20px;box-sizing:border-box}
.fc-dialog{width:940px;max-width:100%;max-height:calc(100dvh - 40px);display:flex;flex-direction:column;background:var(--panel,#fff);color:var(--text,#203047);border:1px solid var(--line,#dce3ec);border-radius:16px;box-shadow:0 24px 80px #0f172a33;font:14px/1.5 Inter,Arial,sans-serif;overflow:hidden}
.fc-dialog header,.fc-dialog footer{display:flex;align-items:center;gap:12px;padding:18px 24px;flex-shrink:0;border-bottom:1px solid var(--line,#e3e8ef)}
.fc-dialog header>div{flex:1}.fc-dialog h2{font-size:21px;margin:0}.fc-dialog header p{margin:4px 0 0;color:var(--muted,#64748b);font-size:13px}.fc-dialog header>button{font-size:24px;min-width:36px}
.fc-dialog footer{border-top:1px solid var(--line,#e3e8ef);border-bottom:0;flex-wrap:wrap}.fc-message{flex:1;margin:0;font-size:13px}.fc-message.is-error{color:#d34848}
.fc-body{overflow:auto;overscroll-behavior:contain;padding:20px 24px;min-height:0}.fc-section{border-bottom:1px solid var(--line,#e3e8ef);padding:0 0 20px;margin-bottom:20px}.fc-section h3{font-size:15px;margin:0 0 14px}.fc-section h4{font-size:14px;margin:0}
.fc-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.fc-field{display:flex;flex-direction:column;gap:5px;min-width:0;font-size:12px;font-weight:600}.fc-field input,.fc-field select,.fc-points-scroll input{width:100%;min-width:0;box-sizing:border-box;padding:9px 10px;border:1px solid var(--line,#d5dfea);border-radius:7px;background:var(--panel,#fff);color:inherit;font-family:inherit;font-size:14px;line-height:1.4}
.fc-dialog button{padding:8px 12px;border:1px solid var(--line,#d5dfea);border-radius:7px;background:var(--panel,#fff);color:inherit;cursor:pointer;font:600 13px/1.4 Inter,Arial,sans-serif}.fc-dialog button:disabled{opacity:.5;cursor:not-allowed}.fc-dialog button.fc-primary{background:#296ddd;color:white;border-color:#296ddd}
.fc-dialog :is(input,select,button,summary):focus-visible{outline:2px solid #2f73df;outline-offset:2px}.fc-help{padding:12px 14px;border-radius:8px;background:#edf4ff;color:#315684;margin-bottom:20px;font-size:13px}.fc-note{font-size:12px;color:var(--muted,#64748b);line-height:1.6}.fc-tank{border:1px solid var(--line,#e3e8ef);border-radius:10px;margin:16px 0;padding:16px;min-width:0}.fc-tank legend{font-weight:700;padding:0 6px}
.fc-section-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:14px 0}.fc-dialog summary{cursor:pointer;font-weight:650;min-height:32px}.fc-advanced{margin:16px 0}.fc-check{display:flex;align-items:center;gap:8px;margin:12px 0;font-size:13px}.fc-check input{width:17px;height:17px}
.fc-dialog table{width:100%;border-collapse:collapse;font-size:12px}.fc-dialog th,.fc-dialog td{text-align:start;padding:8px;border-bottom:1px solid var(--line,#e3e8ef)}.fc-dialog th{font-size:12px;font-weight:700}.fc-chart svg{width:100%;max-height:220px;color:var(--muted,#64748b)}.fc-chart text{font:10px Arial,sans-serif;fill:currentColor}.fc-points-scroll{max-height:300px;overflow:auto}.fc-history-scroll{max-height:240px;overflow:auto}.fc-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.fc-metrics>div{border:1px solid var(--line,#e3e8ef);border-radius:8px;padding:10px 12px}.fc-metrics span{display:block;font-size:12px;color:var(--muted,#64748b)}.fc-metrics strong{font-size:17px;font-weight:650}.fc-quality{grid-column:1/-1;font-size:12px;color:var(--muted,#64748b);overflow-wrap:anywhere}
.fc-dialog [hidden]{display:none!important}#simEditorModal .fc-open-button{display:flex;align-items:center;gap:10px;width:100%;text-align:start;padding:14px;margin-top:18px;border:1px solid #cbdcf5;border-radius:9px;background:#f1f6ff;color:#285ba5;font:600 14px Inter,Arial,sans-serif;cursor:pointer}
html[data-theme="dark"] .fc-dialog{background:#142032;color:#e6edf7;--panel:#142032;--line:#334155;--muted:#a8b6ca}html[data-theme="dark"] .fc-help{background:#203654;color:#c5d8f4}
@media(max-width:700px){.fc-overlay{padding:8px}.fc-dialog{max-height:calc(100dvh - 16px)}.fc-dialog header,.fc-dialog footer,.fc-body{padding:16px}.fc-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.fc-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:430px){.fc-grid{grid-template-columns:1fr}.fc-dialog h2{font-size:18px}.fc-tank{padding:10px}.fc-dialog footer .fc-message{flex-basis:100%}}
