.calc-main{padding:0 5.4vw}.calc-breadcrumb{display:flex;gap:10px;padding:22px 0;color:#92978e;font:10px 'DM Mono',monospace}.calc-breadcrumb a{color:#3438dc;text-decoration:none}.calc-hero{min-height:310px;border-bottom:1px solid #dcded5;display:grid;grid-template-columns:1.2fr .8fr;align-items:center;position:relative;overflow:hidden}.calc-overline{font:10px 'DM Mono',monospace;letter-spacing:1.1px;color:#3438dc}.calc-hero h1{font:800 clamp(43px,6vw,72px)/.98 'Manrope',sans-serif;letter-spacing:-4px;margin:16px 0}.calc-hero h1 em{font:italic 500 1em Georgia,serif;color:#3438dc}.calc-hero p{max-width:580px;color:#747a71;font-size:15px;line-height:1.7}.calc-hero-foot{display:flex;gap:20px;margin-top:27px;font:9px 'DM Mono',monospace;color:#81877e}.calc-hero-art{height:250px;display:grid;place-items:center;position:relative}.calc-orbit{position:absolute;width:78%;height:70%;border:1px solid #d5d8ce;border-radius:50%;transform:rotate(-28deg)}.calc-device{width:210px;height:220px;background:#1b211d;color:#f3f2ec;border:1px solid #1b211d;box-shadow:13px 14px 0 #c6f25b;transform:rotate(7deg);padding:17px;display:flex;flex-direction:column;justify-content:space-between}.calc-device span,.calc-device small{font:8px 'DM Mono',monospace;color:#bdc1b6}.calc-device b{font:500 59px 'DM Mono',monospace;text-align:right;color:#c6f25b}.calc-device i{font:17px 'DM Mono',monospace;font-style:normal;word-spacing:8px}.calc-spark{position:absolute;right:15%;top:17%;font-size:27px;color:#ff7252}.calc-workspace{display:grid;grid-template-columns:260px minmax(0,1fr);gap:22px;padding:32px 0 44px}.calc-sidebar{align-self:start;position:sticky;top:14px}.calc-sidebar>label{display:block;font:10px 'DM Mono',monospace;color:#747a71;margin-bottom:7px}.calc-sidebar>input{width:100%;border:1px solid #d7d9d0;background:#fbfaf6;padding:11px;font:12px 'DM Sans',sans-serif}.calc-categories{display:flex;flex-wrap:wrap;gap:6px;margin:15px 0}.calc-category{border:1px solid #dedfd8;background:transparent;padding:7px 9px;font:10px 'DM Sans',sans-serif;color:#747a71;cursor:pointer}.calc-category.active{background:#1b211d;color:#fff;border-color:#1b211d}.calc-nav{display:grid;gap:3px}.calc-nav button{display:flex;align-items:center;gap:10px;border:0;background:transparent;text-align:left;padding:9px 8px;font:11px 'DM Sans',sans-serif;color:#62685f;cursor:pointer}.calc-nav button:hover,.calc-nav button.active{background:#e8e9e1;color:#1b211d}.calc-nav button span{display:grid;place-items:center;width:25px;height:25px;background:#e4e8d7;border-radius:50%;color:#3438dc;font-size:13px}.calc-panel{min-height:510px;border:1px solid #dcded5;background:#fbfaf6;padding:clamp(20px,4vw,42px)}.calc-panel-head{display:flex;justify-content:space-between;align-items:flex-start;gap:15px;border-bottom:1px solid #e2e3dc;padding-bottom:20px;margin-bottom:23px}.calc-panel-head small{font:9px 'DM Mono',monospace;color:#858b81;letter-spacing:.7px}.calc-panel h2{font:700 28px 'Manrope',sans-serif;letter-spacing:-1px;margin:7px 0}.calc-panel-head p{font-size:12px;color:#7c8279;margin:0;line-height:1.6}.calc-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.calc-field label{display:block;font:11px 'DM Sans',sans-serif;color:#51574f;margin-bottom:6px}.calc-field input,.calc-field select{width:100%;border:1px solid #d7d9d0;background:#fff;padding:11px 12px;font:13px 'DM Sans',sans-serif;color:#1b211d}.calc-result{margin-top:24px;background:#e9eddf;padding:18px 20px;border-left:3px solid #c6f25b}.calc-result small{font:9px 'DM Mono',monospace;color:#71786c;letter-spacing:.7px}.calc-result strong{display:block;font:700 clamp(24px,4vw,36px) 'Manrope',sans-serif;letter-spacing:-1px;margin:6px 0 4px;overflow-wrap:anywhere}.calc-result p{margin:0;color:#70766c;font-size:11px;line-height:1.55}.calc-extra{font-size:12px;line-height:1.7;color:#656c62;margin-top:15px}.calc-extra b{color:#1b211d}.calc-note{border-block:1px solid #dcded5;padding:21px 0 25px;display:flex;gap:20px}.calc-note b{font:9px 'DM Mono',monospace;color:#3438dc;white-space:nowrap;padding-top:3px}.calc-note p{font-size:11px;line-height:1.6;color:#777e74;margin:0;max-width:750px}.calc-empty{padding:50px 10px;text-align:center;color:#7d837a;font-size:13px}.calc-empty strong{display:block;color:#1b211d;font:700 17px 'Manrope',sans-serif;margin-bottom:6px}.calc-science{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px;margin-top:12px}.calc-science button{padding:11px 6px;border:1px solid #d7d9d0;background:#fff;color:#1b211d;font:12px 'DM Mono',monospace;cursor:pointer;transition:.18s}.calc-science button:hover{background:#c6f25b;border-color:#c6f25b;transform:translateY(-2px)}.calc-hint{font-size:10px;color:#858b81;margin:10px 0 0}@media(max-width:820px){.calc-main{padding:0 20px}.calc-hero{grid-template-columns:1fr;min-height:550px;align-content:start}.calc-hero>div:first-child{padding-top:30px}.calc-hero-art{position:absolute;right:0;bottom:0;width:min(46%,330px);height:250px}.calc-hero-foot{flex-direction:column;gap:6px}.calc-workspace{grid-template-columns:1fr;gap:15px}.calc-sidebar{position:static}.calc-nav{display:flex;overflow:auto;gap:5px;padding:5px 0}.calc-nav button{min-width:max-content;border:1px solid #e0e1d9}.calc-panel{min-height:440px}}@media(max-width:520px){.calc-hero{min-height:590px}.calc-hero h1{letter-spacing:-2.5px}.calc-hero p{font-size:13px;max-width:290px}.calc-hero-art{width:100%;height:250px;bottom:-10px;right:0}.calc-device{scale:.84}.calc-panel{padding:20px 15px}.calc-panel h2{font-size:23px}.calc-fields{grid-template-columns:1fr;gap:12px}.calc-note{display:block}.calc-note p{margin-top:9px}}

/* Scenario-first calculator workspace */
.calc-workspace{grid-template-columns:250px minmax(0,1fr);gap:26px;padding-top:26px}
.calc-sidebar>input{border-radius:9px;padding:13px 14px}.calc-categories{gap:7px;margin:14px 0 19px}.calc-category{border-radius:99px;padding:8px 12px;transition:background .18s,color .18s,border .18s}.calc-category:hover{border-color:#3438dc;color:#3438dc}
.calc-nav{gap:5px}.calc-nav button{width:100%;min-height:46px;padding:7px 10px;border-radius:8px;transition:background .18s,transform .18s}.calc-nav button:hover{transform:translateX(2px)}.calc-nav button span{flex:none;width:29px;height:29px;background:#eef0e5}.calc-nav button i{font-style:normal;margin-left:auto;color:#3438dc;opacity:0;transition:opacity .15s}.calc-nav button:hover i,.calc-nav button.active i{opacity:1}.calc-nav button.active{background:#e8e9e1;font-weight:700}
.calc-panel{min-height:585px;padding:clamp(20px,3.1vw,36px);border-radius:12px;background:#fbfaf6;box-shadow:0 14px 35px #1b211d08}.calc-panel-top{display:flex;align-items:center;gap:14px;position:relative;padding:0 0 22px;border-bottom:1px solid #e4e5dd}.calc-panel-icon{display:grid;place-items:center;width:49px;height:49px;flex:none;border-radius:13px;background:#e8ecdc;color:#3438dc;font:22px 'DM Mono',monospace}.calc-panel-top small{font:9px 'DM Mono',monospace;color:#868c82;letter-spacing:.8px}.calc-panel h2{font:700 24px 'Manrope',sans-serif;letter-spacing:-.8px;margin:4px 0}.calc-panel-top p{font-size:11px;color:#777e74;margin:0;line-height:1.5}.calc-reset{margin-left:auto;align-self:flex-start;border:1px solid #e0e2d9;border-radius:99px;background:#fff;padding:7px 11px;color:#666d63;font:11px 'DM Sans',sans-serif;cursor:pointer;transition:.18s}.calc-reset:hover{border-color:#3438dc;color:#3438dc}.calc-reset:first-letter{font-size:15px}
.calc-presets{display:flex;align-items:center;gap:7px;flex-wrap:wrap;padding:16px 0 20px}.calc-presets>span{font:8px 'DM Mono',monospace;color:#858b81;letter-spacing:.6px;margin-right:3px}.calc-presets button{border:1px solid #e0e2d9;border-radius:7px;background:#fff;padding:8px 10px;color:#60675d;font:10px 'DM Sans',sans-serif;cursor:pointer;transition:.18s}.calc-presets button b{color:#3438dc;margin-left:5px}.calc-presets button:hover,.calc-presets button.active{border-color:#3438dc;background:#f0f0ff;color:#3438dc}
.calc-layout{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(240px,.85fr);gap:25px;align-items:stretch}.calc-section-label{display:flex;justify-content:space-between;align-items:center;margin:2px 0 15px}.calc-section-label b,.calc-keypad-label{font:8px 'DM Mono',monospace;letter-spacing:.65px;color:#555d52}.calc-section-label span{font:9px 'DM Sans',sans-serif;color:#9a9f95}.calc-fields{display:grid;grid-template-columns:1fr;gap:13px}.calc-control{display:block;min-width:0;padding:12px 13px 9px;border:1px solid #e6e7df;border-radius:9px;background:#fff;transition:border .18s,box-shadow .18s}.calc-control:focus-within{border-color:#a9b0fb;box-shadow:0 0 0 3px #3438dc12}.calc-control-label{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:8px}.calc-control-label label,.calc-control>span{font:10px 'DM Sans',sans-serif;color:#646b61}.calc-control-label output{font:10px 'DM Mono',monospace;color:#3438dc}.calc-entry{display:grid;grid-template-columns:32px minmax(0,1fr) 32px;gap:6px;align-items:center}.calc-entry input,.calc-control select,.calc-control>input[type=text],.calc-control>input[type=date]{width:100%;min-width:0;height:36px;border:1px solid #e4e5dd;border-radius:6px;background:#fbfaf6;padding:7px 10px;color:#1b211d;font:13px 'DM Mono',monospace;outline:none}.calc-entry input{text-align:center}.calc-entry input:focus,.calc-control select:focus,.calc-control>input:focus{border-color:#3438dc}.calc-step{height:32px;border:1px solid #e4e5dd;border-radius:6px;background:#fbfaf6;color:#3438dc;font:16px 'DM Sans',sans-serif;cursor:pointer;transition:.15s}.calc-step:hover{background:#c6f25b;border-color:#c6f25b}.calc-range{display:block;width:100%;height:4px;margin:12px 0 0;accent-color:#3438dc;cursor:pointer}.calc-range-hints{display:flex;justify-content:space-between;margin-top:4px;color:#a1a69d;font:8px 'DM Mono',monospace}.calc-expression>input{font-size:18px;height:51px;color:#3438dc}.calc-control select{cursor:pointer}.calc-private{display:flex;align-items:center;gap:10px;margin-top:17px;padding:11px 12px;border-radius:8px;background:#eef1e6;color:#77806d;font-size:9px;line-height:1.5}.calc-private>span:first-child{font-size:17px;color:#3438dc}.calc-private b{color:#424a3e;font-size:10px}
.calc-output{position:relative;overflow:hidden;display:flex;flex-direction:column;justify-content:space-between;min-height:388px;padding:20px;border-radius:11px;background:#eff0fa}.calc-output-orbit{position:absolute;width:220px;height:220px;right:-132px;top:-95px;border:1px solid #3438dc1b;border-radius:50%;pointer-events:none}.calc-result{position:relative;z-index:1;margin:0;padding:0;background:transparent;border:0}.calc-result small{font:8px 'DM Mono',monospace;color:#656b7a;letter-spacing:1px}.calc-result strong{display:block;margin:11px 0 0;color:#1b211d;font:800 clamp(28px,3vw,42px)/1.05 'Manrope',sans-serif;letter-spacing:-1.8px;overflow-wrap:anywhere}.calc-result>span{display:block;margin-top:4px;color:#555d72;font:11px 'DM Sans',sans-serif}.calc-result p{margin:11px 0 0;color:#73798a;font-size:10px;line-height:1.55}.calc-copy{margin-top:15px;border:0;border-radius:6px;background:#1b211d;padding:9px 12px;color:#fff;font:10px 'DM Sans',sans-serif;cursor:pointer;transition:.18s}.calc-copy span{color:#c6f25b;margin-left:8px}.calc-copy:hover{background:#3438dc;transform:translateY(-1px)}.calc-visual{position:relative;z-index:1;margin-top:20px;padding-top:14px;border-top:1px solid #d8daea}.calc-visual-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:9px;color:#697083;font:8px 'DM Mono',monospace;letter-spacing:.65px}.calc-visual-head b{color:#3438dc;font-size:14px}.calc-visual svg{display:block;width:100%;height:auto;overflow:visible}.calc-visual-caption{margin:8px 0 0;color:#858b98;font-size:9px;line-height:1.5}.calc-chart-labels{display:flex;justify-content:space-between;color:#8e94a0;font:7px 'DM Mono',monospace}.calc-donut{display:grid;place-items:center;width:104px;height:104px;margin:13px auto 14px;border-radius:50%;background:conic-gradient(#3438dc 0 var(--split),#c6f25b var(--split) 100%);position:relative}.calc-donut:before{content:'';position:absolute;inset:11px;border-radius:50%;background:#eff0fa}.calc-donut>div{z-index:1;display:grid;justify-items:center;gap:2px}.calc-donut small{font:7px 'DM Mono',monospace;color:#818798}.calc-donut strong{font:700 16px 'Manrope',sans-serif;color:#1b211d}.calc-legend{display:grid;gap:6px}.calc-legend>div{display:grid;grid-template-columns:10px 1fr auto;align-items:center;gap:7px;color:#73798a;font:8px 'DM Sans',sans-serif}.calc-legend b{color:#34394a;font:9px 'DM Mono',monospace}.legend-dot{width:7px;height:7px;border-radius:50%;background:#3438dc}.dot-1{background:#c6f25b}.calc-number-art{position:relative;display:flex;flex-direction:column;justify-content:space-between;min-height:117px;padding:13px;border:1px solid #dadcec;border-radius:9px;background:linear-gradient(140deg,#f8f8ff,#e2e5fb)}.calc-number-art>span{font:29px 'DM Mono',monospace;color:#3438dc}.calc-number-art>i{position:absolute;right:14px;top:10px;font:italic 25px Georgia,serif;color:#ff7252}.calc-number-art>b{font:8px 'DM Mono',monospace;color:#656b7a;letter-spacing:.7px}.calc-number-art>small{font:7px 'DM Mono',monospace;color:#999eac}.bmi-scale{position:relative;height:12px;margin:29px 0 9px;border-radius:99px;background:linear-gradient(90deg,#c8bbff 0 27%,#c6f25b 27% 62%,#ffd168 62% 77%,#ff9b86 77%)}.bmi-scale i{position:absolute;top:50%;width:18px;height:18px;border:3px solid #fff;border-radius:50%;background:#3438dc;box-shadow:0 1px 5px #2225;transform:translate(-50%,-50%)}.bmi-scale-labels{display:flex;justify-content:space-between;color:#858b98;font:7px 'DM Mono',monospace}.calc-footnote{margin:18px 0 52px;color:#8b9087;font-size:9px;line-height:1.6}.calc-keypad-label{display:flex;justify-content:space-between;margin:16px 0 7px}.calc-keypad-label span{color:#3438dc}.calc-science{grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;margin:0}.calc-science button{padding:9px 3px;border-radius:6px;font-size:10px}.calc-hint{font-size:9px;line-height:1.5}.calc-presets+.calc-layout{margin-top:0}.calc-panel-top+.calc-layout{margin-top:20px}
@media(max-width:1000px){.calc-workspace{grid-template-columns:210px minmax(0,1fr);gap:17px}.calc-layout{grid-template-columns:minmax(0,1fr) minmax(210px,.82fr);gap:15px}.calc-panel{padding:23px}.calc-presets{gap:6px}.calc-presets>span{width:100%}}
@media(max-width:820px){.calc-main{padding:0 20px}.calc-hero{grid-template-columns:1fr;min-height:550px;align-content:start}.calc-hero>div:first-child{padding-top:30px}.calc-hero-art{position:absolute;right:0;bottom:0;width:min(46%,330px);height:250px}.calc-hero-foot{flex-direction:column;gap:6px}.calc-workspace{grid-template-columns:1fr;gap:14px}.calc-sidebar{position:static}.calc-nav{display:flex;overflow:auto;gap:6px;padding:5px 0}.calc-nav button{min-width:max-content;width:auto;border:1px solid #e0e1d9}.calc-panel{min-height:0}.calc-nav button i{display:none}}
@media(max-width:600px){.calc-hero{min-height:590px}.calc-hero h1{letter-spacing:-2.5px}.calc-hero p{font-size:13px;max-width:290px}.calc-hero-art{width:100%;height:250px;bottom:-10px;right:0}.calc-device{scale:.84}.calc-panel{padding:18px 14px}.calc-panel-top{gap:10px}.calc-panel-icon{width:40px;height:40px}.calc-panel h2{font-size:20px}.calc-panel-top p{max-width:230px}.calc-reset{padding:7px 9px}.calc-reset span{display:none}.calc-layout{grid-template-columns:1fr}.calc-output{min-height:340px}.calc-fields{grid-template-columns:1fr;gap:9px}.calc-presets{flex-wrap:nowrap;overflow:auto;margin-right:-14px;padding:14px 14px 15px 0}.calc-presets>span{display:none}.calc-presets button{white-space:nowrap;flex:none}.calc-science{grid-template-columns:repeat(7,minmax(0,1fr))}.calc-science button{padding:10px 2px;font-size:9px}.calc-note{display:block}.calc-note p{margin-top:9px}.calc-footnote{margin:18px 0 32px}}
@media(max-width:820px){.calc-nav{scrollbar-width:thin;scrollbar-color:#aeb3a8 transparent}.calc-nav::after{content:'Swipe to explore →';align-self:center;flex:none;padding:0 8px;color:#777e74;font:9px 'DM Mono',monospace}.calc-nav button{background:#fbfaf6}.calc-nav button.active{background:#1b211d;color:#fff}.calc-nav button.active span{background:#c6f25b}}

/* Handheld scientific calculator */
.fx-calc{padding:24px;border:1px solid #c9cbc5;border-radius:14px;background:linear-gradient(145deg,#e5e6e1,#d8dad5);box-shadow:inset 0 1px #ffffff,0 15px 36px #171c1d12;color:#1b211d}
.fx-top{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:19px}.fx-brand{display:flex;align-items:center;gap:11px}.fx-badge{display:grid;place-items:center;width:40px;height:35px;border-radius:6px;background:#1b211d;color:#c6f25b;font:800 16px 'Manrope',sans-serif;letter-spacing:-1px;box-shadow:0 2px 0 #080b0a}.fx-brand>span:last-child{display:grid;gap:3px}.fx-brand b{font:700 9px 'DM Mono',monospace;letter-spacing:1px}.fx-brand small{font:10px 'DM Sans',sans-serif;color:#777d73}.fx-modes{display:flex;align-items:center;gap:6px}.fx-mode{min-width:48px;height:31px;border:1px solid #bfc2bb;border-radius:5px;background:linear-gradient(#f5f6f2,#dfe1dc);box-shadow:0 2px 0 #b6b9b2;color:#4c534a;font:700 9px 'DM Mono',monospace;cursor:pointer}.fx-mode:hover,.fx-mode.active{background:#3438dc;border-color:#3438dc;color:white;box-shadow:0 2px 0 #2529a8}.fx-memory{min-width:24px;color:#667060;font:9px 'DM Mono',monospace;text-align:center}
.fx-layout{display:grid;grid-template-columns:minmax(0,1fr) 220px;gap:18px;align-items:stretch}.fx-main{min-width:0}.fx-lcd{padding:13px 15px 10px;border:5px solid #787d73;border-radius:7px;background:linear-gradient(135deg,#d9e7bf,#c9d9ab);box-shadow:inset 0 2px 9px #18210d35,0 2px #fff8;color:#20291a}.fx-lcd-top{display:flex;justify-content:space-between;align-items:center;color:#64734f;font:8px 'DM Mono',monospace;letter-spacing:.7px}.fx-lcd-top b{color:#3438dc}.fx-lcd input{display:block;width:100%;height:43px;margin:6px 0 0;padding:0;border:0;outline:0;background:transparent;color:#25321e;font:clamp(17px,2.4vw,25px) 'DM Mono',monospace}.fx-lcd input::selection{background:#3438dc44}.fx-lcd-result{min-height:35px;text-align:right;color:#1d2b17;font:700 clamp(22px,3vw,31px) 'DM Mono',monospace;overflow-wrap:anywhere}.fx-result.fx-error{font:11px 'DM Sans',sans-serif;color:#8b342a}.fx-key-groups{display:grid;gap:7px;margin-top:12px}.fx-keys{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:7px}.fx-key{position:relative;min-width:0;height:47px;border:1px solid #bfc2bb;border-radius:6px;background:linear-gradient(#fbfcf9,#e7e9e4);box-shadow:0 3px 0 #b5b8b1;color:#252a24;font:500 14px 'DM Sans',sans-serif;cursor:pointer;user-select:none;transition:transform .08s,box-shadow .08s,background .12s}.fx-key b{font-weight:600}.fx-key:hover{background:#fff;transform:translateY(-1px);box-shadow:0 4px 0 #b5b8b1}.fx-key:active{transform:translateY(2px);box-shadow:0 1px 0 #b5b8b1}.fx-key:focus-visible,.fx-extra:focus-visible,.fx-mode:focus-visible{outline:3px solid #3438dc;outline-offset:2px}.fx-key small{position:absolute;top:3px;left:5px;right:5px;overflow:hidden;color:#8b5a29;font:7px 'DM Mono',monospace;white-space:nowrap}.fx-function{height:51px;padding-top:7px;color:#293225;font-size:13px}.fx-utility{grid-template-columns:repeat(6,minmax(0,1fr));gap:6px}.fx-utility-key{height:31px;background:linear-gradient(#60665e,#454a43);border-color:#3c413a;box-shadow:0 2px 0 #30342e;color:#fff;font:700 8px 'DM Mono',monospace}.fx-utility-key:first-child{color:#f1c26d}.fx-utility-key:hover{background:#3438dc}.fx-bottom-row{grid-template-columns:repeat(6,minmax(0,1fr))}.fx-bottom-row [data-fx="0"]{grid-column:span 2}.fx-bottom-row [data-fx="equals"]{grid-column:span 2;background:linear-gradient(#ff815f,#e66548);border-color:#d25c42;box-shadow:0 3px 0 #b44c35;color:white;font-weight:800}.fx-extra-row{display:flex;flex-wrap:wrap;gap:6px;margin-top:2px}.fx-extra{padding:6px 8px;border:1px solid #c4c7bf;border-radius:4px;background:#e8eae5;color:#5a6157;font:9px 'DM Mono',monospace;cursor:pointer}.fx-extra:hover{background:#c6f25b;border-color:#a8cf4d;color:#27321a}.fx-foot{display:flex;justify-content:space-between;gap:8px;margin-top:13px;color:#73796f;font:7px 'DM Mono',monospace;letter-spacing:.3px}.fx-history-panel{display:flex;flex-direction:column;min-height:100%;padding:13px;border:1px solid #c8cbc3;border-radius:9px;background:#f0f1ed}.fx-history-head{display:flex;justify-content:space-between;align-items:center;padding-bottom:9px;border-bottom:1px solid #d9dcd4}.fx-history-head b{font:8px 'DM Mono',monospace;letter-spacing:.6px}.fx-history-head button{border:0;background:transparent;color:#858b81;font:8px 'DM Mono',monospace;cursor:pointer}.fx-history-head button:hover{color:#3438dc}.fx-history{display:grid;align-content:start;gap:5px;flex:1;padding-top:8px}.fx-history-item{display:grid;gap:5px;width:100%;padding:8px;border:1px solid transparent;border-radius:5px;background:transparent;text-align:left;cursor:pointer}.fx-history-item:hover{border-color:#d6d9d0;background:#fff}.fx-history-item span{overflow:hidden;color:#81877d;font:9px 'DM Mono',monospace;text-overflow:ellipsis;white-space:nowrap}.fx-history-item b{color:#293025;font:600 13px 'DM Mono',monospace;text-align:right}.fx-empty-history{display:grid;align-content:center;justify-items:center;gap:7px;min-height:135px;color:#92988e;text-align:center}.fx-empty-history span{color:#3438dc;font-size:23px}.fx-empty-history b{color:#5e655a;font:600 10px 'DM Sans',sans-serif}.fx-empty-history small{font:9px 'DM Sans',sans-serif}.fx-memory-card{display:grid;gap:5px;margin-top:12px;padding:10px;border-radius:6px;background:#e3e8d8}.fx-memory-card span{color:#777e71;font:7px 'DM Mono',monospace;letter-spacing:.8px}.fx-memory-card b{color:#30382a;font:600 15px 'DM Mono',monospace;overflow-wrap:anywhere}.fx-memory-card small{color:#8a9085;font:8px 'DM Sans',sans-serif}
@media(max-width:1000px){.fx-layout{grid-template-columns:minmax(0,1fr) 180px;gap:12px}.fx-calc{padding:18px}.fx-keys{gap:5px}.fx-key{height:44px}.fx-function{height:48px}}
@media(max-width:700px){.fx-layout{grid-template-columns:1fr}.fx-history-panel{min-height:0}.fx-history{grid-template-columns:repeat(2,minmax(0,1fr));max-height:180px;overflow:auto}.fx-memory-card{grid-template-columns:auto 1fr;align-items:center}.fx-memory-card small{grid-column:1/-1}.fx-extra-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}.fx-foot span:last-child{display:none}}
@media(max-width:440px){.fx-calc{padding:12px;border-radius:10px}.fx-top{align-items:flex-start;margin-bottom:13px}.fx-brand small{font-size:9px}.fx-modes{gap:4px}.fx-mode{min-width:42px;height:29px;font-size:8px}.fx-lcd{padding:10px;border-width:4px}.fx-lcd input{height:39px;font-size:17px}.fx-keys{gap:4px}.fx-key{height:43px;font-size:12px}.fx-function{height:47px;font-size:11px}.fx-key small{font-size:6px}.fx-utility{gap:4px}.fx-utility-key{height:29px;font-size:7px}.fx-key-groups{gap:6px}.fx-extra{padding:7px 3px;font-size:8px}.fx-foot{font-size:6px}}
@media(prefers-reduced-motion:reduce){.fx-key,.fx-mode,.fx-extra{transition:none}}

/* Larger, easier-to-read scientific calculator controls */
.fx-calc{padding:36px;border-radius:18px}.fx-top{margin-bottom:27px}.fx-brand{gap:15px}.fx-badge{width:58px;height:50px;font-size:21px}.fx-brand b{font-size:13px}.fx-brand small{font-size:14px}.fx-modes{gap:9px}.fx-mode{min-width:70px;height:45px;font-size:13px}.fx-memory{min-width:34px;font-size:13px}.fx-layout{grid-template-columns:minmax(0,1fr) 280px;gap:25px}.fx-lcd{padding:19px 22px 15px;border-width:6px;border-radius:9px}.fx-lcd-top{font-size:11px}.fx-lcd input{height:65px;font-size:clamp(28px,3vw,40px)}.fx-lcd-result{min-height:55px;font-size:clamp(36px,4vw,50px)}.fx-key-groups{gap:11px;margin-top:17px}.fx-keys{gap:10px}.fx-key{height:72px;border-radius:8px;font-size:20px;box-shadow:0 5px 0 #b5b8b1}.fx-function{height:78px;padding-top:12px;font-size:18px}.fx-key small{top:6px;left:8px;font-size:10px}.fx-utility{gap:9px}.fx-utility-key{height:46px;font-size:12px;box-shadow:0 3px 0 #30342e}.fx-bottom-row [data-fx="equals"]{box-shadow:0 5px 0 #b44c35}.fx-extra-row{gap:9px;margin-top:5px}.fx-extra{padding:10px 13px;font-size:12px}.fx-foot{margin-top:18px;font-size:10px}.fx-history-panel{padding:18px;border-radius:12px}.fx-history-head{padding-bottom:13px}.fx-history-head b,.fx-history-head button{font-size:11px}.fx-history{gap:8px;padding-top:12px}.fx-history-item{padding:11px;border-radius:7px}.fx-history-item span{font-size:12px}.fx-history-item b{font-size:16px}.fx-empty-history{min-height:180px}.fx-empty-history b{font-size:13px}.fx-empty-history small{font-size:11px}.fx-empty-history span{font-size:30px}.fx-memory-card{gap:8px;margin-top:16px;padding:14px;border-radius:8px}.fx-memory-card span{font-size:10px}.fx-memory-card b{font-size:20px}.fx-memory-card small{font-size:11px}
@media(max-width:1000px){.fx-layout{grid-template-columns:minmax(0,1fr) 230px;gap:17px}.fx-calc{padding:26px}.fx-keys{gap:7px}.fx-key{height:64px}.fx-function{height:68px}.fx-utility-key{height:40px}}
@media(max-width:700px){.fx-layout{grid-template-columns:1fr}.fx-history-panel{padding:15px}.fx-history-item span{font-size:11px}.fx-history-item b{font-size:15px}}
@media(max-width:440px){.fx-calc{padding:16px;border-radius:12px}.fx-top{gap:10px;margin-bottom:17px}.fx-badge{width:46px;height:42px;font-size:18px}.fx-brand b{font-size:10px}.fx-brand small{font-size:11px}.fx-modes{gap:5px}.fx-mode{min-width:52px;height:36px;font-size:10px}.fx-lcd{padding:13px 14px 10px;border-width:5px}.fx-lcd-top{font-size:9px}.fx-lcd input{height:50px;font-size:23px}.fx-lcd-result{min-height:44px;font-size:32px}.fx-key-groups{gap:8px;margin-top:13px}.fx-keys{gap:5px}.fx-key{height:58px;border-radius:7px;font-size:17px;box-shadow:0 4px 0 #b5b8b1}.fx-function{height:62px;padding-top:10px;font-size:15px}.fx-key small{top:5px;left:4px;font-size:7px}.fx-utility{gap:5px}.fx-utility-key{height:36px;font-size:9px}.fx-extra-row{gap:6px}.fx-extra{padding:9px 5px;font-size:10px}.fx-foot{font-size:8px}.fx-history-panel{padding:12px}.fx-history-head b,.fx-history-head button{font-size:9px}.fx-history-item{padding:9px}.fx-empty-history{min-height:130px}.fx-memory-card{padding:11px}.fx-memory-card b{font-size:17px}.fx-memory-card small{font-size:9px}}

/* Scale the full Calculator Studio workspace */
.calc-main{padding-inline:4.6vw}.calc-breadcrumb{gap:14px;padding:28px 0;font-size:14px}.calc-hero{min-height:370px}.calc-overline{font-size:14px}.calc-hero h1{font-size:clamp(58px,7vw,88px);letter-spacing:-4.5px}.calc-hero p{max-width:700px;font-size:20px;line-height:1.65}.calc-hero-foot{gap:26px;margin-top:32px;font-size:12px}.calc-device{width:250px;height:258px;padding:20px}.calc-device span,.calc-device small{font-size:11px}.calc-device b{font-size:74px}.calc-device i{font-size:21px}.calc-workspace{grid-template-columns:300px minmax(0,1fr);gap:30px;padding:40px 0 54px}.calc-sidebar>label{font-size:14px;margin-bottom:10px}.calc-sidebar>input{padding:15px 16px;font-size:16px;border-radius:10px}.calc-categories{gap:9px;margin:19px 0 23px}.calc-category{padding:10px 15px;font-size:13px}.calc-nav{gap:6px}.calc-nav button{min-height:58px;padding:9px 12px;gap:13px;border-radius:9px;font-size:14px}.calc-nav button span{width:38px;height:38px;font-size:18px}.calc-nav button i{font-size:15px}.calc-panel{min-height:650px;padding:clamp(28px,3.6vw,48px);border-radius:15px}.calc-panel-top{gap:18px;padding-bottom:27px}.calc-panel-icon{width:62px;height:62px;border-radius:16px;font-size:29px}.calc-panel-top small{font-size:12px}.calc-panel h2{font-size:34px;letter-spacing:-1px}.calc-panel-top p{font-size:15px}.calc-reset{padding:10px 15px;font-size:14px}.calc-presets{gap:9px;padding:21px 0 26px}.calc-presets>span{font-size:11px}.calc-presets button{padding:11px 14px;border-radius:8px;font-size:13px}.calc-layout{gap:32px}.calc-section-label{margin-bottom:20px}.calc-section-label b,.calc-keypad-label{font-size:11px}.calc-section-label span{font-size:12px}.calc-fields{gap:17px}.calc-control{padding:17px 18px 13px;border-radius:12px}.calc-control-label{margin-bottom:11px}.calc-control-label label,.calc-control>span{font-size:14px}.calc-control-label output{font-size:14px}.calc-entry{grid-template-columns:44px minmax(0,1fr) 44px;gap:9px}.calc-entry input,.calc-control select,.calc-control>input[type=text],.calc-control>input[type=date]{height:48px;padding:10px 13px;border-radius:8px;font-size:17px}.calc-step{height:44px;border-radius:8px;font-size:23px}.calc-range{height:6px;margin-top:15px}.calc-range-hints{margin-top:6px;font-size:10px}.calc-private{gap:13px;margin-top:22px;padding:15px;border-radius:10px;font-size:12px}.calc-private>span:first-child{font-size:22px}.calc-private b{font-size:13px}.calc-output{min-height:470px;padding:25px;border-radius:14px}.calc-result small{font-size:11px}.calc-result strong{margin-top:14px;font-size:clamp(40px,4vw,55px)}.calc-result>span{font-size:14px}.calc-result p{margin-top:15px;font-size:13px}.calc-copy{margin-top:20px;padding:12px 16px;border-radius:8px;font-size:13px}.calc-visual{margin-top:25px;padding-top:19px}.calc-visual-head{margin-bottom:13px;font-size:10px}.calc-visual-head b{font-size:18px}.calc-visual-caption{margin-top:11px;font-size:12px}.calc-chart-labels{font-size:9px}.calc-donut{width:138px;height:138px;margin:17px auto}.calc-donut:before{inset:14px}.calc-donut small{font-size:9px}.calc-donut strong{font-size:20px}.calc-legend{gap:9px}.calc-legend>div{grid-template-columns:13px 1fr auto;gap:9px;font-size:11px}.calc-legend b{font-size:12px}.legend-dot{width:9px;height:9px}.calc-number-art{min-height:150px;padding:17px;border-radius:11px}.calc-number-art>span{font-size:38px}.calc-number-art>i{font-size:32px}.calc-number-art>b{font-size:10px}.calc-number-art>small{font-size:9px}.bmi-scale{height:16px;margin:37px 0 12px}.bmi-scale i{width:22px;height:22px}.bmi-scale-labels{font-size:9px}.calc-footnote{margin:18px 0 52px;font-size:12px}.calc-note{gap:26px;padding:27px 0 32px}.calc-note b{font-size:12px}.calc-note p{font-size:14px;max-width:900px}.calc-empty{font-size:15px}.calc-empty strong{font-size:21px}
@media(max-width:1000px){.calc-workspace{grid-template-columns:260px minmax(0,1fr);gap:22px}.calc-nav button{min-height:52px;font-size:13px}.calc-panel{padding:28px}.calc-layout{gap:18px}.calc-output{min-height:420px}}
@media(max-width:820px){.calc-main{padding-inline:20px}.calc-hero{min-height:620px}.calc-hero h1{font-size:clamp(54px,10vw,76px)}.calc-hero p{font-size:18px}.calc-hero-foot{font-size:11px}.calc-workspace{grid-template-columns:1fr;gap:17px}.calc-sidebar>label{font-size:13px}.calc-sidebar>input{font-size:15px}.calc-category{font-size:12px}.calc-nav{gap:8px;padding:8px 0}.calc-nav button{min-height:50px;padding:7px 13px;font-size:13px}.calc-nav button span{width:34px;height:34px;font-size:16px}.calc-panel{min-height:0;padding:clamp(22px,4vw,34px)}.calc-panel h2{font-size:30px}.calc-panel-top p{font-size:14px}.calc-presets button{font-size:12px}.calc-control-label label,.calc-control>span{font-size:13px}.calc-entry input,.calc-control select,.calc-control>input[type=text],.calc-control>input[type=date]{font-size:16px}.calc-output{min-height:410px}.calc-result strong{font-size:44px}.calc-result p{font-size:12px}.calc-note p{font-size:13px}}
@media(max-width:600px){.calc-breadcrumb{padding:20px 0;font-size:12px}.calc-hero{min-height:640px}.calc-hero>div:first-child{padding-top:28px}.calc-overline{font-size:12px}.calc-hero h1{font-size:clamp(48px,12vw,65px);letter-spacing:-3px}.calc-hero p{font-size:16px;max-width:330px}.calc-hero-foot{font-size:10px}.calc-device{width:220px;height:230px}.calc-device b{font-size:65px}.calc-workspace{padding:27px 0 40px}.calc-categories{gap:7px;margin:14px 0}.calc-category{padding:9px 12px;font-size:11px}.calc-nav{gap:7px}.calc-nav button{min-height:47px;padding:6px 11px;font-size:12px}.calc-nav button span{width:31px;height:31px;font-size:15px}.calc-panel{padding:19px 14px;border-radius:12px}.calc-panel-top{gap:10px;padding-bottom:18px}.calc-panel-icon{width:44px;height:44px;border-radius:11px;font-size:21px}.calc-panel-top small{font-size:9px}.calc-panel h2{font-size:22px}.calc-panel-top p{max-width:220px;font-size:11px}.calc-reset{padding:8px 10px;font-size:11px}.calc-presets{gap:7px;padding:13px 0 17px}.calc-presets button{padding:9px 11px;font-size:11px}.calc-section-label b,.calc-keypad-label{font-size:9px}.calc-section-label span{font-size:10px}.calc-control{padding:13px 12px 10px;border-radius:9px}.calc-control-label label,.calc-control>span{font-size:12px}.calc-control-label output{font-size:12px}.calc-entry{grid-template-columns:38px minmax(0,1fr) 38px;gap:6px}.calc-entry input,.calc-control select,.calc-control>input[type=text],.calc-control>input[type=date]{height:43px;font-size:15px}.calc-step{height:39px;font-size:20px}.calc-range{height:5px;margin-top:13px}.calc-range-hints{font-size:9px}.calc-output{min-height:380px;padding:18px;border-radius:11px}.calc-result small{font-size:9px}.calc-result strong{font-size:36px}.calc-result>span{font-size:12px}.calc-result p{font-size:11px}.calc-copy{font-size:11px}.calc-visual-head{font-size:9px}.calc-visual-caption{font-size:10px}.calc-donut{width:120px;height:120px}.calc-legend>div{font-size:9px}.calc-legend b{font-size:10px}.calc-number-art{min-height:125px}.calc-footnote{font-size:10px}.calc-note b{font-size:10px}.calc-note p{font-size:11px}}

/* Information-rich calculator charts */
.calc-chart-wrap{position:relative;margin:4px -4px 0}.calc-chart-wrap svg{width:100%;height:auto;overflow:visible}.chart-grid{stroke:#d9dcec;stroke-width:1;stroke-dasharray:3 5}.chart-y-label,.chart-x-label{fill:#858b9d;font:9px 'DM Mono',monospace}.chart-x-label{font-size:10px}.chart-line{fill:none;stroke-width:3.2;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}.chart-line.line-series-0{stroke:#3438dc}.chart-line.line-series-1{stroke:#ff7252;stroke-dasharray:7 5}.chart-dot{pointer-events:none;fill:#fff;stroke-width:2.4;vector-effect:non-scaling-stroke}.chart-dot.dot-series-0{stroke:#3438dc}.chart-dot.dot-series-1{stroke:#ff7252}.chart-hit{fill:transparent;cursor:crosshair}.chart-hit:focus{outline:none;stroke:#3438dc;stroke-width:2;stroke-dasharray:2 2}.chart-crosshair{stroke:#777d98;stroke-width:1;stroke-dasharray:3 4;opacity:0;pointer-events:none}.chart-crosshair.visible{opacity:.7}.calc-chart-tooltip{min-height:30px;margin:0 8px;padding:7px 9px;border-radius:5px;background:#e4e6f5;color:#454c68;font:10px 'DM Mono',monospace}.calc-chart-legend{display:flex;flex-wrap:wrap;gap:11px;margin:10px 8px 0;color:#666d80;font:10px 'DM Sans',sans-serif}.calc-chart-legend>span{display:flex;align-items:center;gap:6px}.chart-legend-dot{width:9px;height:9px;border-radius:50%;background:#3438dc}.chart-legend-dot.line-series-1{background:#ff7252}
.calc-breakdown-total{display:grid;gap:5px;margin:12px 0}.calc-breakdown-total small{font:8px 'DM Mono',monospace;color:#83899a;letter-spacing:.5px}.calc-breakdown-total strong{font:700 22px 'Manrope',sans-serif;letter-spacing:-.5px;color:#252b38}.calc-breakdown-bar{display:flex;width:100%;height:14px;overflow:hidden;border-radius:99px;background:#e2e4ee;gap:3px}.breakdown-segment{height:100%;background:#3438dc;transition:width .35s ease}.breakdown-segment.segment-1{background:#ff7252}.calc-breakdown{display:grid;gap:13px;margin-top:17px}.breakdown-row{display:grid;grid-template-columns:11px minmax(0,1fr) auto auto;align-items:center;gap:7px;color:#73798a;font:10px 'DM Sans',sans-serif}.breakdown-row b{color:#303646;font:10px 'DM Mono',monospace}.breakdown-row small{color:#8c92a2;font:9px 'DM Mono',monospace}.breakdown-track{grid-column:2/-1;height:5px;overflow:hidden;border-radius:99px;background:#dfe1eb}.breakdown-track i{display:block;height:100%;border-radius:inherit;background:#3438dc}.breakdown-track i.segment-1{background:#ff7252}.dot-1{background:#ff7252}
.bmi-scale{background:linear-gradient(90deg,#c8bbff 0 46.25%,#c6f25b 46.25% 62.25%,#ffd168 62.25% 75%,#ff9b86 75%)}.bmi-scale-labels{gap:8px;align-items:flex-start}.bmi-scale-labels span{flex:1;text-align:center;line-height:1.5}.bmi-scale-labels b{color:#646b7c;font-weight:500}
@media(max-width:600px){.chart-y-label{font-size:8px}.chart-x-label{font-size:9px}.calc-chart-tooltip{font-size:9px}.calc-chart-legend{gap:8px;font-size:9px}.calc-breakdown-total strong{font-size:19px}.breakdown-row{gap:5px;font-size:9px}.breakdown-row b{font-size:9px}.breakdown-row small{font-size:8px}.calc-breakdown{gap:11px}}

/* Cleaner, single-pass proportional breakdowns */
.calc-breakdown-bar{height:19px;margin:19px 0 5px;border:1px solid #fff;background:#e1e3ed;gap:0;box-shadow:0 1px 3px #20294c12}.breakdown-segment{display:block;flex:none;border-right:2px solid #eff0fa}.breakdown-segment:first-child{border-radius:99px 0 0 99px}.breakdown-segment:last-child{border-right:0;border-radius:0 99px 99px 0}.calc-breakdown{gap:0;margin-top:9px}.breakdown-row{grid-template-columns:12px minmax(0,1fr) minmax(max-content,auto) 62px;gap:10px;min-height:48px;padding:8px 2px;border-bottom:1px solid #dfe1eb;font-size:12px}.breakdown-row:last-child{border-bottom:0}.breakdown-row b{font-size:12px;font-variant-numeric:tabular-nums}.breakdown-row small{text-align:right;font-size:11px;font-variant-numeric:tabular-nums}.breakdown-row .legend-dot{width:10px;height:10px}.calc-visual-head b{font-size:10px;letter-spacing:.5px;font-weight:500}.calc-breakdown-bar .segment-0{background:#3438dc}.calc-breakdown-bar .segment-1{background:#ff7252}
@media(max-width:600px){.calc-breakdown-bar{height:16px;margin-top:15px}.breakdown-row{grid-template-columns:10px minmax(0,1fr) minmax(max-content,auto) 48px;gap:7px;min-height:43px;font-size:10px}.breakdown-row b{font-size:10px}.breakdown-row small{font-size:9px}.breakdown-row .legend-dot{width:8px;height:8px}}

/* Proportional mosaic for financial and percentage breakdowns */
.calc-mosaic{display:grid;gap:7px;min-height:174px;margin:20px 0 14px}.mosaic-tile{position:relative;display:flex;min-width:0;min-height:174px;flex-direction:column;justify-content:space-between;overflow:hidden;padding:16px;border-radius:11px;color:#fff;background:linear-gradient(145deg,#4549e7,#2e31bc);box-shadow:0 9px 20px #3438dc20;animation:mosaic-arrive .38s ease both;transition:transform .2s,box-shadow .2s}.mosaic-tile:hover{transform:translateY(-3px);box-shadow:0 15px 26px #2529a830}.mosaic-tile::before,.mosaic-tile::after{position:absolute;content:'';pointer-events:none}.mosaic-tile::before{width:130px;height:130px;right:-35px;top:-45px;border:1px solid #ffffff3a;border-radius:50%;box-shadow:0 0 0 13px #ffffff0c,0 0 0 28px #ffffff08}.mosaic-tile::after{width:54px;height:54px;right:13px;bottom:13px;border:1px solid #ffffff24;border-radius:50%}.mosaic-tile>span,.mosaic-tile>strong,.mosaic-tile>i,.mosaic-tile>b{position:relative;z-index:1}.mosaic-tile>span{font:600 12px 'DM Sans',sans-serif;line-height:1.25}.mosaic-tile>strong{margin:9px 0 2px;font:800 clamp(18px,2.2vw,32px)/1 'Manrope',sans-serif;letter-spacing:-1.1px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.mosaic-tile>strong small{font-size:.48em;letter-spacing:0;margin-left:2px}.mosaic-tile>i{color:#e4e5ff;font:8px 'DM Mono',monospace;letter-spacing:.6px;font-style:normal}.mosaic-tile>b{position:absolute;right:17px;bottom:13px;color:#ffffff89;font:700 11px 'DM Mono',monospace}.mosaic-1{color:#31231f;background:linear-gradient(145deg,#ff967d,#ff7252);box-shadow:0 9px 20px #ff725225}.mosaic-1::before{border-color:#5a251a35;box-shadow:0 0 0 13px #5a251a0b,0 0 0 28px #5a251a07}.mosaic-1::after{border-color:#5a251a28}.mosaic-1>i{color:#683f36}.mosaic-1>b{color:#683f3689}.mosaic-major{min-height:192px;padding:19px}.mosaic-major>span{font-size:14px}.mosaic-major>strong{font-size:clamp(25px,3vw,40px)}.mosaic-minor{min-height:174px;padding:13px}.mosaic-minor>span{font-size:11px;overflow-wrap:anywhere}.mosaic-minor>strong{font-size:clamp(15px,1.6vw,23px);letter-spacing:-.5px}.calc-mosaic-values{display:grid;gap:0}.calc-mosaic-values>div{display:grid;grid-template-columns:11px minmax(0,1fr) auto;align-items:center;gap:9px;min-height:42px;padding:7px 2px;border-bottom:1px solid #d8daea;color:#6c7283;font:11px 'DM Sans',sans-serif}.calc-mosaic-values>div:last-child{border-bottom:0}.calc-mosaic-values b{color:#303646;font:11px 'DM Mono',monospace;font-variant-numeric:tabular-nums}.mosaic-dot{width:9px;height:9px;border-radius:50%;background:#3438dc}.mosaic-dot-1{background:#ff7252}@keyframes mosaic-arrive{from{opacity:0;transform:translateY(8px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}
@media(max-width:600px){.calc-mosaic{min-height:145px;gap:6px;margin:15px 0 11px}.mosaic-tile{min-height:145px;padding:12px;border-radius:9px}.mosaic-major{min-height:155px;padding:13px}.mosaic-major>span{font-size:12px}.mosaic-major>strong{font-size:clamp(22px,7vw,31px)}.mosaic-minor{min-height:145px;padding:10px}.mosaic-minor>span{font-size:9px}.mosaic-minor>strong{font-size:clamp(14px,4vw,19px)}.mosaic-tile>i{font-size:7px}.mosaic-tile>b{right:11px;bottom:10px;font-size:9px}.calc-mosaic-values>div{min-height:38px;font-size:10px}.calc-mosaic-values b{font-size:10px}}
@media(prefers-reduced-motion:reduce){.mosaic-tile{animation:none;transition:none}}
.percentage-gauge{margin-top:33px;padding:18px 12px 12px;border:1px solid #d9dcef;border-radius:10px;background:linear-gradient(145deg,#f9f9ff,#e6e8fb)}.percentage-gauge-labels{display:flex;justify-content:space-between;gap:6px;align-items:end;color:#7c8294;font:9px 'DM Mono',monospace}.percentage-gauge-labels b{color:#3438dc;font-weight:500;text-align:center}.percentage-gauge-track{position:relative;height:18px;margin:27px 0 17px;border-radius:99px;background:#d7daeb;box-shadow:inset 0 1px 3px #20294c16}.percentage-gauge-track>i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#5559f0,#3438dc 75%,#ff7252);box-shadow:0 4px 10px #3438dc35;transition:width .28s ease}.percentage-gauge-track>b{position:absolute;top:50%;width:3px;height:31px;border-radius:3px;background:#ff7252;transform:translate(-50%,-50%);box-shadow:0 0 0 4px #ff725225}.percentage-gauge-legend{display:flex;justify-content:space-between;gap:10px;color:#6f7587;font:9px 'DM Sans',sans-serif}.percentage-gauge-legend span{display:flex;align-items:center;gap:6px}.percentage-gauge-legend i{width:8px;height:8px;border-radius:50%;background:#3438dc}.percentage-gauge-legend span:last-child i{background:#ff7252}.percentage-gauge .calc-visual-caption{margin-top:14px}
@media(max-width:600px){.percentage-gauge{margin-top:24px;padding:15px 9px 10px}.percentage-gauge-labels{font-size:8px}.percentage-gauge-track{height:14px;margin:23px 0 15px}.percentage-gauge-track>b{height:26px}.percentage-gauge-legend{font-size:8px}}
@media(min-width:1101px) and (max-height:1050px){body.scientific-active .calc-hero{display:none}body.scientific-active .calc-workspace{padding:8px 0 14px;gap:18px;align-items:start}body.scientific-active .calc-sidebar{max-height:calc(100vh - 150px);overflow:auto}body.scientific-active .calc-panel{min-height:0;padding:14px}body.scientific-active .fx-calc{padding:16px;border-radius:12px}body.scientific-active .fx-top{gap:10px;margin-bottom:10px}body.scientific-active .fx-brand{gap:8px}body.scientific-active .fx-badge{width:40px;height:36px;font-size:14px}body.scientific-active .fx-brand b{font-size:9px}body.scientific-active .fx-brand small{font-size:10px}body.scientific-active .fx-modes{gap:5px}body.scientific-active .fx-mode{min-width:48px;height:32px;font-size:9px}body.scientific-active .fx-memory{min-width:24px;font-size:9px}body.scientific-active .fx-layout{grid-template-columns:minmax(0,1fr) 190px;gap:12px}body.scientific-active .fx-lcd{padding:10px 13px 8px;border-width:4px}body.scientific-active .fx-lcd-top{font-size:8px}body.scientific-active .fx-lcd input{height:40px;font-size:clamp(18px,2.2vh,25px)}body.scientific-active .fx-lcd-result{min-height:34px;font-size:clamp(24px,3vh,34px)}body.scientific-active .fx-key-groups{gap:5px;margin-top:8px}body.scientific-active .fx-keys{gap:5px}body.scientific-active .fx-key{height:clamp(38px,5.2vh,52px);border-radius:6px;font-size:14px;box-shadow:0 3px 0 #b5b8b1}body.scientific-active .fx-function{height:clamp(42px,5.8vh,56px);padding-top:8px;font-size:13px}body.scientific-active .fx-key small{top:4px;left:5px;font-size:7px}body.scientific-active .fx-utility{gap:5px}body.scientific-active .fx-utility-key{height:clamp(28px,3.8vh,38px);font-size:9px}body.scientific-active .fx-extra-row{gap:5px;margin-top:2px}body.scientific-active .fx-extra{padding:6px 8px;font-size:9px}body.scientific-active .fx-foot{margin-top:8px;font-size:8px}body.scientific-active .fx-history-panel{padding:12px;border-radius:9px}body.scientific-active .fx-history-head{padding-bottom:8px}body.scientific-active .fx-history-head b,body.scientific-active .fx-history-head button{font-size:9px}body.scientific-active .fx-history{gap:5px;padding-top:8px}body.scientific-active .fx-history-item{padding:8px}body.scientific-active .fx-history-item span{font-size:9px}body.scientific-active .fx-history-item b{font-size:12px}body.scientific-active .fx-empty-history{min-height:100px}body.scientific-active .fx-memory-card{gap:5px;margin-top:8px;padding:9px}body.scientific-active .fx-memory-card span{font-size:7px}body.scientific-active .fx-memory-card b{font-size:14px}body.scientific-active .fx-memory-card small{font-size:8px}}

/* Stack the calculator intro and artwork naturally on touch-size screens. */
@media(max-width:820px){.calc-hero{display:grid;grid-template-columns:1fr;min-height:0;padding:24px 0 20px;align-items:start}.calc-hero>div:first-child{padding-top:0}.calc-hero-art{position:relative;inset:auto;right:auto;bottom:auto;width:100%;height:clamp(170px,32vw,230px);margin-top:12px}.calc-hero-foot{flex-direction:row;flex-wrap:wrap;gap:8px 18px}}
@media(max-width:390px){.calc-main{padding-left:max(14px,env(safe-area-inset-left));padding-right:max(14px,env(safe-area-inset-right))}.calc-hero h1{font-size:clamp(40px,12vw,54px)}}
@media(min-width:701px) and (max-width:1100px) and (max-height:850px){.fx-calc{padding:14px}.fx-top{margin-bottom:10px}.fx-layout{grid-template-columns:minmax(0,1fr) 180px;gap:10px}.fx-lcd{padding:9px 12px 7px}.fx-lcd input{height:38px;font-size:21px}.fx-lcd-result{min-height:30px;font-size:28px}.fx-key-groups{gap:5px;margin-top:7px}.fx-keys{gap:4px}.fx-key{height:42px;font-size:13px}.fx-function{height:46px;font-size:12px}.fx-utility-key{height:30px}.fx-extra-row{gap:4px}.fx-extra{padding:5px 6px;font-size:8px}.fx-foot{margin-top:6px;font-size:7px}.fx-history-panel{padding:10px}.fx-empty-history{min-height:90px}}