.fx-chart .fc-sam-trigger{white-space:nowrap;font-size:10px;min-height:32px;padding:4px 9px;color:#b7d8d1}
.fx-chart .fc-sam-editor{width:min(720px,calc(100vw - 24px));max-height:min(820px,calc(100dvh - 24px));padding:0;overflow:auto}
.fx-chart .fc-sam-editor[open]{grid-template-rows:auto minmax(0,1fr) auto;overflow:hidden}
.fc-sam-editor .fc-sam-body{min-height:0;overflow-y:auto;align-content:start}
.fc-sam-body{display:grid;gap:8px;padding:15px 18px;color:#c8d8de}.fc-sam-body label{font-weight:650;font-size:11px;color:#a9c8cf}.fc-sam-body select{width:100%;min-height:38px}.fc-sam-note,.fc-sam-examples{font-size:11px;line-height:1.55;color:#9ab3bd;margin:0}.fc-sam-note code,.fc-sam-examples code{color:#c9ece2;overflow-wrap:anywhere}.fc-sam-examples summary{cursor:pointer;color:#ace4d4}.fc-sam-examples p{margin:5px 0}
.fx-chart .fc-sam-body textarea{width:100%;min-height:220px;resize:vertical;background:#0c171e;color:#e1eeef;border:1px solid #36505d;border-radius:8px;padding:12px;font:12px/1.6 ui-monospace,SFMono-Regular,Consolas,monospace;tab-size:2}.fx-chart .fc-sam-body textarea:focus-visible{outline:2px solid #62d5c3;outline-offset:2px}.fc-sam-status{min-height:18px;font-size:11px;color:#a2b7bf;white-space:pre-wrap;overflow-wrap:anywhere;margin:0}.fc-sam-status.is-error{color:#ffacaf}.fc-sam-status.is-success{color:#84e3bd}.fc-sam-footer{display:flex;justify-content:flex-end;gap:8px;padding:12px 18px;border-top:1px solid #2b434d}.fx-chart #fc-sam-run{background:#14584b;border-color:#327e6e;color:#e2fff6;font-weight:650}.fx-chart #fc-sam-run:hover{background:#1c7563}
@media(max-width:760px){.fx-chart .fc-sam-trigger{min-height:31px;padding:4px 7px}.fc-sam-body{padding:12px;gap:6px}.fx-chart .fc-sam-body textarea{min-height:160px;font-size:12px}.fc-sam-footer{padding:10px 12px}}
.fc-sam-filebar{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.fc-sam-filebar>label:first-child{margin-right:auto}.fc-sam-filebar input[type=file]{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden}.fx-chart .fc-sam-file-label,.fx-chart #fc-sam-download{display:inline-flex;align-items:center;justify-content:center;border:1px solid #36505d;border-radius:6px;padding:5px 9px;min-height:32px;font-size:10px;color:#c8e5df;cursor:pointer}.fx-chart .fc-sam-file-label:hover,.fx-chart #fc-sam-download:hover{background:#24343d}.fc-sam-filebar:has(input[type=file]:focus-visible) .fc-sam-file-label{outline:2px solid #62d5c3}.fc-sam-shortcut{font-size:10px;color:#8da6af}.fc-sam-inputs{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px;padding:10px;border:1px solid #2a424c;border-radius:8px}.fc-sam-inputs strong{grid-column:1/-1;color:#a9c8cf;font-size:11px}.fc-sam-inputs label{display:flex;align-items:center;justify-content:space-between;gap:6px}.fc-sam-inputs input[type=number]{width:90px;max-width:55%;min-height:30px;border:1px solid #36505d;border-radius:5px;background:#0c171e;color:#e1eeef;padding:4px 6px}
.fc-sam-code-wrap{position:relative;min-width:0;background:#0c171e;border-radius:8px}
.fx-chart .fc-sam-code-wrap textarea,.fc-sam-highlight{box-sizing:border-box;white-space:pre-wrap;overflow-wrap:anywhere;letter-spacing:normal;word-spacing:normal;tab-size:2;font:12px/1.6 ui-monospace,SFMono-Regular,Consolas,monospace;padding:12px;margin:0;border:1px solid transparent}
.fx-chart .fc-sam-code-wrap textarea{display:block;position:relative;z-index:1;background:transparent;color:transparent;caret-color:#e1eeef;-webkit-text-fill-color:transparent}
.fx-chart .fc-sam-code-wrap textarea::selection{background:rgba(71,148,220,.5);color:transparent}
.fc-sam-highlight{position:absolute;inset:0;width:100%;height:100%;overflow:hidden;pointer-events:none;color:#e1eeef;border-radius:8px}
.fc-sam-token-comment{color:#7e9b8d}.fc-sam-token-string{color:#d4c087}.fc-sam-token-number{color:#d8a6e5}.fc-sam-token-keyword{color:#80c6f1}
.fc-sam-suggest{position:absolute;z-index:3;left:10px;bottom:10px;width:min(240px,calc(100% - 20px));max-height:180px;overflow:auto;padding:4px;background:#162a34;border:1px solid #3b6571;border-radius:7px;box-shadow:0 8px 24px #0009}
.fc-sam-suggest[hidden]{display:none}.fx-chart .fc-sam-suggest button{display:block;width:100%;min-height:32px;padding:5px 8px;text-align:left;border:0;border-radius:4px;background:transparent;color:#d5e9e8;font:12px ui-monospace,SFMono-Regular,Consolas,monospace}.fx-chart .fc-sam-suggest button[aria-selected=true],.fx-chart .fc-sam-suggest button:hover{background:#23574e;color:#fff}
.fc-sam-debug{display:grid;gap:8px;border:1px solid #2a424c;border-radius:8px;padding:10px;min-width:0}.fc-sam-debug-head{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}.fc-sam-debug-controls{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.fc-sam-debug-grid{display:grid;gap:4px;margin:0;min-width:0}.fc-sam-debug-row{display:flex;gap:8px;justify-content:space-between;min-width:0;overflow-wrap:anywhere}.fc-sam-debug-status{color:#a2b7bf;font-size:11px;line-height:1.5;overflow-wrap:anywhere;margin:0}
.fc-sam-debug-head{cursor:pointer;color:#ace4d4;font-weight:650;font-size:11px}.fc-sam-debug-body{display:grid;gap:8px;padding-top:8px}.fc-sam-debug-row dt,.fc-sam-debug-row dd{margin:0;font-size:11px}.fc-sam-debug-row dt{color:#a9c8cf}.fc-sam-debug-row dd{color:#e2f2ed;text-align:right}
@media(max-width:760px){.fc-sam-suggest{position:relative;left:auto;bottom:auto;width:100%;max-height:112px}.fc-sam-debug{padding:8px}.fc-sam-debug-controls button{min-height:36px}}
@media(forced-colors:active){.fc-sam-highlight{display:none}.fx-chart .fc-sam-code-wrap textarea{color:CanvasText;-webkit-text-fill-color:CanvasText}}
.fc-sam-compat{border:1px solid #304954;border-radius:9px;padding:10px;margin:10px 0;color:#bdd0d8;background:#111f27}
.fc-sam-compat-actions{display:flex;flex-wrap:wrap;gap:8px}
.fc-sam-compat-actions button,#fc-sam-diagnostics button{background:#203943;color:#e0f5f1;border:1px solid #47616a;border-radius:6px;padding:6px 9px;cursor:pointer}
#fc-sam-check-status{font-size:.82rem;margin:8px 0 2px}
#fc-sam-diagnostics p{margin:8px 0 2px;color:#ffb4af;overflow-wrap:anywhere}
#fc-sam-diagnostics small{display:block;line-height:1.4;color:#bdcbd1}
#fc-sam-diagnostics button{margin:4px 0}
#fc-sam-reference{font-size:.82rem;line-height:1.4;margin-top:10px}
#fc-sam-reference ul{padding-left:20px;margin:3px 0 10px}
#fc-sam-reference li{overflow-wrap:anywhere}
