/* Self-contained styles shared by the beam and concrete tools. */
.sci-launcher,.sci-panel{font-family:"DM Sans",Arial,sans-serif;color:#edf5fa;box-sizing:border-box;z-index:40}
.sci-launcher{position:fixed;right:20px;bottom:20px;display:flex;align-items:center;gap:9px;border:1px solid #546473;border-radius:999px;background:#102e46;box-shadow:0 5px 22px #0005;padding:12px 17px;font-size:13px;font-weight:600;cursor:pointer}
.sci-launcher svg{width:18px;height:20px;color:#efbd5f}.sci-launcher:hover{background:#1a3d55;border-color:#efbd5f}
.sci-panel{position:fixed;right:20px;bottom:76px;width:316px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 28px);overflow:auto;overscroll-behavior:contain;background:#0d263d;border:1px solid #3c586c;border-radius:12px;box-shadow:0 16px 55px #0007;color-scheme:dark;font-size:12px;line-height:1.4}
.sci-panel[hidden]{display:none!important}.sci-panel *{box-sizing:border-box}.sci-panel button,.sci-panel input{font:inherit}.sci-panel button{cursor:pointer}.sci-panel button:focus-visible,.sci-panel input:focus-visible,.sci-panel summary:focus-visible,.sci-launcher:focus-visible{outline:2px solid #efbd5f;outline-offset:2px}
.sci-header{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:12px 14px 9px;border-bottom:1px solid #29445a;cursor:move;touch-action:none;user-select:none}.sci-title{margin:0!important;font:600 13px "DM Sans",Arial,sans-serif!important;letter-spacing:0!important;line-height:1.4!important}.sci-drag-hint{font-size:10px;color:#a7c0d1}.sci-close{border:0;background:transparent;color:#c1d5e3;font-size:21px!important;width:30px;height:30px;border-radius:5px}.sci-close:hover{background:#234259}
.sci-body{padding:12px}.sci-toolbar{display:flex;align-items:center;gap:8px;margin-bottom:9px}.sci-mode{border:1px solid #45627a;border-radius:5px;padding:5px 8px;background:#18394f;color:#efbd5f;font-size:10px!important;font-weight:700!important}.sci-mode-note{font-size:10px;color:#a8c1d2;flex:1}.sci-text-button{border:0;background:transparent;color:#b7dff3;padding:5px 3px;font-size:11px!important}.sci-text-button:disabled{opacity:.45;cursor:default}
.sci-display{padding:11px 10px 10px;background:#071b2d;border:1px solid #355269;border-radius:7px}.sci-label{display:block;color:#a9c0d0;font-size:10px;margin:0 0 6px}.sci-expression{display:block;width:100%;min-width:0;height:32px;padding:3px 0;border:0;border-bottom:1px solid #29445a;border-radius:0;background:transparent;color:#edf5fa;font:16px ui-monospace,Consolas,monospace!important;outline-offset:3px!important}.sci-expression::placeholder{color:#829bac}.sci-result-row{display:flex;align-items:baseline;justify-content:space-between;gap:5px;padding-top:10px}.sci-result-row>span{font-size:10px;color:#9db6c8}.sci-result{display:block;max-width:245px;overflow-wrap:anywhere;font:600 23px ui-monospace,Consolas,monospace;font-variant-numeric:tabular-nums;color:#f4cf88;line-height:1.25}.sci-status{font-size:10px;line-height:1.5;min-height:30px;padding:6px 1px 2px;color:#b5cbdc;margin:0!important}.sci-status.sci-error{color:#ffc6ac}
.sci-keys{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px}.sci-key{min-height:36px;padding:5px 2px;border:1px solid #355369;border-radius:5px;background:#17364d;color:#e3edf5;font-size:13px!important;line-height:1.2;transition:background .12s}.sci-key:hover{background:#294c64}.sci-key.sci-number{background:#213e54;font-size:16px!important}.sci-key.sci-number:hover{background:#34566d}.sci-key.sci-function{color:#acdaef;font-size:12px!important}.sci-key.sci-operator{color:#f0c777;font-size:17px!important}.sci-key.sci-equals{background:#efbd5f;color:#092238;border-color:#efbd5f;font-weight:700}.sci-key.sci-equals:hover{background:#ffd48b}.sci-key.sci-clear{color:#ffc6ac}.sci-ans-row{display:flex;gap:8px;justify-content:space-between;align-items:center;margin-top:9px}.sci-ans{border:1px solid #355369;border-radius:5px;background:#102e44;color:#c0ddec;min-height:29px;padding:4px 10px;font-size:11px!important}.sci-help{font-size:9px;color:#a7c0d1;text-align:right;max-width:190px}
.sci-history{margin-top:10px;border-top:1px solid #29445a;padding-top:8px}.sci-history summary{font-size:11px;color:#b5d7e8;cursor:pointer;padding:2px 0}.sci-history ol{list-style:none;margin:7px 0 0;padding:0;max-height:135px;overflow:auto}.sci-history li{margin:0;padding:0;border-top:1px solid #29445a}.sci-history-item{display:flex;flex-direction:column;gap:3px;width:100%;text-align:left;padding:7px 2px;border:0;background:transparent;color:#b6cddd;font:11px ui-monospace,Consolas,monospace!important;overflow-wrap:anywhere}.sci-history-item strong{color:#f1cf8d;font-weight:500}.sci-history-item:hover{background:#17364d}.sci-history-empty{font-size:10px;color:#9eb9cc;padding-top:6px;margin:0!important}
.sci-functions{flex:1;text-align:left}.sci-extra-keys{margin-bottom:5px}.sci-extra-keys[hidden]{display:none!important}
@media(max-width:520px){.sci-launcher{bottom:12px;right:12px;padding:11px 14px}.sci-panel{right:12px;bottom:68px}.sci-expression{font-size:16px!important}.sci-drag-hint{display:none}.sci-key{min-height:38px}}
@media(max-height:620px){.sci-panel{bottom:12px}.sci-key{min-height:30px}.sci-header{padding:7px 12px}.sci-body{padding:9px}.sci-history{margin-top:6px}}
@media(prefers-reduced-motion:reduce){.sci-key{transition:none}}
@media print{.sci-panel,.sci-launcher{display:none!important}}
