@import"https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;450;500;600;700&family=Space+Grotesk:wght@400;500;600&display=swap";:root{color-scheme:dark;font-family:DM Sans,sans-serif;color:#e6ece9;background:#0c1115;font-synthesis:none;--muted:#91a09f;--line:#283235;--accent:#c2ef87}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,select,input[type=checkbox],input[type=range]{cursor:pointer}button{color:inherit}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,a:focus-visible{outline:2px solid var(--accent);outline-offset:4px}button{transition:background .16s,border-color .16s}button:hover{filter:brightness(1.15)}.topbar{height:78px;display:flex;align-items:center;padding:0 30px;gap:40px;border-bottom:1px solid var(--line);background:#101619}.brand{text-decoration:none;color:#eef3ef;display:flex;align-items:center;gap:8px;font-family:Space Grotesk,sans-serif;letter-spacing:2px;font-size:18px;white-space:nowrap}.brand b{font-weight:400;color:var(--muted)}.mark{font-size:36px;line-height:1;color:var(--accent);margin-right:8px}.header-caption{font-size:12px;letter-spacing:2px;color:var(--muted);margin-left:auto}.quiet{background:none;border:0;font-size:14px}.quiet span{display:inline-grid;place-items:center;border:1px solid #62706b;border-radius:50%;width:18px;height:18px;margin-left:8px;font-size:12px}main{display:grid;grid-template-columns:330px minmax(0,1fr);height:calc(100dvh - 78px);min-height:650px}.panel{padding:28px 26px;overflow:auto;background:#11191c;border-right:1px solid var(--line);scrollbar-width:thin;scrollbar-color:#35433d transparent}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:11px;letter-spacing:1.8px;color:var(--muted);margin-bottom:20px}.tag{font-size:11px;border:1px solid #4c5b47;color:var(--accent);padding:3px 7px;border-radius:4px;letter-spacing:0}h1{font-family:Space Grotesk,sans-serif;font-size:25px;letter-spacing:-1px;font-weight:500;margin:0 0 8px}.intro{font-size:14px;color:var(--muted);margin:0 0 28px}label{display:block;font-size:14px;margin:18px 0 10px;color:#c5cfca}select{width:100%;padding:12px 10px;background:#1a2528;color:#eef3ef;border:1px solid #354248;border-radius:6px;font-size:14px}p{line-height:1.65}.description{font-size:13px;color:var(--muted);margin:14px 0 18px;min-height:42px}.facts{display:flex;gap:32px;margin-bottom:25px}.facts strong{font:24px Space Grotesk,sans-serif;display:block}.facts span{display:block;font-size:11px;color:var(--muted);margin-top:5px}section section,.panel>section{border-top:1px solid var(--line);padding-top:23px;margin-top:24px}output{float:right;font-family:Space Grotesk,monospace;color:#e4eee6}input[type=range]{width:100%;accent-color:var(--accent);height:4px;margin:10px 0}.range-ends{display:flex;justify-content:space-between;font-size:11px;color:#81928e}.swatches{display:flex;align-items:center;gap:9px;margin:16px 0 22px}.swatch{width:30px;height:23px;border:3px solid #11191c;outline:1px solid transparent;border-radius:6px;background:linear-gradient(120deg,#3763b0,#65c8b6,#daef93)}.swatch.active{outline-color:#b3c4b2}.swatch[data-palette=ember]{background:linear-gradient(120deg,#b93477,#ed7751,#ffe7a1)}.swatch[data-palette=ocean]{background:linear-gradient(120deg,#4034b0,#44a6e6,#b2f8ed)}.swatches span{font-size:12px;color:var(--muted);margin-left:auto}.toggle{display:flex;justify-content:space-between;align-items:center;margin:15px 0}.toggle input{appearance:none;width:30px;height:17px;border-radius:12px;background:#3c474a;position:relative;margin:0}.toggle input:after{content:"";position:absolute;width:11px;height:11px;top:3px;left:3px;background:#a6b1ad;border-radius:50%;transition:left .15s}.toggle input:checked{background:var(--accent)}.toggle input:checked:after{left:16px;background:#293522}.text-button{background:none;border:0;color:var(--accent);padding:0;font-size:12px;letter-spacing:0}.formula{font-family:Space Grotesk,monospace;font-size:20px;color:#d7e5dd;background:#192427;padding:15px;border-radius:5px;text-align:center;margin-bottom:14px}.map-row{display:flex;align-items:center;justify-content:space-between;font-family:monospace;font-size:12px;margin:10px 0;color:#92a5a0}.map-row span:first-child{color:#d1dfd6}.primary{background:var(--accent);border:0;color:#20301a;border-radius:6px;padding:12px 18px;font-size:14px;font-weight:600;width:100%;margin-top:18px}.viewport{position:relative;min-width:0;overflow:hidden;background:radial-gradient(ellipse at 50% 43%,#17262c 0,#0c1218 62%)}#canvas-container{position:absolute;inset:0}canvas{display:block;touch-action:none}.view-heading{position:absolute;left:34px;top:32px;pointer-events:none}.eyebrow{font-size:11px;letter-spacing:2px;color:var(--accent)}h2{font-family:Space Grotesk,sans-serif;font-size:27px;letter-spacing:-.6px;font-weight:400;margin:9px 0}.view-subtitle{color:#91a19e;font-size:13px}.view-actions{position:absolute;top:36px;right:28px}.view-actions button{border:1px solid #364345;border-radius:6px;background:#142026b3;padding:9px 14px;font-size:12px}.legend{position:absolute;right:30px;top:44%;display:flex;flex-direction:column;align-items:center;gap:12px;color:#94a7a3;font-size:10px;letter-spacing:1px}.legend i{height:105px;width:4px;border-radius:5px;background:linear-gradient(#daef93,#65c8b6,#3763b0)}.view-footer{position:absolute;left:30px;right:30px;bottom:23px;display:flex;justify-content:space-between;align-items:center;gap:20px;font-size:11px;color:#879c98}.status{display:flex;align-items:center;gap:8px}.status-dot{width:5px;height:5px;background:var(--accent);border-radius:50%}.hints b{padding:0 7px;font-weight:400}.hints{font-size:11px}#error{position:absolute;left:10%;right:10%;top:40%;padding:20px;background:#40292c;border:1px solid #8b505a;border-radius:8px;color:#ffdcdf;line-height:1.6}dialog{border:1px solid #42534b;border-radius:12px;background:#142024;color:#e5eee7;width:min(640px,calc(100vw - 28px));padding:28px;max-height:90dvh}dialog::backdrop{background:#030a10c9;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}.dialog-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:20px}.close{border:0;background:none;font-size:30px;line-height:1;color:#bbc9c3}dialog p{font-size:14px;color:#a9bdb4}textarea{width:100%;height:320px;resize:vertical;background:#0b1519;border:1px solid #40524a;border-radius:5px;padding:14px;color:#c2efb4;font:13px/1.5 monospace;tab-size:2}#editor-error{color:#ffb5ad;margin-bottom:0}#editor-error:empty{display:none}[hidden]{display:none!important}@media(min-width:1500px){main{grid-template-columns:360px 1fr}.panel{padding:30px 32px}}@media(max-width:1000px){.header-caption{display:none}.quiet{margin-left:auto}.hints{display:none}.view-heading{left:22px}h2{font-size:22px}.view-actions{top:120px;left:22px;right:auto}}@media(max-width:700px){.topbar{height:65px;padding:0 18px;gap:15px}.brand{font-size:14px;letter-spacing:1px}.quiet{font-size:12px}.quiet span{display:none}main{height:auto;min-height:0;display:flex;flex-direction:column}.viewport{order:-1;height:60dvh;min-height:430px;border-bottom:1px solid var(--line)}.panel{overflow:visible;border-right:0;padding:26px 22px}.view-heading{top:22px}.legend{right:18px}.view-footer{left:22px;right:22px;bottom:18px}.view-actions{top:109px}.description{min-height:0}.facts{gap:45px}h1{font-size:27px}}.editor-tools{display:flex;justify-content:space-between;align-items:center;margin:22px 0;gap:15px}.segmented{display:flex;border:1px solid #3b4e46;border-radius:6px;padding:3px}.segmented button,.map-tabs button{background:none;border:0;border-radius:4px;padding:8px 12px;font-size:13px;color:#a8bab2}.segmented .selected,.map-tabs .selected{background:#344c3a;color:#d7f9b6}.map-tabs{display:flex;gap:5px;overflow-x:auto;padding-bottom:8px}.map-tabs button{min-width:40px;border:1px solid #33463e}.map-options{display:flex;align-items:end;gap:16px;margin:10px 0 23px}.map-options label{margin:0;flex:1}.map-options select,.map-options input{margin-top:9px}.map-options .text-button{padding-bottom:13px;color:#d3a39c}.map-options input,.matrix input,.vector input,.equation input{background:#0b1519;border:1px solid #3b4e46;border-radius:5px;padding:11px 9px;color:#daf2cd;min-width:0;width:100%;font:14px monospace}.matrix-layout{display:grid;grid-template-columns:3fr 1fr;gap:26px}.matrix-label{font-size:13px;color:#a3b8ae;margin-bottom:12px}.matrix{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.vector{display:grid;gap:8px}.equation{display:flex;gap:12px;align-items:center}.equation span{white-space:nowrap;font:19px monospace}.expression-help{font-size:12px!important;line-height:1.9}button:disabled{opacity:.4;cursor:default}@media(max-width:480px){dialog{padding:20px}.matrix-layout{gap:12px}.map-options{gap:10px}.map-options label{min-width:0}.matrix input,.vector input{padding:10px 4px}.editor-tools{gap:10px}.segmented button{padding:8px}}.sampling{border-top:1px solid var(--line);margin-top:22px;padding-top:18px}.sampling summary{font-size:13px;color:var(--muted);cursor:pointer}.sampling input{width:100%;min-width:0;background:#182528;border:1px solid #354248;padding:9px;color:#e7f1e8;border-radius:5px;font-size:14px}.initial-point{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.editor-entry{display:flex;justify-content:space-between;width:100%;margin-top:10px;background:#1c2e24;border:1px solid #38513a;border-radius:6px;padding:11px;color:#c2ef87;font-size:14px}.probability-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px;color:#b7d8a2;font-size:13px}.probability-summary .invalid{color:#ffafa0}main{grid-template-columns:280px minmax(0,1fr) 280px}.panel{padding:28px 22px}.system-panel{grid-column:1}.viewport{grid-column:2}.controls-panel{grid-column:3;border-right:0;border-left:1px solid var(--line);background:#11191c}.panel-title{font-size:23px;margin:0 0 26px}.controls-panel .sampling{border-top:0;padding-top:0;margin-top:22px}.controls-panel .section-heading{margin-bottom:19px}.system-panel h1{font-size:26px}.system-panel .intro{line-height:1.6}.view-footer{align-items:flex-start;flex-direction:column;gap:10px}.view-heading{left:26px;right:24px}.view-actions{inset:auto 24px 25px auto}.view-heading h2{font-size:clamp(21px,2vw,28px)}.view-footer .hints{font-size:10px}@media(min-width:1550px){main{grid-template-columns:310px minmax(0,1fr) 300px}.panel{padding:30px 26px}}@media(max-width:1050px){main{height:auto;min-height:0;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.viewport{grid-column:1/-1;grid-row:1;height:62dvh;min-height:440px;border-bottom:1px solid var(--line)}.system-panel{grid-column:1;grid-row:2}.controls-panel{grid-column:2;grid-row:2}.panel{overflow:visible;border-right:0}.header-caption{display:none}.quiet{margin-left:auto}.view-actions{inset:auto 22px 22px auto}.view-heading{top:25px;left:24px}.hints{display:block}}@media(max-width:580px){main{display:flex;flex-direction:column}.viewport{order:-1;min-height:400px;height:58dvh}.system-panel{order:0}.controls-panel{order:1;border-left:0;border-top:1px solid var(--line)}.panel{padding:26px 22px}.view-footer .hints{display:none}.view-actions{bottom:52px}.facts{gap:45px}.view-heading{left:22px;top:22px}}.system-summary{display:flex;align-items:baseline;gap:9px;margin:20px 0 25px}.system-summary strong{font:24px Space Grotesk,sans-serif}.system-summary span{font-size:13px;color:var(--muted)}.brand{letter-spacing:-.3px;font-size:20px}.brand>span:last-child{white-space:normal}@media(max-width:700px){.brand{font-size:17px;line-height:1.25}.mark{font-size:29px;margin-right:2px}.topbar{gap:12px}.quiet{white-space:nowrap}}.topbar>.quiet{margin-left:auto}.current-system-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-top:24px}.current-system-heading h2{font-size:18px;line-height:1.4;margin:0;letter-spacing:-.3px}.current-system-heading button{padding:8px 14px;flex-shrink:0;cursor:pointer}.system-summary{gap:8px;margin:18px 0 14px}.system-summary strong{font-size:22px}#system-type{margin-left:auto;color:var(--accent);font-size:12px}.current-map-list{max-height:260px;overflow:auto;padding-right:4px}.ifs-source{margin-top:24px}.ifs-source>label:first-child{margin-top:0}.ifs-source select{font-size:13px}#editor{width:min(840px,calc(100vw - 28px))}#editor .dialog-heading h2{margin:0}.name-input{width:100%;background:#0b1519;border:1px solid #3b4e46;border-radius:5px;padding:11px;color:#e5eee7}.map-table-scroll{overflow:auto;max-height:50dvh;border:1px solid #33443d;border-radius:7px}.map-table{width:100%;border-collapse:collapse;text-align:left;table-layout:fixed;min-width:510px}.map-table th,.map-table td{padding:11px 9px;border-bottom:1px solid #2c3c35}.map-table thead th{font-size:12px;font-weight:500;color:#a7b9af;background:#1a2925;position:sticky;top:0;z-index:1}.map-table th:nth-child(1){width:9%}.map-table th:nth-child(2){width:21%}.map-table th:nth-child(3){width:34%}.map-table th:nth-child(4){width:28%}.map-table th:nth-child(5){width:8%}.map-table tbody th{font:14px monospace;color:#bdd9b1}.map-table input,.map-table select{width:100%;min-width:0;background:#0d191b;border:1px solid #3b4e46;border-radius:5px;padding:10px 7px;color:#dbecd8;font-size:13px}.map-details-button{background:none;border:1px solid #415647;border-radius:5px;padding:10px 8px;text-align:left;width:100%;font-size:12px;color:#c2ef87}.map-details-button[aria-expanded=true]{background:#263d2b}.remove-map{background:none;border:0;color:#bc9992;font-size:22px;padding:0 4px}.map-detail-row>td{background:#101d1c;padding:18px!important}.map-detail-row .matrix-layout{max-width:520px}.probability-summary{margin:17px 0 0}.weight-help{font-size:12px;margin:8px 0 0}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media(max-width:580px){#editor{padding:18px}.map-table th,.map-table td{padding:8px 6px}.current-map-list{max-height:200px}}.equal-weights-toggle{display:flex;align-items:center;gap:8px;margin:0;font-size:13px;white-space:nowrap;color:#c2ef87}.equal-weights-toggle input{accent-color:var(--accent);width:16px;height:16px;margin:0}.map-table input:disabled{opacity:.65;cursor:default}.weight-column-heading{display:flex;align-items:center;flex-wrap:wrap;gap:7px 10px}.uniform-weight-toggle{display:flex;align-items:center;gap:5px;margin:0;font-size:12px;white-space:nowrap;color:var(--accent)}.map-table .uniform-weight-toggle input{appearance:auto;accent-color:var(--accent);width:14px;height:14px;min-width:14px;margin:0;padding:0}.sidebar-toggles{display:flex;gap:8px;margin-left:auto;flex-shrink:0}.sidebar-toggle{border:1px solid #405348;border-radius:6px;background:#1a2924;color:#c2ef87;padding:10px 13px;font-size:13px}.sidebar-toggle:hover{background:#283d2d}main{--ifs-width:280px;--appearance-width:280px;grid-template-columns:var(--ifs-width) minmax(0,1fr) var(--appearance-width)}main.ifs-hidden{--ifs-width:0px}main.appearance-hidden{--appearance-width:0px}@media(min-width:1550px){main{--ifs-width:310px;--appearance-width:300px}}@media(max-width:1050px){main{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}main.ifs-hidden>.controls-panel,main.appearance-hidden>.system-panel{grid-column:1/-1}}main.ifs-hidden.appearance-hidden{display:grid;grid-template-columns:minmax(0,1fr);height:calc(100dvh - 78px);min-height:0}main.ifs-hidden.appearance-hidden>.viewport{grid-column:1;grid-row:1;height:100%;min-height:0;border-bottom:0}@media(max-width:700px){main.ifs-hidden.appearance-hidden{height:calc(100dvh - 65px)}.sidebar-toggle{font-size:12px;padding:8px}.sidebar-toggles{gap:5px}.topbar .brand{min-width:0}.topbar .brand .mark{flex-shrink:0}}@media(max-width:440px){.sidebar-toggles{flex-direction:column;gap:3px}.sidebar-toggle{padding:4px 7px;font-size:11px}}.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:24px}.panel-heading h1,.panel-heading .panel-title{margin:0}.panel-heading .sidebar-toggle{padding:7px 10px;font-size:12px}.panel-restore{position:absolute;top:16px;z-index:2;background:#182720}.restore-left{left:18px}.restore-right{right:18px}main.ifs-hidden .view-heading,main.appearance-hidden .view-heading{top:64px}.view-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}#download-image{border-color:#567044;color:#c2ef87}@media(max-width:580px){.panel-restore{font-size:12px;padding:8px}.view-actions{bottom:52px}.view-actions button{padding:9px 10px}.panel-heading .sidebar-toggle{font-size:12px}}.table-bottom-actions{display:flex;justify-content:flex-end;margin-top:14px}.table-bottom-actions button{padding:6px 0}#export-dialog{width:min(390px,calc(100vw - 28px))}#export-dialog .dialog-heading h2{margin:0}.export-note{font-size:12px}#export-error{color:#ffb5ad;font-size:13px}#export-error:empty{display:none}.ifs-mode-switch{display:grid;grid-template-columns:1fr 1fr;gap:5px;padding:4px;border:1px solid #3a4b42;border-radius:7px;margin-bottom:22px}.ifs-mode-switch button{background:none;border:0;border-radius:4px;padding:9px 5px;font-size:12px;color:#a5b9ad}.ifs-mode-switch button.selected{background:#2c4530;color:#d4f7b2}.current-system-section .current-system-heading{margin-top:0}#sponge-dialog{width:min(1020px,calc(100vw - 28px));padding:26px}#sponge-dialog .dialog-heading h2{margin-top:8px}.sponge-axis-inputs,.cut-inputs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.sponge-axis-inputs label,.cut-inputs label{margin-top:18px}.sponge-axis-inputs input,.cut-inputs input,.sponge-custom-weights input{display:block;width:100%;margin-top:9px;background:#0b1519;border:1px solid #3b4e46;border-radius:5px;padding:11px;color:#dbecd8;font:14px monospace}.sponge-help{font-size:12px!important;margin:0 0 12px}.grid-update-row{display:flex;align-items:center;gap:14px;margin:12px 0 20px}.secondary-button,.selection-actions button,.layer-actions button{border:1px solid #405348;border-radius:5px;background:#203129;color:#c2ef87;padding:9px 12px;font-size:12px}.grid-update-row span{font-size:12px;color:#a9bba8}.axis-strips{display:grid;gap:6px;margin-bottom:24px}.axis-strip-row{display:grid;grid-template-columns:18px 1fr;gap:8px;align-items:center;font:12px monospace;color:#adc2af}.axis-strip{display:flex;gap:3px;height:24px}.axis-strip span{display:grid;place-items:center;overflow:hidden;background:#2b4039;color:#c4dfc6;font-size:11px;border-radius:3px}.axis-strip span:nth-child(2n){background:#364b38}.cell-selection-toolbar{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-top:22px}.cell-selection-toolbar h3{font-size:16px;font-weight:500;margin:0 0 6px}.cell-selection-toolbar span{font-size:12px;color:#a9bba8}.selection-actions{display:flex;gap:6px}.slice-orientation{font-size:12px;color:#94aaa0;margin:16px 0 10px}.sponge-layers{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;max-height:49dvh;overflow:auto;padding:2px 5px 2px 2px}.sponge-layers .layer-card{background:#101c1d;border:1px solid #334a3c;border-radius:8px;padding:12px;margin:0;min-width:0}.layer-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.layer-heading h4{font:15px monospace;color:#d6edc0;margin:0}.layer-heading span{font:12px monospace;color:#91a89a}.layer-grid{display:grid;gap:3px;aspect-ratio:1;min-height:180px}.grid-cell{padding:0;border:1px solid #344c43;border-radius:3px;background:#182826;min-width:0;min-height:0;color:#20321a;font-size:14px}.grid-cell:hover{background:#426c42}.grid-cell[aria-pressed=true]{background:#acd878;border-color:#c6efa0}.grid-cell:focus-visible{outline-offset:0;outline:2px solid #fff;z-index:1}.layer-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:10px}.layer-actions button{padding:5px 10px;font-size:11px;background:none}.sponge-weight-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 0 12px}.sponge-weight-row span{font:13px monospace;color:#bfddb0}.sponge-weight-row .invalid{color:#ffafa0}.sponge-custom-weights{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;max-height:180px;overflow:auto}.sponge-custom-weights label{font-size:12px;margin:0}#sponge-error{color:#ffb5ad;font-size:13px}#sponge-error:empty{display:none}@media(max-width:700px){#sponge-dialog{padding:20px}.sponge-layers{grid-template-columns:repeat(2,minmax(0,1fr))}.cut-inputs{grid-template-columns:1fr;gap:0}.cell-selection-toolbar{align-items:flex-start;flex-direction:column}.sponge-custom-weights{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:430px){.sponge-layers{grid-template-columns:1fr}.sponge-axis-inputs{gap:8px}.grid-update-row{align-items:flex-start;flex-direction:column}}.sponge-selection-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px;align-items:stretch}.sponge-selection-layout .sponge-layers{display:block;max-height:none;overflow:visible;padding:0}.layer-selector{display:flex;align-items:center;gap:14px;margin:0 0 12px!important}.layer-selector select{flex:1;margin:0!important}.sponge-selection-layout .layer-grid{min-height:0;max-height:300px;aspect-ratio:1}.cell-preview-panel{display:flex;flex-direction:column;background:#101c1d;border:1px solid #334a3c;border-radius:8px;padding:14px;min-width:0}.cell-preview-panel h4{margin:0;font-size:14px;font-weight:500;color:#c7dcc6}#sponge-preview{flex:1;min-height:300px;position:relative}#sponge-preview canvas{display:block;position:absolute;inset:0;width:100%;height:100%;touch-action:none}.preview-legend{display:flex;gap:18px;justify-content:center;font-size:11px;color:#b2c6bc}.preview-legend span:before{content:"";display:inline-block;width:8px;height:8px;border-radius:2px;background:#c2e88e;margin-right:6px}.preview-legend span+span:before{background:#408c88}@media(max-width:700px){.sponge-selection-layout{grid-template-columns:1fr}.sponge-selection-layout .layer-grid{max-height:none}#sponge-preview{min-height:280px}}.mono-legend{display:grid;grid-template-columns:auto 42px 1fr;align-items:center;margin:16px 0 22px;gap:10px;background:#101b21d9;border:1px solid #34473f;border-radius:10px;padding:12px;letter-spacing:0}.mono-legend label{font-size:12px;margin:0;color:#c5cfca}.mono-legend input[type=color]{width:42px;height:36px;padding:3px;border:1px solid #668174;border-radius:6px;background:transparent;cursor:pointer}.mono-legend output{font:10px monospace;float:none;color:#a8bcb3}.mono-swatches{display:flex;flex-wrap:wrap;grid-column:1/-1;justify-content:space-between;gap:8px}.mono-swatches button{width:22px;height:22px;padding:0;background:var(--swatch);border:2px solid #182629;border-radius:50%}.mono-swatches button[aria-pressed=true]{outline:1px solid #d9efc9;outline-offset:2px}main{--content-heading-top:28px;--content-heading-height:34px}.panel{padding-top:var(--content-heading-top)}.panel-heading{height:var(--content-heading-height);align-items:center}.panel-heading h1,.panel-heading .panel-title,.view-heading h2{margin:0;line-height:var(--content-heading-height)}.view-heading,main.ifs-hidden .view-heading,main.appearance-hidden .view-heading{top:var(--content-heading-top);height:var(--content-heading-height);display:flex;align-items:center}.view-heading h2{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}.panel-restore{top:var(--content-heading-top);height:var(--content-heading-height);padding-top:0;padding-bottom:0}main.ifs-hidden .view-heading{left:100px}main.appearance-hidden .view-heading{right:110px}@media(min-width:1550px){main{--content-heading-top:30px}}@media(max-width:580px){main{--content-heading-top:26px}}.topbar .plot-help{margin-left:auto}.plot-help{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border:1px solid #7a9185;border-radius:50%;font:14px/1 sans-serif;color:#c2d4c7;text-decoration:none;flex-shrink:0}.plot-help:hover{background:#2c4530;border-color:#c2ef87;color:#c2ef87}.controls-panel #regenerate{display:block}.controls-panel>section{margin-top:24px;padding-top:24px}.controls-panel>section>label:first-child{margin-top:0}select,.map-table select{appearance:none;-webkit-appearance:none;padding-right:40px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b8cbc2' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-size:16px 16px;background-origin:border-box;background-position:right 13px center}.editor-entry{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px;min-height:44px}.control-icon{display:block;width:16px;height:16px;flex:0 0 16px}#gallery-controls select,#new-system-controls select{min-height:44px;padding-left:12px}@media(forced-colors:active){select,.map-table select{appearance:auto;background-image:none}.control-icon{stroke:ButtonText}}.json-file-actions{display:flex;gap:10px;margin-bottom:12px}.controls-panel #regenerate{display:flex;align-items:center;justify-content:center;gap:9px}.regenerate-icon{width:18px;height:18px;flex:0 0 18px}.grid-definition-title{font-size:16px;font-weight:500;margin:24px 0 14px}#sponge-dialog .axis-input{display:flex;align-items:center;gap:10px;margin:0;min-width:0}#sponge-dialog .axis-input input{margin:0;flex:1;min-width:0;width:0}#sponge-cubic-controls{max-width:240px}#sponge-cut-controls .sponge-help{margin-top:12px}@media(max-width:700px){.cut-inputs{gap:12px}}.grid-definition-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:24px 0 14px}.grid-definition-heading .grid-definition-title{margin:0}.grid-definition-heading button{flex-shrink:0}#sponge-grid-status{font-size:12px;color:#a9bba8;margin-top:12px}#sponge-grid-status:empty{display:none}#sponge-axis-strips{margin-top:20px}.topbar .github-link{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border:1px solid #7a9185;border-radius:50%;color:#c2d4c7;flex-shrink:0;margin-left:0}.github-link svg{width:17px;height:17px}.github-link:hover{background:#2c4530;border-color:#c2ef87;color:#c2ef87}@media(max-width:700px){.topbar .github-link{margin-left:0}}.header-links{display:flex;align-items:center;gap:12px;margin-left:auto;flex-shrink:0}.header-links .plot-help{width:26px;height:26px}.topbar .header-icon{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;min-width:28px;padding:0;margin:0;border:1px solid #7a9185;border-radius:50%;color:#c2d4c7;text-decoration:none;flex:0 0 28px}.header-icon svg{display:block;width:18px;height:18px}.topbar .header-icon:hover{background:#2c4530;border-color:#c2ef87;color:#c2ef87}.brand .mark{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;flex:0 0 36px}.mark svg{display:block;width:36px;height:36px}#bernoulli-dialog{width:min(1000px,calc(100vw - 28px))}.bernoulli-layout{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(220px,1fr);gap:24px}#bernoulli-preview{height:360px;background:#0c171b;border:1px solid #354b43;border-radius:8px;overflow:hidden}#bernoulli-matrix{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}#bernoulli-dialog input{min-width:0;width:100%;padding:9px;background:#0b1519;color:#e5eee7;border:1px solid #40524a;border-radius:5px}#bernoulli-dialog h3{margin-top:0;font-size:16px}.bernoulli-columns{display:flex;gap:8px;margin-bottom:12px}.bernoulli-columns button,#bernoulli-reset{padding:8px 14px;background:#142024;border:1px solid #405b4a;border-radius:6px}.bernoulli-columns button:nth-child(1){color:#ed8c82}.bernoulli-columns button:nth-child(2){color:#c2ef87}.bernoulli-columns button:nth-child(3){color:#78bbef}.bernoulli-columns button[aria-pressed=true]{background:#30453c;border-color:currentColor}#bernoulli-error{color:#ffb5ad}@media(max-width:650px){.bernoulli-layout{grid-template-columns:1fr}#bernoulli-preview{height:300px}}#bernoulli-preview canvas{width:100%;height:100%}.bernoulli-formula{margin:6px 0 16px}#bernoulli-dialog .sponge-help{line-height:1.45;margin:8px 0 14px}.bernoulli-translation{display:grid;grid-template-columns:24px repeat(3,minmax(0,1fr));align-items:end;gap:8px;margin-bottom:10px}.bernoulli-translation>span{padding-bottom:10px}.bernoulli-translation label{margin:0;font-size:12px}.bernoulli-translation input{margin-top:4px}.system-panel>.current-system-section{border-top:0}dialog label[for=ifs-name],dialog label[for=sponge-name]{font-size:16px;font-weight:500;color:inherit}#new-system-controls{display:flex;align-items:stretch;gap:8px}#new-system-controls select{flex:1;min-width:0;width:0}#new-system-controls .editor-entry{flex:0 0 auto;width:auto;margin:0;white-space:nowrap;padding:8px;font-size:12px;gap:6px}#new-system-controls #create-new{flex:0 0 44px;width:44px;justify-content:center;padding:10px}#create-new .control-icon{width:22px;height:22px;flex-basis:22px}#surface-description{font-size:12px;line-height:1.55;color:var(--muted);margin:14px 0}#surface-phi{height:90px}#surface-error{color:#ffb5ad}#surface-dialog label[for=surface-name]{font-size:16px;font-weight:500;color:inherit}.swatches{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.swatches .swatch{width:100%;height:30px}.swatches #palette-label{grid-column:1/-1;justify-self:end;margin:0}.sampling-controls{position:relative;margin-top:22px}.sampling-controls .sampling{margin:0;padding:0;border:0}.sampling-controls summary{min-height:34px;line-height:34px;padding-right:106px}.controls-panel #regenerate{position:absolute;top:0;right:0;margin:0;padding:8px 14px;width:auto}.sampling-controls summary,.controls-panel #regenerate{font-size:12px}.sampling-controls summary{padding-right:124px;line-height:36px;min-height:36px}.controls-panel #regenerate{gap:4px;padding:9px 4px}.controls-panel .regenerate-icon{width:14px;height:14px;flex-basis:14px}.summand-preview-panel{margin:18px 0;border:1px solid #354b43;border-radius:8px;overflow:hidden;background:#0c171b}.summand-preview-panel h3{font-size:14px;font-weight:500;margin:14px 16px 0}#summand-preview{height:240px;touch-action:none}#summand-preview canvas{display:block;width:100%;height:100%}#summand-preview-status{font-size:12px;color:var(--muted);margin:0 16px 14px}#surface-dialog{width:min(900px,calc(100vw - 28px))}.summand-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px;align-items:start}.summand-layout .summand-preview-panel{margin:18px 0 0}@media(max-width:650px){.summand-layout{grid-template-columns:1fr;gap:0}}.surface-ifs-definition{margin:20px 0;padding:16px;border:1px solid #354b43;border-radius:8px;background:#0c171b}.surface-ifs-definition h3{font-size:14px;font-weight:500;margin:0 0 10px}.surface-ifs-definition p{font-size:12px;color:var(--muted);margin:8px 0}.surface-ifs-definition .surface-map-formula{font:13px/1.7 monospace;color:#d6ef92;overflow-wrap:anywhere}.piecewise-help{margin:16px 0;color:var(--muted);font-size:12px}.piecewise-help summary{cursor:pointer;color:#c2ef87}.piecewise-help pre{white-space:pre-wrap;overflow-wrap:anywhere;background:#0c171b;padding:12px;border-radius:6px}.piecewise-help code{color:#d6ef92}.view-footer{flex-direction:row;align-items:center;gap:12px}.view-footer .status{min-width:0;flex:1}.view-footer .status-dot{flex-shrink:0}.view-footer #status{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.view-footer .view-actions{position:static;flex:0 0 auto;flex-wrap:nowrap}.legend{top:auto;bottom:90px}@media(max-width:580px){.view-footer{left:12px;right:12px;bottom:14px;gap:8px}.view-footer .status{gap:6px;font-size:11px}.view-footer .view-actions{gap:6px}.view-footer .view-actions button{min-height:44px;padding:8px;font-size:11px}.legend{right:18px;bottom:82px;gap:8px}.legend i{height:85px}}.rotation-detail-note{font-size:11px;color:var(--muted);line-height:1.5;margin:-6px 0 14px}
