:root{--app-font:"Segoe UI", Tahoma, Geneva, Verdana, sans-serif;--bg:#f2f4f7;--panel:#fff;--panel-soft:#fafcff;--line:#1f2937;--line-soft:#d9dde5;--line-mid:#c8cfda;--line-muted:#e3e6ec;--text:#1f2937;--muted:#6b7280;--accent:#2563eb;--accent-soft:#e8f0ff;--primary-ink:#1f3551;--danger:#b91c1c;--warning:#9a4a15;--radius:10px;--shadow:0 4px 14px #0f172a0f;--shadow-soft:0 14px 34px #0f172a14;font-family:var(--app-font);font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}*{box-sizing:border-box}html,body{height:100%;margin:0}body{font-family:var(--app-font);color:var(--text);background:#edf1f5;overflow:hidden}button,input,select,textarea{font:inherit}#root{height:100%}.wedge-app{height:100vh;color:var(--line);font-family:var(--app-font);background:#edf1f5;flex-direction:column;display:flex;overflow:hidden}.command-bar{background:#fff;border-bottom:1px solid #cfd6e1;flex:none;align-items:center;gap:10px;min-height:64px;padding:0 14px;display:flex}.command-brand{align-items:center;gap:10px;min-width:235px;padding-right:8px;display:flex}.command-logo{object-fit:contain;flex:none;width:38px;height:38px}.command-brand-copy{min-width:0}.command-brand-copy h1{color:#172033;margin:0;font-size:1.04rem;font-weight:760;line-height:1.1}.command-brand-copy span{color:#667085;margin-top:2px;font-size:.72rem;font-weight:650;display:block}.command-cluster{border-left:1px solid #e4e8ef;align-items:center;gap:6px;padding:0 8px;display:flex}.command-primary-cluster{margin-left:auto}.command-button,.command-icon-button{color:#263244;cursor:pointer;background:#fff;border:1px solid #cbd4df;border-radius:7px;justify-content:center;align-items:center;gap:7px;height:36px;font-size:.82rem;font-weight:700;line-height:1;transition:background-color .12s,border-color .12s,color .12s,opacity .12s;display:inline-flex}.command-button{width:auto;padding:0 12px}.command-icon-button{width:36px;padding:0}.command-button:hover,.command-icon-button:hover{background:#f6f8fb;border-color:#9ba8b9}.command-button:disabled,.command-icon-button:disabled{cursor:not-allowed;opacity:.45}.command-button-primary{color:#0f554f;background:#e7f5f2;border-color:#1f7a70}.command-button-primary:hover{background:#d9efeb;border-color:#166c63}.command-readout{color:#263244;font-variant-numeric:tabular-nums;background:#f7f9fc;border:1px solid #d8dee8;border-radius:7px;justify-content:center;align-items:center;min-width:70px;height:36px;padding:0 10px;font-size:.78rem;font-weight:780;display:inline-flex}.workspace-grid{background:#cfd6e1;flex:auto;grid-template-columns:56px minmax(260px,320px) minmax(0,1fr) minmax(310px,370px);gap:1px;min-height:0;display:grid;overflow:hidden}.tool-rail{background:#f9fafc;flex-direction:column;align-items:center;gap:8px;min-height:0;padding:8px 6px;display:flex;overflow:hidden auto}.tool-rail-section{flex-direction:column;gap:6px;display:flex}.tool-rail-button{color:#526071;cursor:pointer;background:0 0;border:1px solid #0000;border-radius:8px;justify-content:center;align-items:center;width:40px;height:40px;transition:background-color .12s,border-color .12s,color .12s,opacity .12s;display:inline-flex}.tool-rail-button:hover{color:#1d2939;background:#fff;border-color:#d4dae4}.tool-rail-button.is-active{color:#0f554f;background:#e5f3f0;border-color:#7da89f}.tool-rail-button:disabled{cursor:not-allowed;opacity:.42}.wedge-main{background:#fff;flex-direction:column;min-width:0;min-height:0;display:flex;position:relative}.scene-stage{background:linear-gradient(#fffffff5,#f7f9fcf5),linear-gradient(90deg,#94a3b82e 1px,#0000 1px) 0 0/32px 32px,linear-gradient(#94a3b82e 1px,#0000 1px) 0 0/32px 32px;flex:auto;min-width:0;min-height:0;position:relative;overflow:hidden}.scene-canvas-shell{background:#edf2ed;width:100%;height:100%;position:relative}.scene-stage canvas{touch-action:none;width:100%;height:100%;display:block}.scene-overlay{pointer-events:none;gap:8px;display:grid;position:absolute;top:12px;left:12px}.scene-chip{color:#334155;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);background:#fffffff0;border:1px solid #d7dde7;border-radius:7px;align-items:center;gap:8px;min-height:28px;padding:0 10px;font-size:.8rem;font-weight:700;display:inline-flex;box-shadow:0 8px 22px #0f172a14}.swatch,.plane-swatch{border:1px solid #0f172a1f;border-radius:999px;flex:none;width:10px;height:10px}.scene-status{color:#991b1b;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);pointer-events:none;background:#fff1f2f0;border:1px solid #fecaca;border-radius:7px;align-items:center;min-height:28px;padding:0 10px;font-size:.8rem;font-weight:780;display:inline-flex;position:absolute;top:12px;left:50%;transform:translate(-50%);box-shadow:0 8px 22px #0f172a14}.screen-axis-indicator{-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);pointer-events:none;background:#fffffff0;border:1px solid #d7dde7;border-radius:7px;width:92px;height:92px;padding:6px;position:absolute;bottom:14px;left:14px;box-shadow:0 8px 22px #0f172a14}.screen-axis-svg{width:100%;height:100%}.screen-axis-svg text{font-family:var(--app-font);font-size:14px;font-weight:700}.scene-loading{color:#667085;text-align:center;place-items:center;height:100%;padding:24px;font-size:.75rem;line-height:1.3;display:grid}.workspace-inspector,.results-sidebar{background:#fff;flex-direction:column;min-width:0;min-height:0;display:flex}.inspector-header,.results-sidebar-header{background:#fbfcfe;border-bottom:1px solid #e4e8ef;flex:none;padding:14px 16px}.inspector-title{color:#334155;align-items:center;gap:10px;min-width:0;display:flex}.inspector-title h2{color:#172033;margin:0;font-size:.95rem;font-weight:760;line-height:1.15}.inspector-content,.results-sidebar-body{flex:auto;min-height:0;overflow:hidden}.control-panel{flex-direction:column;height:100%;min-height:0;padding:0;display:flex;overflow:auto}.panel{background:#fff}.section-block{background:0 0;border:0;border-bottom:1px solid #edf0f4;border-radius:0;min-width:0;padding:12px 14px}.section-block:last-child{border-bottom:0}.section-label{color:#667085;letter-spacing:.06em;text-transform:uppercase;margin:0 0 8px;font-size:.72rem;font-weight:760;line-height:1.1}.section-header,.panel-header,.viewer-header,.results-header,.set-header,.breakdown-header{justify-content:space-between;align-items:flex-start;gap:10px;min-width:0;display:flex}.field-grid{grid-template-columns:1fr;gap:8px;min-width:0;display:grid}.two-column-field-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.single-column-field-grid{grid-template-columns:1fr}.field{color:#667085;min-width:0;margin-bottom:3px;font-size:.66rem;line-height:1.1;display:block}.field>span{display:block}.input-wrap{min-width:0;position:relative}.number-input,.text-input,.select-input{color:#263244;background:#fff;border:1px solid #c8cfda;border-radius:6px;width:100%;min-height:28px;margin-top:4px;padding:3px 8px;font-size:.78rem;line-height:1.15;box-shadow:inset 0 1px 1px #0f172a05}.number-input{appearance:textfield;padding-right:42px}.number-input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.number-input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.plane-cell[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.plane-cell[type=number]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.number-input:disabled,.text-input:disabled,.select-input:disabled{color:#98a2b3;cursor:not-allowed;background:#f5f7fb}.number-input:focus,.text-input:focus,.select-input:focus,.plane-cell:focus{border-color:#8fb0e8;outline:none;box-shadow:0 0 0 3px #2563eb1f}.input-unit{color:#667085;pointer-events:none;font-size:.68rem;position:absolute;top:calc(50% + 2px);right:10px;transform:translateY(-50%)}.checkbox-field{color:#263244;align-items:center;gap:8px;min-height:28px;font-size:.78rem;display:flex}.checkbox-field input{accent-color:#2563eb;width:14px;height:14px;margin:0}.actions,.file-actions,.panel-actions,.viewer-actions,.pill-row{flex-wrap:wrap;gap:8px;min-width:0;display:flex}.actions{margin-top:8px}.control-panel button,.results-panel button{color:#263244;cursor:pointer;background:#fff;border:1px solid #cbd4df;border-radius:6px;flex:100%;padding:6px 8px;font-size:.74rem;font-weight:760;line-height:1.1;transition:background-color .12s,border-color .12s,color .12s,opacity .12s}.control-panel button:hover,.results-panel button:hover{background:#f6f8fb;border-color:#9ba8b9}.control-panel button:disabled,.results-panel button:disabled{cursor:not-allowed;opacity:.45}.primary-action{color:#0f554f!important;background:#e7f5f2!important;border-color:#1f7a70!important}.primary-action:hover{background:#d9efeb!important}.ghost{background:#fff}.compact-button{width:auto;flex:none!important;padding-inline:10px!important}.planes-actions{margin-top:10px;margin-bottom:14px}.hidden-file-input{display:none}.set-stack{gap:10px;min-width:0;display:grid}.set-card,.result-card,.metric-card{background:#fff;border:1px solid #e2e7ef;border-radius:8px;min-width:0;max-width:100%;padding:10px;overflow:hidden}.set-card h3,.result-card h3,.results-panel h3,.viewer-header h2{color:#172033;margin:0 0 6px;font-size:.9rem;font-weight:760}.field-subtitle{color:#526071;letter-spacing:.04em;text-transform:uppercase;margin:10px 0 6px;font-size:.68rem;font-weight:780}.metric-detail,.breakdown-value,.field-note,.section-intro,.combination-summary,.summary-list{color:#667085;overflow-wrap:anywhere;word-break:break-word;font-size:.75rem;line-height:1.3}.field-note{margin:8px 0 0}.warning-note{color:#9a4a15}.plane-row{grid-template-columns:auto minmax(0,1fr);align-items:start;gap:8px;min-width:0;display:grid}.plane-row .plane-swatch{margin-top:4px}.results-panel{background:#fff;grid-template-columns:minmax(0,1fr);grid-auto-rows:minmax(0,max-content);align-content:start;gap:10px;height:100%;min-height:0;padding:12px 14px;display:grid;overflow:auto}.metric-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;display:grid}.metric-label,.chip{color:#667085;white-space:nowrap;background:#f7f9fc;border:1px solid #d8dee8;border-radius:999px;align-items:center;min-height:22px;padding:0 8px;font-size:.66rem;font-weight:800;display:inline-flex}.metric-card{padding:9px}.metric-value{color:#172033;margin-top:8px;font-size:1rem;font-weight:780;line-height:1.15;display:block}.combination-nav-card{margin:0}.combination-summary{gap:4px;margin-bottom:10px;display:grid}.breakdown-item+.breakdown-item{margin-top:10px}.breakdown-header{align-items:center;margin-bottom:6px}.breakdown-header strong{color:#263244;font-size:.76rem}.stack-list{gap:8px;margin:0;padding:0;list-style:none;display:grid}.stack-list li{background:#f8fafc;border:1px solid #e2e7ef;border-radius:7px;padding:8px}.table-wrap{background:#fff;border:1px solid #e2e7ef;border-radius:7px;min-width:0;min-height:0;overflow:hidden}.orientation-table-wrap{max-width:100%;margin-top:0}.planes-table,.orientation-table{border-collapse:collapse;table-layout:fixed;width:100%;min-width:0;font-size:.76rem}.planes-table thead th,.orientation-table thead th{z-index:1;text-align:left;color:#334155;background:#f8fafc;border-bottom:1px solid #e2e7ef;padding:7px 6px;font-weight:760;position:sticky;top:0}.orientation-table th:nth-child(2),.orientation-table th:nth-child(3){width:34%}.orientation-table th:nth-child(4){width:18%}.planes-table thead th.row-number-head,.orientation-table thead th.row-number-head{text-align:center;width:28px;min-width:28px;padding:7px 4px}.row-number-cell{text-align:center;background:#f8fafc;border-right:1px solid #e2e7ef;width:28px;min-width:28px}.row-number-value{color:#667085;font-variant-numeric:tabular-nums;min-width:1.8ch;font-weight:700;display:inline-block}.planes-table tbody td,.orientation-table tbody td{border-bottom:1px solid #edf0f4;padding:0}.planes-table tbody tr:last-child td,.orientation-table tbody tr:last-child td{border-bottom:0}.plane-cell{color:#263244;appearance:textfield;background:0 0;border:0;border-radius:0;width:100%;min-width:0;margin-top:0;padding:7px 6px;font-size:.76rem}.plane-cell:focus{outline-offset:-2px}.orientation-action-cell{width:32px;min-width:32px;padding:4px!important}.orientation-action-cell .compact-button{width:24px}.table-icon-button{min-width:24px;height:24px;color:#667085!important;flex:0 0 24px!important;padding:0!important;line-height:1!important}.stereonet-card{justify-items:center;gap:10px;display:grid}.stereonet-plot{width:100%;max-width:220px;height:auto;overflow:visible}.stereonet-rim{fill:#f8fbff;stroke:#355a74;stroke-width:1.5px}.stereonet-grid-circle,.stereonet-grid-axis{fill:none;stroke:#ccd8e3;stroke-width:1px}.stereonet-great-circle{fill:none;stroke-width:1.6px;stroke-linecap:round;stroke-linejoin:round;opacity:.92}.stereonet-great-circle.is-slope{stroke-dasharray:5 3;opacity:.85}.stereonet-pole{stroke:#09131d47;stroke-width:.75px}.stereonet-cardinal{fill:#667085;font-size:12px;font-weight:700}.insights-panel{gap:10px;display:grid}.insights-panel .section-block{background:#fff;border:1px solid #e2e7ef;border-radius:8px;padding:10px}.wedge-statusbar{color:#64748b;letter-spacing:.02em;background:#f9fafc;border-top:1px solid #cfd6e1;flex:0 0 30px;justify-content:space-between;align-items:center;gap:1rem;height:30px;padding:0 14px;font-size:10px;font-weight:650;display:flex}.wedge-statusbar div{align-items:center;gap:16px;min-width:0;display:flex}@media (width<=1180px){.command-brand{min-width:190px}.command-button span{display:none}.workspace-grid{grid-template-columns:52px minmax(230px,280px) minmax(0,1fr) minmax(280px,320px)}}@media (width<=900px){.command-bar{flex-wrap:wrap;min-height:auto;padding:8px}.command-brand{min-width:100%}.command-primary-cluster{margin-left:0}.workspace-grid{grid-template-rows:minmax(250px,34vh) minmax(0,1fr) minmax(220px,28vh);grid-template-columns:52px minmax(0,1fr)}.tool-rail{grid-row:1/4;gap:5px;padding:6px 5px}.tool-rail-section{gap:4px}.tool-rail-button{width:36px;height:36px}.wedge-main{grid-area:2/2}.workspace-inspector{grid-area:1/2}.results-sidebar{border-top:1px solid #cfd6e1;grid-area:3/2}.wedge-statusbar{display:none}}
