
:root{--bg:#f5f6f8;--ink:#202b3c;--muted:#737d8d;--border:#e1e5eb;--blue:#235ed2;--panel:#fff}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:14px Arial,Helvetica,sans-serif}button,a,input{ -webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{font:inherit;cursor:pointer}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #648bff;outline-offset:3px}header{height:78px;border-bottom:1px solid var(--border);background:var(--panel);display:flex;align-items:center;justify-content:space-between;padding:0 max(5vw,24px)}.brand{display:flex;align-items:center;gap:11px;font-size:17px;font-weight:700;letter-spacing:-.5px}.brand-icon{display:grid;place-items:center;width:33px;height:36px;background:var(--blue);border-radius:8px;color:white;font-size:20px}.brand small{font-weight:400;color:var(--muted);font-size:11px;display:block;letter-spacing:2px;margin-top:4px}nav{display:flex;align-items:center;gap:30px;color:#5b6677;font-size:13px}nav a:hover{color:var(--blue)}.theme{border:1px solid var(--border);background:none;border-radius:8px;padding:9px 12px;color:var(--ink)}main{max-width:1220px;margin:0 auto;padding:43px 32px 0}.intro{display:flex;justify-content:space-between;align-items:flex-end;margin-bottom:30px}.eyebrow{font-size:10px;letter-spacing:2px;color:var(--blue);font-weight:700;margin-bottom:12px}h1{font-size:34px;letter-spacing:-1.3px;margin:0 0 10px;line-height:1.15}h1 span{font-weight:400;color:#748094}.intro p{margin:0;color:var(--muted);font-size:14px;line-height:1.6}.badge{padding:7px 10px;background:#eaf0fd;color:#3c66ae;border-radius:5px;font-size:10px;letter-spacing:1px;font-weight:bold;white-space:nowrap}.workspace{display:grid;grid-template-columns:minmax(500px,1fr) 300px;gap:25px;align-items:start}.stage{background:#e9edf3;border:1px solid #dfe4eb;border-radius:14px;overflow:hidden;position:relative}.stage:before{content:'';position:absolute;inset:52px 0 0;background-image:radial-gradient(#c9d1de .7px,transparent .7px);background-size:17px 17px;opacity:.65}.toolbar{height:49px;display:flex;align-items:center;justify-content:space-between;padding:0 20px;background:#f9fafc;border-bottom:1px solid #dfe4eb;position:relative;z-index:1;font-size:12px}.live{display:flex;gap:7px;align-items:center;color:#6c7685}.live i{width:6px;height:6px;background:#609f84;border-radius:50%}.tools{display:flex;gap:13px}.tools button{background:none;border:0;color:#627087;font-size:11px;padding:7px}.tools button:hover{color:var(--blue)}.calculator{width:344px;margin:25px auto 29px;padding:20px 22px 23px;border-radius:29px 29px 37px 37px;background:linear-gradient(100deg,#313b4a,#46515f 47%,#303a48);border:2px solid #252e3a;box-shadow:inset 0 2px 1px #74808e,inset 0 -5px 0 #232c39,0 15px 25px #34486133;position:relative}.calc-brand{display:flex;justify-content:space-between;align-items:center;color:#eef0f3;margin:0 1px 13px;font-size:15px;font-weight:700;letter-spacing:-.2px}.calc-brand small{font-size:9px;color:#b5bfcb;letter-spacing:1.4px;font-weight:400}.lcd-frame{padding:10px;background:#242e3a;border-radius:10px 10px 15px 15px;box-shadow:inset 0 2px 4px #10151c}.lcd{height:150px;background:#c8d2b4;box-shadow:inset 2px 2px 4px #6d7754;color:#303b2b;font:12px 'Courier New',monospace;display:flex;flex-direction:column;overflow:hidden}.lcd-menu{display:flex;border-bottom:1px solid #69765b;justify-content:space-around;font-size:9px;padding:5px 2px}.lcd-menu span{border-right:1px solid #849071;padding-right:4px}.lcd-content{flex:1;padding:9px 9px 5px;display:flex;flex-direction:column}.screen-note{font-size:9px;color:#69745c;letter-spacing:1px}.equation{font-size:14px;margin-top:15px}.result{align-self:flex-end;font-size:18px;margin-top:8px}.entry{margin-top:auto;overflow:hidden;white-space:nowrap;min-height:18px;border-top:1px dotted #8c977b;padding-top:5px}.cursor{display:inline-block;width:6px;height:12px;background:#47543c;vertical-align:middle;animation:blink 1.2s step-end infinite}@keyframes blink{50%{opacity:0}}.lcd-status{border-top:1px solid #849071;font-size:8px;padding:3px 5px;display:flex;justify-content:space-between}.functions{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin:11px 0 9px}.functions button{background:linear-gradient(#8d98a9,#697487);border:1px solid #222c39;border-bottom:3px solid #202a36;border-radius:5px 5px 10px 10px;color:white;font-size:10px;height:25px}.controls{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin-bottom:6px;align-items:center}.controlkeys{grid-column:span 3;display:grid;grid-template-columns:repeat(3,1fr);gap:10px 7px}.key{position:relative;min-width:0;height:30px;border:1px solid #1b2532;border-bottom:3px solid #171f2b;border-radius:6px 6px 10px 10px;color:#f0f3f7;background:linear-gradient(#637082,#485567);box-shadow:inset 0 1px #ffffff20;font-size:11px;display:flex;align-items:center;justify-content:center}.key:active,.functions button:active,.pressed{transform:translateY(2px);filter:brightness(1.3)}.key small{position:absolute;font-size:7px;top:-10px;color:#94b8eb;white-space:nowrap;font-weight:normal}.second{background:linear-gradient(#7aadd9,#5284b0);color:white}.diamond{background:linear-gradient(#bbd0b1,#8fa387);color:#23332e}.alpha{color:#dae1c8}.apps{color:#cca7e0}.dpad{grid-column:span 2;position:relative;width:92px;height:73px;margin:auto}.dpad button{position:absolute;width:31px;height:27px;background:#283341;color:#b9c8db;border:1px solid #151f2d;border-radius:9px;box-shadow:inset 0 1px #657185}.dpad button:nth-child(1){left:31px;top:0}.dpad button:nth-child(2){left:0;top:23px}.dpad button:nth-child(3){right:0;top:23px}.dpad button:nth-child(4){left:31px;bottom:0}.keypad{display:grid;grid-template-columns:repeat(5,1fr);gap:15px 8px;margin-top:17px}.keypad .key{font-size:15px;height:31px}.keypad .word{font-size:9px}.keypad .number{background:linear-gradient(#2b3440,#171f2b);font-size:19px}.keypad .enter{background:linear-gradient(#527bba,#375e99);font-size:9px}.model{color:#abb4c0;font-size:8px;text-align:center;letter-spacing:2px;margin-top:14px}.stage-foot{position:relative;display:flex;justify-content:center;gap:8px;align-items:center;color:#7b8798;font-size:10px;padding-bottom:17px}.stage-foot kbd{border:1px solid #c8d0dc;background:#f4f6f9;border-radius:3px;padding:2px 4px;font-size:9px}.panel{background:var(--panel);border:1px solid var(--border);border-radius:12px;overflow:hidden;margin-bottom:17px}.panel-heading{padding:18px 20px 14px;font-size:13px;font-weight:bold;display:flex;justify-content:space-between;align-items:center}.panel-heading span{font-size:9px;color:var(--muted);font-weight:normal}.view-tabs{margin:0 17px 17px;padding:4px;display:flex;background:var(--bg);border-radius:7px}.view-tabs button{flex:1;border:0;background:none;font-size:11px;color:var(--muted);border-radius:5px;padding:9px}.view-tabs .active{background:var(--panel);color:var(--blue);box-shadow:0 1px 4px #162d4c15}.preview-list{padding:0 19px 6px}.preview-list button{width:100%;border:0;border-top:1px solid var(--border);background:none;padding:14px 0;text-align:left;display:flex;justify-content:space-between;color:var(--ink)}.preview-list b{font-size:12px;font-weight:400;font-family:Georgia,serif}.preview-list button span{color:#8694aa}.preview-list button:hover{color:var(--blue)}.hint{padding:0 19px 17px;font-size:10px;line-height:1.6;color:var(--muted)}.shortcuts{padding:0 20px 8px}.shortcut{display:flex;justify-content:space-between;padding:10px 0;border-top:1px solid var(--border);font-size:11px;color:var(--muted)}kbd{font:10px Arial;background:var(--bg);border:1px solid var(--border);border-radius:4px;padding:3px 6px;color:var(--ink)}.notice{padding:17px 19px;background:#edf2fc;border:1px solid #dbe5fa;border-radius:11px;color:#5f7293;font-size:11px;line-height:1.7}.notice strong{display:block;color:#31578e;font-size:12px;margin-bottom:5px}.bottom{display:grid;grid-template-columns:1fr 1fr 1fr;gap:25px;margin:33px 0 31px}.bottom article{border-left:2px solid #d6deea;padding-left:15px}.bottom h3{font-size:12px;margin:0 0 7px}.bottom p{font-size:11px;line-height:1.7;color:var(--muted);margin:0}footer{border-top:1px solid var(--border);padding:21px 0 26px;display:flex;justify-content:space-between;font-size:10px;color:var(--muted)}footer a{color:var(--blue)}dialog{border:1px solid var(--border);border-radius:15px;padding:25px;max-width:440px;background:var(--panel);color:var(--ink);line-height:1.7}dialog::backdrop{background:#13233666}dialog h2{font-size:20px}dialog button{padding:8px 16px;background:var(--blue);color:white;border:0;border-radius:6px}body.dark{--bg:#141c28;--ink:#e0e7f1;--muted:#9aa8bc;--border:#303d50;--panel:#1d2838}body.dark .stage{background:#263448;border-color:#34435a}body.dark .toolbar{background:#202d40;border-color:#34435a}body.dark .notice{background:#22324e;border-color:#364c6e;color:#aebed7}body.dark .notice strong{color:#adc9f3}body.dark .badge{background:#273c60;color:#b3ccf4}.expanded{position:fixed!important;inset:10px;z-index:9;overflow:auto}.expanded .calculator{margin:30px auto}.graph{display:none;width:100%;height:100%;min-height:95px}.lcd.graphing .lcd-content{padding:0;position:relative}.lcd.graphing .graph{display:block}.lcd.graphing .screen-note,.lcd.graphing .equation,.lcd.graphing .result,.lcd.graphing .entry{display:none}@media(min-width:1400px){main{padding-top:48px}.calculator{margin-top:30px;margin-bottom:33px}}@media(max-width:900px){.workspace{grid-template-columns:minmax(370px,1fr) 260px;gap:17px}main{padding:30px 22px 0}.intro h1{font-size:28px}.intro .badge{display:none}}@media(max-width:700px){header{height:66px;padding:0 19px}nav{gap:14px}nav a:first-child{display:none}.brand{font-size:15px}.brand small{font-size:8px}.workspace{display:flex;flex-direction:column}.stage,aside{width:100%}.intro{margin-bottom:24px}.intro h1{font-size:26px}.intro p{font-size:12px;max-width:300px}main{padding:28px 15px 0}aside{display:grid;grid-template-columns:1fr;gap:0}.bottom{grid-template-columns:1fr;gap:20px;margin-top:15px}.calculator{width:326px;padding:19px 19px 22px}.stage-foot{font-size:9px}.toolbar{padding:0 12px}footer{gap:20px;line-height:1.7}.eyebrow{font-size:9px}.panel:first-child{margin-top:5px}}@media(max-width:360px){.calculator{width:296px;padding:18px 15px}.keypad{gap:15px 6px}.brand small{display:none}}

/* Titanium housing and physical keypad, matched to the supplied reference. */
.calculator{width:370px;padding:20px 29px 48px;margin:30px auto 35px;background:linear-gradient(98deg,#11191e 0%,#394148 4%,#101518 8%,#21272b 92%,#535a5d 97%,#171b1e);border:2px solid #151a1c;border-radius:44% 44% 27% 27% / 5% 5% 12% 12%;box-shadow:inset 2px 1px 2px #899299,inset -3px -5px 5px #050809,0 20px 28px #18233140;isolation:isolate}
.calculator:before{content:'';position:absolute;z-index:-1;inset:10px 14px 13px;border-radius:44% 44% 29% 29% / 6% 6% 13% 13%;background:linear-gradient(100deg,#858c8e,#a0a5a4 17%,#898d8d 48%,#9b9d98 80%,#747a7c);border:1px solid #bbc0ba;box-shadow:inset 3px 0 5px #e2e4dd65,inset -3px -3px 5px #353e40}
.calc-brand{display:block;text-align:center;margin:0 0 17px;font:700 21px Georgia,serif;color:#f4f4e8;text-shadow:0 1px 1px #595e5e}.calc-brand span{font-weight:400}.calc-brand small{display:block;color:#252d2e;font:bold 11px Georgia,serif;letter-spacing:0;margin-top:4px;text-shadow:none}
.lcd-frame{padding:8px 7px 10px;background:linear-gradient(100deg,#575f5e,#242f31 6%,#495252 95%,#a7aeaa);border-radius:4px 4px 9px 9px;border:1px solid #bac2bb;box-shadow:0 2px 1px #d8d9cc,inset 1px 3px 6px #152023}
.lcd{height:180px;background:#9da783;color:#303b2b;box-shadow:inset 3px 5px 9px #3a493980,inset -3px 0 3px #6c7758}.lcd-menu{font-size:8px;padding:6px 2px 3px}.lcd-content{padding:10px}.lcd-status{padding:5px;font-size:8px}.screen-note{color:#526044;font-size:8px}
.functions{gap:14px;margin:29px 0 25px;align-items:start}.functions button{position:relative;justify-self:center;width:40px;height:40px;border:2px solid #303a3c;border-bottom:3px solid #182025;border-radius:50%;background:linear-gradient(125deg,#a6b0b1,#737b7e 55%,#666d70);box-shadow:0 2px 2px #273032,0 0 0 3px #697477,inset 1px 1px 1px #e2e4d7;color:#fff;font-size:16px;font-weight:bold;text-shadow:0 1px 1px #343c42}.functions button:nth-child(2),.functions button:nth-child(4){margin-top:7px}.functions button:nth-child(3){margin-top:10px}.functions small{position:absolute;bottom:calc(100% + 10px);left:50%;transform:translateX(-50%);font:700 8px Arial;white-space:nowrap;color:#f5f7d4;text-shadow:none}.functions small em{font-style:normal;color:#b6e9ff}
.controls{gap:9px;margin-bottom:0;min-height:92px}.controlkeys{gap:20px 9px}.key{height:31px;border-radius:47%;border:1px solid #293235;border-bottom:3px solid #20282a;background:linear-gradient(130deg,#aab1af,#818786 50%,#6c7272);box-shadow:0 1px 2px #263034,0 0 0 2px #737e80,inset 1px 1px 1px #e5e7dc;color:#f8f8f0;font:700 11px 'Arial Narrow',Arial,sans-serif;text-shadow:0 1px 1px #535b61;transform:rotate(3deg)}.key small{font:700 8px 'Arial Narrow',Arial,sans-serif;top:-14px;color:#c4edff;text-shadow:none}.key small .alt{color:#f5f6d4;margin-left:5px}.second{background:linear-gradient(135deg,#b6e5ee,#7db2c7);font-size:12px}.diamond{background:linear-gradient(135deg,#f5f5bb,#caca86);color:#4c626a;text-shadow:none}.alpha{background:linear-gradient(135deg,#ecebdb,#bdbdb0);color:#424953;text-shadow:none}.apps{background:linear-gradient(#434649,#262b30);color:#c79dd7}.controlkeys .key:nth-child(2){font-size:23px;box-shadow:inset 0 0 0 2px #e1e7df,0 2px 2px #263034}.controlkeys .key:nth-child(3){background:linear-gradient(#464e51,#222c32)}
.dpad{width:112px;height:108px;margin:-6px -6px 0 0}.dpad:before{content:'';position:absolute;width:39px;height:101px;left:37px;top:3px;border-radius:48%;background:linear-gradient(90deg,#0e1c23,#3a4347,#14222b);box-shadow:0 0 0 3px #66747a,inset 1px 1px 1px #c3c6b7}.dpad button{background:linear-gradient(120deg,#28353d,#111a21);border:2px solid #1c292e;box-shadow:inset 1px 1px 1px #a1acb0,0 1px 2px #15242a;color:#f7f7e6;width:36px;height:36px;border-radius:50%;font-size:16px}.dpad button:nth-child(1){left:39px;top:0;height:43px;border-radius:55% 55% 35% 35%}.dpad button:nth-child(4){left:39px;bottom:0;height:43px;border-radius:35% 35% 55% 55%}.dpad button:nth-child(2){left:0;top:37px}.dpad button:nth-child(3){right:0;top:37px}
.keypad{gap:19px 10px;margin-top:18px}.keypad .key{height:32px;font-size:18px}.keypad .word{font-size:10px}.keypad .number{background:linear-gradient(130deg,#303333,#161b20 60%,#242a2e);border-radius:35% 15% 19% 35%;font-size:23px;font-weight:400;transform:rotate(2deg);box-shadow:inset 1px 1px 1px #a0a8a5,0 1px 2px #28333a,0 0 0 2px #727b7e}.keypad .number:nth-child(5n+3){border-radius:12%}.keypad .number:nth-child(5n+4){border-radius:15% 40% 40% 15%}.keypad .key:nth-child(5n+5){transform:rotate(-8deg)}.keypad .enter{background:linear-gradient(130deg,#b6bab1,#757c7b);font-size:11px;height:45px;border-radius:38% 25% 48% 28%;margin-top:-1px}.keypad .key:nth-last-child(5){height:46px;border-radius:30% 35% 45% 50%;font-size:11px}.model{display:none}
@media(max-width:700px){.calculator{width:340px;padding:19px 25px 43px}.lcd{height:169px}.functions{gap:10px}.functions button{width:36px;height:37px}.dpad{width:102px;margin-right:-3px}.dpad:before{left:33px}.dpad button:nth-child(1),.dpad button:nth-child(4){left:34px}.keypad{column-gap:9px}}
@media(max-width:390px){.calculator{width:300px;padding:18px 23px 38px}.lcd{height:154px}.functions{gap:8px}.functions button{width:31px;height:33px;font-size:14px}.functions small{font-size:7px}.controlkeys{column-gap:7px}.key{font-size:9px}.keypad{column-gap:8px}.keypad .word{font-size:8px}.key small{font-size:7px}.dpad{width:88px}.dpad:before{left:29px;width:32px}.dpad button{width:29px;height:34px}.dpad button:nth-child(1),.dpad button:nth-child(4){left:30px}.calc-brand{font-size:20px}}


.site-nav{display:flex;gap:22px;align-items:center}.article{max-width:850px;margin:48px auto;color:var(--ink);font-size:16px;line-height:1.85}.article h2{font-size:28px;margin-top:46px;letter-spacing:-.7px}.article h3{font-size:20px;margin-top:28px}.article a{color:var(--blue);text-decoration:underline}.article img{max-width:100%;height:auto;border-radius:14px}.article table{border-collapse:collapse;width:100%;display:block;overflow:auto}.article th,.article td{padding:12px;border:1px solid var(--border)}.article figure{margin:24px 0}.article p{color:var(--muted)}.article summary{cursor:pointer;font-weight:700}.site-logo{max-width:190px;max-height:46px}.input{width:100%;padding:12px;border:1px solid var(--border);border-radius:8px;background:var(--panel);color:var(--ink);font:inherit}.field{display:block;margin:17px 0}.field>span{display:block;font-weight:bold;margin-bottom:8px}.btn{display:inline-block;background:var(--blue);color:white;border:0;border-radius:8px;padding:12px 18px;font:inherit;cursor:pointer}.muted{color:var(--muted)}.flash{padding:15px;background:#e6f3e9;color:#215a36;border-radius:9px}.error{color:#a72c2c}.calculator canvas{display:block;width:100%;height:100%;image-rendering:pixelated}.lcd{height:auto;aspect-ratio:8/5}.engine-tools{display:flex;flex-wrap:wrap;gap:8px;padding:0 18px 18px}.engine-tools button{padding:8px 10px;border:1px solid var(--border);background:var(--panel);border-radius:6px;color:var(--ink)}.key[aria-pressed=true]{box-shadow:0 0 0 3px #b5e3ff}.compatibility{font-size:12px;line-height:1.7}.preview-banner{padding:12px;background:#fff4da;color:#76571c;text-align:center}.article img.missing{display:none}@media(max-width:700px){.site-nav{gap:10px;font-size:11px}.article{font-size:15px}.article h2{font-size:24px}.brand small{display:none}.site-nav a:nth-child(2){display:none}}@media(prefers-reduced-motion:reduce){*{animation:none!important;scroll-behavior:auto!important}}
