:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:#e5eaf5;background:#0e121b;font-synthesis:none;-webkit-tap-highlight-color:transparent}*{box-sizing:border-box}body{margin:0;min-height:100vh;min-width:300px;background:radial-gradient(ellipse at 50% -20%,#222d40 0%,transparent 60%),#0e121b}button,input,textarea,select{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid #559eea;outline-offset:2px}button:disabled{opacity:.4;cursor:not-allowed}.ambient{position:fixed;pointer-events:none;border-radius:9999px;filter:blur(80px);opacity:.16;z-index:0}.ambient-a{width:280px;height:280px;top:110px;left:-160px;background:#418cfe}.ambient-b{width:340px;height:340px;right:-200px;top:380px;background:#735fee}.site-head{max-width:1440px;margin:0 auto;padding:25px 48px 12px;display:flex;justify-content:space-between;align-items:center;position:relative;z-index:2}.brand{display:flex;gap:11px;align-items:center}.brand-icon{width:42px;height:42px;display:grid;place-items:center;background:linear-gradient(145deg,#508bef,#7758db);border:1px solid #8497d7;border-radius:12px;font-weight:800;font-size:24px;color:white;box-shadow:0 9px 30px #39599b3f}.brand strong{font-size:17px;letter-spacing:1px;display:block}.brand-accent{color:#96acff}.brand small{color:#8590a3;font-size:9px;letter-spacing:2px;font-weight:700;display:block;margin-top:4px}.head-actions{display:flex;align-items:center;gap:12px}.offline-indicator{font-size:10px;font-weight:800;letter-spacing:1.1px;color:#72d7b8;white-space:nowrap}.offline-indicator>span{color:#9caab9}.offline-indicator.offline{color:#f5ba65}.top-button{padding:10px 15px;border:1px solid #353d4f;border-radius:9px;color:#dce6f4;background:#202735;font-size:12px;font-weight:700}.top-button:hover{background:#2d384c}.install-button{background:#4a67b7;border-color:#657ece}.layout{position:relative;z-index:1;max-width:1330px;margin:0 auto;padding:14px 34px 80px;display:grid;grid-template-columns:minmax(420px,570px) minmax(335px,1fr);gap:clamp(28px,6vw,95px);align-items:start}.device-column{display:flex;flex-direction:column;align-items:center}.device-caption{width:100%;max-width:500px;margin:24px 0 25px}.eyebrow,.workspace-overline{font-size:10px;letter-spacing:2px;font-weight:800;color:#85a0c6}.device-caption h1{font-size:clamp(27px,3.1vw,39px);letter-spacing:-1.6px;line-height:1.15;font-weight:800;margin:10px 0 13px}.device-caption h1 em{font-style:normal;color:#86a6fc}.device-caption p,.workspace-title p{color:#9eabbc;font-size:13px;line-height:1.55;margin:0}.calculator-shell{width:100%;max-width:495px;min-width:0;border-radius:21px 21px 38px 38px;background:linear-gradient(90deg,#7b828c 0%,#d0d4d8 4%,#a9b0b9 50%,#c3c9d1 93%,#797f87 100%);padding:0 12px 18px;box-shadow:inset 0 2px 2px #ffffffc0,inset -2px -1px 6px #3a404898,0 30px 50px #000b,0 0 0 1px #b9c0c9,0 3px 0 2px #3d4249;position:relative}.calc-head{background:linear-gradient(112deg,#1b1d25 0%,#12151d 52%,#212630 100%);border-radius:16px 16px 15px 15px;box-shadow:inset 0 1px #404754,0 6px 12px #3137404f;margin:0 -12px;padding:13px 16px 16px}.calc-engraving{display:flex;justify-content:space-between;align-items:center;padding:0 6px 12px}.engraving-title{font-size:15px;color:#c5c9d3;font-weight:700;letter-spacing:2.6px}.engraving-title span{color:#5b8ac8;margin:0 2px}.engraving-sub{font-size:9px;letter-spacing:.1px;color:#8d94a2}.calc-dot-logo{position:absolute;right:21px;top:35px;font-size:0}.lcd{height:264px;background:#f6f8fd;border:4px solid #080c14;border-radius:5px;box-shadow:0 0 0 1px #323b4a,inset 0 1px 3px #323b4a40;overflow:hidden;display:flex;flex-direction:column;color:#192338}.lcd-status{height:24px;display:flex;align-items:center;justify-content:space-between;padding:0 9px;background:#354b8b;color:#fff;font-size:9px;letter-spacing:.4px;flex-shrink:0}.lcd-mode{font-weight:900}.lcd-title{font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:150px}.status-right{display:flex;gap:11px;align-items:center;font-size:10px}.battery{font-size:9px;letter-spacing:-1px;color:#88ffb3}.screen-content{position:relative;flex:1;overflow:auto;background:linear-gradient(180deg,#fafbfd,#eef3fd);scrollbar-width:thin;scrollbar-color:#9aabc6 transparent}.lcd-softkeys{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));height:25px;background:#292e3d;flex-shrink:0}.lcd-softkeys button{background:linear-gradient(#535966,#292f3a);color:#fff;border:0;border-right:1px solid #131925;letter-spacing:.2px;font-size:9px;font-weight:750;padding:0 1px}.lcd-softkeys button:hover{background:#4766a3}.lcd-softkeys button:last-child{border-right:0}.calc-history{height:100%;overflow:auto;padding:9px 12px;scrollbar-width:thin}.calc-hint{color:#69819b;font-size:12px;margin:8px 0 12px;line-height:1.55}.calc-line{margin-bottom:10px;padding-bottom:7px;border-bottom:1px solid #dce5f3;cursor:pointer}.calc-line .formula{font-family:"Consolas",monospace;font-size:12px;line-height:1.35;color:#405478;overflow-wrap:anywhere}.calc-line .formula::before{content:'›';margin-right:6px;color:#4c83e8;font-weight:800}.calc-line .answer{font-family:"Cambria Math","Segoe UI",sans-serif;text-align:right;font-size:17px;color:#17264b;overflow-wrap:anywhere;font-weight:650;padding:3px 0 0}.lcd-editor-wrap{flex-shrink:0;border-top:1px solid #c8d6eb;background:#fff;padding:4px 9px 6px;display:flex;gap:5px;align-items:center}.editor-chevron{color:#496ad8;font-weight:800;font-size:17px}.lcd-editor{border:0;outline:0;width:100%;background:transparent;color:#142647;min-height:25px;font-family:Consolas,"Courier New",monospace;font-size:15px;padding:3px;resize:none;overflow:auto;line-height:1.3;white-space:nowrap}.lcd-editor:focus-visible{outline:none}.calc-entry-screen{display:flex;flex-direction:column;height:100%}.calc-entry-screen .calc-history{flex:1;min-height:0}.screen-app{padding:12px;min-height:100%;font-size:12px}.screen-app h3{font-size:14px;color:#152950;margin:0 0 8px}.screen-app p{color:#64758b;margin:0 0 10px;line-height:1.5}.app-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.app-item{background:#fff;border:1px solid #d7e2f0;border-radius:5px;color:#27395a;font-size:10px;font-weight:750;padding:7px 3px}.app-item span{display:block;font-size:20px;color:#476ec5;margin-bottom:3px}.app-item:hover{border-color:#5b88e2;background:#e9f1ff}.mini-input{border:1px solid #c9d4e3;color:#1c3051;padding:6px;border-radius:4px;width:100%;min-width:0;font-family:Consolas,monospace;background:#fff;font-size:12px}.input-caption{display:block;font-size:10px;font-weight:700;margin-bottom:3px;color:#556781}.screen-row{display:flex;gap:6px;margin:7px 0}.screen-row>label{flex:1;min-width:0}.screen-submit{border:0;background:#4167b2;color:white;border-radius:4px;padding:6px 10px;font-size:11px;font-weight:750}.screen-submit:hover{background:#284a90}.screen-submit.secondary{color:#3a5395;background:#e3edfc}.screen-result{background:#e1ebfb;border:1px solid #c7d7ed;border-radius:4px;color:#1c3a72;font-family:Consolas,monospace;padding:7px;margin-top:8px;white-space:pre-wrap;overflow-wrap:anywhere;max-height:85px;overflow:auto}.graph-canvas{display:block;width:100%;height:138px;background:#fff;border:1px solid #c7d6e7;border-radius:3px;touch-action:none}.table-scroller{max-height:126px;overflow:auto;border:1px solid #d1dfee}.value-table{border-collapse:collapse;font-size:11px;width:100%;font-family:Consolas,monospace}.value-table th{background:#e0e8f4}.value-table th,.value-table td{border:1px solid #d5e1ed;padding:4px 6px;text-align:right}.matrix-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}.matrix-grid input{text-align:center;padding:4px}.hardware-controls{display:grid;grid-template-columns:58px 58px 1fr 58px 58px;gap:7px;align-items:center;margin-top:17px;padding:0 1px}.control-cluster{display:flex;flex-direction:column;gap:7px}.control-button{height:31px;min-width:0;background:linear-gradient(170deg,#343b49,#131823);border:1px solid #48505c;border-bottom:2px solid #080b11;box-shadow:inset 0 1px 1px #7f849048;color:#f5f5f6;border-radius:5px;font-size:10px;font-weight:700;line-height:1.1;padding:2px}.control-button:hover{background:#405173}.control-button small{display:block;margin-top:2px;font-size:6px;color:#80a9e0;letter-spacing:.35px}.cas-control{color:#ddf5ff}.dpad{width:100%;max-width:95px;aspect-ratio:1;justify-self:center;border-radius:50%;display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(3,1fr);background:radial-gradient(circle at 44% 43%,#3f4652,#151923 65%,#0b0d12 70%);border:3px solid #080b13;box-shadow:0 2px 2px #000,inset 0 1px 3px #8a8f9a50;padding:5px}.dpad button{border:0;background:transparent;color:#8992a1;font-size:10px}.dpad button:hover{color:white}.dpad-up{grid-column:2;grid-row:1}.dpad-left{grid-column:1;grid-row:2}.dpad-center{grid-column:2;grid-row:2;border-radius:50%;background:#1d2330!important;color:#5b6879!important}.dpad-right{grid-column:3;grid-row:2}.dpad-down{grid-column:2;grid-row:3}.keypad{padding:15px 7px 0}.keys-six,.keys-five{display:grid;gap:7px 7px}.keys-six{grid-template-columns:repeat(6,minmax(0,1fr));margin-bottom:8px}.keys-five{grid-template-columns:repeat(5,minmax(0,1fr))}.key{min-width:0;height:47px;position:relative;padding:1px 2px 6px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;border-radius:4px 4px 5px 5px;background:linear-gradient(#f9fafc 0%,#e0e5eb 58%,#c4cad3 100%);border:1px solid #89929d;border-bottom:3px solid #747d89;box-shadow:inset 0 1px #fff,0 2px 1px #6f7680b5;color:#202b3c;font-weight:850;font-size:14px;line-height:1;user-select:none}.key small{font-size:6px;font-weight:800;color:#4b85bc;letter-spacing:.35px}.key:hover{filter:brightness(1.06);transform:translateY(-1px)}.key:active,.key.pressed{transform:translateY(2px);border-bottom-width:1px;box-shadow:inset 0 2px 5px #0003}.key-number{background:linear-gradient(#f3f4f5,#d3d6dc 65%,#afb5bf);font-size:17px}.key-operator{background:linear-gradient(#f7f8f8,#dde1e5 65%,#bcc5cf);font-size:20px}.key-enter{background:linear-gradient(#fff,#eef3f7 60%,#c3ccd4);grid-column:auto;font-size:12px}.key-special{height:42px;font-size:12px}.key-special small{font-size:6px}.key-alpha{background:linear-gradient(#fcab5d,#ed8532 70%,#a44f23);color:#fff;border-color:#9e5b34}.key-alpha small{color:#ffe1bc}.key-shift{background:linear-gradient(#89d6f5,#50a6d8 70%,#2470a1);color:#fff;border-color:#2876a3}.key-shift small{color:#ebffff}.key-power{font-size:12px}.keypad-stamp{display:flex;justify-content:space-between;font-size:7px;letter-spacing:1.1px;font-weight:850;color:#606873;margin-top:16px;padding:0 3px}.key-shift.active,.key-alpha.active{outline:2px solid #224f75;filter:saturate(1.5)}.device-foot{display:flex;justify-content:space-between;width:100%;max-width:490px;padding:18px 0;color:#8e9ab0;font-size:9px;font-weight:800;letter-spacing:.6px;gap:7px}.workspace{padding-top:47px;min-width:0}.workspace-title{display:flex;justify-content:space-between;align-items:center;margin:9px 0 22px}.workspace-title h2{margin:0 0 3px;font-size:29px;letter-spacing:-1px}.icon-button{width:41px;height:41px;background:#222c3b;border:1px solid #344357;border-radius:11px;color:#b1bdcd;font-size:20px}.icon-button:hover{background:#30415b}.mode-picker{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-bottom:17px}.mode-tile{color:#d6dfeb;min-height:95px;text-align:left;padding:12px 12px 10px;background:linear-gradient(155deg,#202a39,#19212e);border:1px solid #303d50;border-radius:12px;display:flex;flex-direction:column;align-items:flex-start;gap:3px}.mode-tile:hover{border-color:#678be2}.mode-tile.active{background:linear-gradient(145deg,#314985,#263761);border-color:#6080c0;box-shadow:inset 0 1px #ffffff1a,0 8px 18px #101b3655}.mode-tile span{font-size:25px;color:#8db0ff;line-height:1.1;margin-bottom:4px}.mode-tile strong{font-size:12px}.mode-tile small{font-size:10px;color:#91a2bc}.workspace-card{border:1px solid #303a4d;background:linear-gradient(170deg,#1c2533,#181f2c);padding:19px 19px 18px;border-radius:14px;margin-bottom:15px;box-shadow:inset 0 1px #ffffff08}.card-head{display:flex;justify-content:space-between;align-items:center}.card-head h3{font-size:16px;margin:7px 0 0;letter-spacing:-.3px}.card-symbol{font-size:22px;color:#839ecf}.workspace-card>p{color:#a0adbf;font-size:12px;line-height:1.55}.samples{display:flex;flex-wrap:wrap;gap:7px;margin-top:15px}.sample-btn{background:#29364a;color:#d7e6ff;border:1px solid #405270;border-radius:7px;padding:8px 10px;font-size:11px;font-family:Consolas,monospace;text-align:left;max-width:100%;overflow-wrap:anywhere}.sample-btn:hover{border-color:#88aaff;background:#35496a}.text-button{border:0;background:transparent;color:#9cb6e9;font-weight:750;font-size:12px}.side-history{display:flex;flex-direction:column;gap:0;max-height:290px;overflow:auto}.history-empty{font-size:12px;color:#8093ab;line-height:1.5;margin:15px 0 5px}.side-item{padding:9px 0;border-bottom:1px solid #303c4d;display:flex;gap:12px;justify-content:space-between;align-items:center}.side-item:last-child{border-bottom:0}.side-item button{background:transparent;border:0;color:inherit;text-align:left;min-width:0;flex:1;overflow:hidden}.side-item .side-expression{font-family:Consolas,monospace;display:block;color:#91a1b7;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;font-size:11px}.side-item .side-result{display:block;color:#ebf2ff;font-size:13px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;margin-top:4px}.side-item .copy-btn{flex:0;width:27px;height:27px;border:1px solid #39475c;border-radius:6px;text-align:center;color:#9aaed0}.shortcuts .shortcut{display:flex;justify-content:space-between;align-items:center;font-size:12px;color:#9cabbf;margin-top:11px}.shortcut kbd{border:1px solid #465269;background:#293348;border-radius:5px;color:#d5ddef;padding:4px 6px;font-size:11px}.small-print{font-size:11px;line-height:1.65;color:#6f8097;margin:18px 0}.toast{position:fixed;bottom:22px;left:50%;transform:translate(-50%,25px);background:#f5f9ff;border:1px solid #c5d6ed;color:#183253;box-shadow:0 15px 45px #0007;z-index:20;border-radius:9px;padding:11px 17px;font-size:12px;font-weight:700;opacity:0;pointer-events:none;transition:.22s;max-width:min(92vw,520px)}.toast.show{opacity:1;transform:translate(-50%,0)}.modal{border:1px solid #4d607e;padding:0;border-radius:15px;max-width:min(92vw,550px);max-height:85vh;color:#e7edfa;background:#1c2635;box-shadow:0 22px 100px #000c}.modal::backdrop{background:#070b13c9;backdrop-filter:blur(6px)}.modal-inner{padding:22px;overflow:auto;max-height:85vh}.dialog-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px}.dialog-top h2{font-size:20px;margin:0}.modal-close{border:0;background:#29374c;color:white;border-radius:7px;padding:7px 10px}.dialog-copy{color:#a9b9cd;font-size:13px;line-height:1.6}.setting-row{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:15px 0;font-size:13px}.setting-row select{background:#29364d;border:1px solid #4a617d;color:#f1f5ff;border-radius:6px;padding:8px}.dialog-list{padding-left:17px;line-height:1.8;font-size:12px;color:#b8c7dd}.dialog-command{display:block;font-family:Consolas,monospace;color:#bfd2ff;font-size:12px}.dialog-action{width:100%;margin-top:13px;border:0;background:#436bd0;color:#fff;font-size:12px;border-radius:7px;padding:11px;font-weight:800}
@media(min-width:1250px){.workspace{max-width:475px}}
@media(max-width:940px){.layout{grid-template-columns:1fr;max-width:660px;padding:10px 18px 60px;gap:25px}.site-head{padding:18px 22px 0}.device-caption{margin:17px 0 22px}.workspace{padding-top:8px}.device-caption h1{font-size:32px}.workspace-title h2{font-size:26px}.small-print{margin-bottom:0}}
@media(max-width:520px){.site-head{padding:15px 14px 0}.brand-icon{width:35px;height:35px;font-size:21px}.brand strong{font-size:14px}.brand small{font-size:7px;letter-spacing:1px}.head-actions{gap:5px}.top-button{padding:8px;font-size:12px}.head-actions .top-button span{display:none}.offline-indicator{font-size:14px}.offline-indicator span{display:none}.layout{padding:10px 8px 50px}.device-caption{padding:0 10px;margin:13px 0 21px}.device-caption h1{font-size:27px;letter-spacing:-1.1px}.device-caption p{font-size:12px}.calculator-shell{padding:0 9px 14px;border-radius:17px 17px 27px 27px}.calc-head{margin:0 -9px;padding:10px 11px 13px;border-radius:15px}.engraving-title{font-size:12px;letter-spacing:1.6px}.engraving-sub{font-size:7px}.calc-engraving{padding:0 3px 9px}.lcd{height:252px;border-width:3px}.hardware-controls{grid-template-columns:49px 49px 1fr 49px 49px;gap:4px;margin-top:13px}.control-button{height:30px;font-size:9px}.control-button small{font-size:5px}.dpad{max-width:80px}.keypad{padding:12px 4px 0}.keys-five,.keys-six{gap:5px}.key{height:44px;font-size:13px;padding:2px 1px 5px}.key-number{font-size:16px}.key-special{height:38px;font-size:10px}.key small,.key-special small{font-size:5px;letter-spacing:0}.key-enter{font-size:12px}.keypad-stamp{font-size:6px;margin-top:12px}.device-foot{padding:14px 10px;font-size:7px}.workspace{padding:2px 8px}.mode-tile{min-height:82px;padding:10px}.workspace-card{padding:16px}}
@media(max-width:350px){.hardware-controls{grid-template-columns:43px 43px 1fr 43px 43px}.lcd-status{font-size:8px}.lcd-title{max-width:100px}.key{height:40px}.key-special{height:35px}.key small{font-size:4px}.dpad{max-width:65px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
/* v2 Engineering Edition: responsive graph analytics and numerical-method workspace */
.plot-inputs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px 9px;margin:8px 0}.plot-inputs label{min-width:0}.plot-inputs .mini-input{width:100%}.curve-color{width:9px;height:9px;display:inline-block;border-radius:50%;margin-right:5px}.curve-0{background:#4163d8}.curve-1{background:#e46678}.curve-2{background:#149d9a}.curve-3{background:#b06edb}.graph-analysis{border:1px solid #ccd7e8;background:#f5f8fd;border-radius:8px;padding:10px;margin-top:9px}.graph-analysis>b{display:block;color:#506381;font-size:9px;letter-spacing:1px;margin-bottom:5px}.graph-analysis .screen-row{flex-wrap:wrap;gap:6px}.graph-analysis .screen-row>label{flex:1;min-width:70px}.graph-analysis .screen-submit{align-self:flex-end}.graph-analysis .screen-result{white-space:pre-wrap;overflow-wrap:anywhere;font-size:11px;margin-top:8px}.graph-big{height:380px!important;max-height:50vh!important;width:100%}.modal:has(.graph-big){max-width:min(96vw,850px);width:850px}.eng-app .eng-heading{display:flex;gap:7px;justify-content:space-between;align-items:center}.eng-app .eng-heading h3{margin:0 0 6px}.eng-chip{font-size:8px;font-weight:800;letter-spacing:.45px;border-radius:50px;padding:4px 6px;background:#dce8fe;color:#31568d}.eng-caption{font-size:10px;color:#5c6980;line-height:1.4;margin:6px 0 9px}.eng-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.eng-fields label{min-width:0}.eng-fields label:first-child{grid-column:span 2}.eng-fields .mini-input{min-width:0;width:100%}.eng-run{margin:10px 0;width:100%;font-weight:800}.eng-output{background:#f1f6ff;border:1px solid #c4d4ed;border-radius:8px;padding:10px;margin:4px 0 10px;overflow-wrap:anywhere}.eng-output>strong{font-size:11px;color:#174682}.eng-output>p{font-size:10px;color:#536985;line-height:1.35;margin:6px 0}.eng-output details{margin-top:8px;color:#425577;font-size:10px}.eng-output details ol{padding-left:18px}.eng-table-wrap{width:100%;overflow:auto;max-height:160px;border:1px solid #d9e3ef;border-radius:5px}.eng-table-wrap .value-table{width:100%;white-space:nowrap;font-size:10px}.eng-table-wrap td,.eng-table-wrap th{padding:5px!important}.eng-error{color:#aa263d!important;background:#fff1f1!important}.eng-app{padding-bottom:14px!important}.eng-app label>.mini-input{background:white!important;color:#283950!important}.eng-app select.mini-input{width:100%}@media(max-width:520px){.graph-analysis{padding:7px}.plot-inputs{gap:4px}.eng-fields{gap:5px}.eng-chip{font-size:7px}.eng-table-wrap{max-height:145px}.graph-big{height:260px!important}}
.angle-inline{display:flex;align-items:center;gap:8px;justify-content:space-between;margin:4px 0 6px}.angle-inline>.input-caption{white-space:nowrap}.angle-inline select.mini-input{width:auto!important;max-width:58%;font-size:10px;padding:5px}.graph-analysis select.mini-input{font-size:10px}
.eng-run-buttons{display:flex;align-items:center;gap:6px;margin:8px 0}.eng-run-buttons .eng-run{margin:0;flex:1}.eng-run-buttons .screen-submit.secondary{white-space:nowrap}.eng-full .eng-output>strong{font-size:15px}.eng-full .eng-output>p{font-size:12px}.eng-full .eng-table-wrap{max-height:50vh}.eng-full .eng-table-wrap .value-table{font-size:12px}
/* V5 — Engineering Suite: tactile calculator preserved; large offline learning workstation. */
.suite-tile{background:linear-gradient(145deg,#253e56,#1d2d42);border-color:#46678a}.suite-tile.active{background:linear-gradient(135deg,#335d91,#253e74)}
.calculator-shell.suite-active .lcd{height:440px}.suite-app{padding:10px!important;overflow-wrap:break-word;font-family:Inter,system-ui,-apple-system,sans-serif;color:#26354b}.suite-app *{box-sizing:border-box}.suite-intro{display:flex;justify-content:space-between;gap:5px;align-items:center;margin-bottom:9px}.suite-intro h3{font-size:14px;margin:0;letter-spacing:-.25px;color:#152c4e}.suite-intro h3 small{background:#dceaff;color:#3764b3;padding:3px 6px;border-radius:20px;font-size:8px;vertical-align:middle}.suite-expand{font-size:10px;background:#e9effa;color:#315995;border:1px solid #bccfe8;border-radius:7px;padding:6px;white-space:nowrap}.suite-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:3px;border-bottom:1px solid #d9e4f3;padding-bottom:9px;margin-bottom:10px}.suite-tabs button{min-width:0;font-size:9px;font-weight:800;padding:8px 2px;border-radius:7px;background:#eff4fc;color:#5d6e88;border:1px solid transparent}.suite-tabs button.active{background:#355bb8;color:white;box-shadow:0 4px 8px #355bb830}.suite-panel{display:flex;flex-direction:column;gap:9px;min-width:0}.suite-panel p{font-size:11px;line-height:1.45;margin:0;color:#60718a}.suite-title{font-weight:800;font-size:12px;color:#182f53;display:flex;align-items:center;justify-content:space-between;gap:6px}.suite-count,.suite-tag{font-size:9px;font-weight:700;background:#e5eefb;border-radius:6px;color:#4169aa;padding:4px 6px}.suite-panel label{font-size:10px;line-height:1.5;font-weight:750;color:#4a5c79;display:block;min-width:0}.suite-panel select,.suite-panel input,.suite-panel textarea{width:100%;min-width:0;background:#fff!important;border:1px solid #cdd9ec!important;color:#172d4f!important;border-radius:7px;font-size:11px;padding:8px 6px;margin-top:3px;outline-color:#597edf}.suite-panel select{white-space:nowrap;text-overflow:ellipsis}.suite-panel textarea{resize:vertical;font-family:inherit}.suite-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;align-items:end}.suite-fields>label{min-width:0}.suite-fields>label:first-child:nth-last-child(odd){grid-column:span 2}.suite-input-group{display:grid;grid-template-columns:minmax(0,1fr) minmax(68px,.85fr);gap:5px;min-width:0}.suite-equation{background:#eaf0ff;border:1px solid #c9d9fa;color:#254b93;font-size:16px;font-weight:750;text-align:center;border-radius:8px;padding:12px 8px;overflow-wrap:anywhere}.suite-primary{width:100%;margin-top:4px;font-weight:800}.suite-note{color:#6c7c92!important;font-size:10px!important}.suite-answer{background:#edf6ff;color:#173e70;border:1px solid #bed8ef;border-radius:8px;padding:10px;line-height:1.6;overflow-wrap:anywhere}.suite-answer strong{font-size:13px;color:#1e4c8b}.suite-answer ol{margin:7px 0 0;padding-left:17px;font-size:10px;line-height:1.55;color:#405e7f}.suite-answer li{margin:3px 0}.suite-answer p{margin-top:7px}.suite-answer summary{cursor:pointer;font-weight:700;font-size:10px;color:#315f9e;margin-top:7px}.suite-section{border:1px solid #d4e0ee;border-radius:9px;padding:9px;display:flex;flex-direction:column;gap:8px;background:#f7faff}.suite-section h4{font-size:12px;color:#284b7f;margin:0}.suite-actions{display:flex;gap:6px;flex-wrap:wrap}.suite-actions .screen-submit{flex:1;white-space:nowrap;min-width:min(100%,95px);padding:8px 5px}.suite-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.suite-metrics span{background:#edf2fa;border-radius:7px;padding:8px 4px;text-align:center;color:#466184;font-size:9px;font-weight:800}.suite-question{border-radius:9px;background:#f2f6ff;border-left:3px solid #466ccd;padding:9px}.suite-question .suite-tag{display:inline-block;margin-bottom:7px}.suite-question p{color:#213859;font-size:11px;font-weight:700;line-height:1.6}.suite-correct{background:#eaf8ef;border-color:#93d3a8}.suite-correct strong{color:#217445}.suite-wrong{background:#fff4ef;border-color:#dfb5a1}.suite-wrong strong{color:#b05225}.suite-import{position:relative;text-align:center;cursor:pointer;padding:10px;border:1px dashed #7594c1;border-radius:7px;color:#2c5d9f!important;background:#f1f7ff;font-size:11px!important}.suite-import input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;height:100%;padding:0;margin:0}.suite-live-error{padding:9px;background:#fff1f2;color:#b31e41!important;border:1px solid #e4a5b5;border-radius:7px}.modal:has(#suite-large){width:min(94vw,830px);max-width:830px;max-height:92vh}.modal:has(#suite-large) .modal-inner{max-height:92vh}.suite-large .suite-app{padding:15px!important;border-radius:12px;background:#fff}.suite-large .suite-intro h3{font-size:18px}.suite-large .suite-panel{gap:12px}.suite-large .suite-tabs button{font-size:12px;padding:10px}.suite-large .suite-panel label,.suite-large .suite-panel p{font-size:13px}.suite-large .suite-panel input,.suite-large .suite-panel select,.suite-large .suite-panel textarea{font-size:14px;padding:10px}.suite-large .suite-answer ol{font-size:12px}.suite-large .suite-title{font-size:16px}
@media(max-width:520px){.calculator-shell.suite-active .lcd{height:430px}.suite-app{padding:7px!important}.suite-panel{gap:7px}.suite-tabs button{font-size:8px;padding:7px 0}.suite-fields{gap:5px}.suite-panel select,.suite-panel input{font-size:10px;padding:7px 5px}.suite-input-group{grid-template-columns:minmax(0,1fr) minmax(62px,.85fr);gap:3px}.suite-actions .screen-submit{font-size:10px;white-space:normal}.suite-large .suite-app{padding:8px!important}.suite-large .suite-tabs button{font-size:10px}.suite-large .suite-panel label,.suite-large .suite-panel p{font-size:12px}}

/* V5.2 Real Feel Edition — independent calculator-inspired design */
:root{--app-header:56px;--nav-width:100px;--app-gap:14px}
html{height:100%;overscroll-behavior:none}
body{margin:0;height:100%;height:100dvh;min-height:0!important;overflow:hidden;display:flex;flex-direction:column;background:
radial-gradient(ellipse at 54% -26%,rgba(52,84,151,.28) 0,transparent 60%),#0b111d;color:#e8ecf4;overscroll-behavior:none}
.ambient{display:none}
.site-head.appbar{position:relative;z-index:9;flex:none;max-width:none;width:100%;min-height:var(--app-header);padding:7px 16px;margin:0;background:rgba(13,20,32,.92);border-bottom:1px solid #33415c;box-shadow:0 2px 16px rgba(0,0,0,.22);backdrop-filter:blur(12px)}
.site-head.appbar .brand-icon{width:36px;height:36px;border-radius:11px;background:linear-gradient(160deg,#407fdb,#223873 72%);font-size:24px;box-shadow:inset 0 1px 1px #7ebcf2aa,0 6px 14px #172953b0}
.brand strong{font-size:16px;letter-spacing:1.2px}.brand small{font-size:8px;letter-spacing:1.5px;margin-top:3px}
.app-actions{gap:7px}.top-button{border-radius:10px;padding:8px 11px;min-height:34px}.fullscreen-toggle{font-size:22px;line-height:1;min-width:38px}.offline-indicator{font-size:9px;letter-spacing:.6px}
.layout.app-layout{position:relative;max-width:none;width:100%;margin:0;min-height:0;flex:1;overflow:hidden;display:grid;grid-template-columns:minmax(0,1fr) var(--nav-width);gap:var(--app-gap);padding:12px 14px 13px;align-items:stretch}
.device-column.app-device{min-width:0;min-height:0;width:100%;height:100%;display:flex;justify-content:center;align-items:center}
.calculator-shell{position:relative;min-width:0;max-width:1430px;width:100%;height:100%;max-height:none;overflow:hidden;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.94fr);gap:0;border-radius:25px 25px 28px 28px;border:1px solid #c6cdd8;background:linear-gradient(145deg,#c8ccd4,#aab1bc 60%,#9fa8b6);box-shadow:0 18px 44px #0009,inset 0 2px #f9fcff,inset 0 -2px #77808b;padding:8px}
.calc-head{grid-column:1;min-width:0;min-height:0;height:100%;border-radius:18px 7px 7px 18px;margin:0;padding:13px;display:flex;flex-direction:column;background:linear-gradient(140deg,#1b202b,#111620 69%,#19212d);box-shadow:inset 0 1px #58647680,inset 0 -2px #06080d}
.calc-engraving{flex:none;display:flex;padding:0 5px 11px;min-height:27px;align-items:center;gap:10px}.engraving-title{font-size:15px;letter-spacing:3px;color:#dae5ef;text-shadow:0 1px 1px #000}.engraving-title span{color:#3282cc}.engraving-sub{font-size:9px;letter-spacing:.5px;color:#a1b0c4}
.lcd{flex:1;min-height:155px;height:auto!important;border:4px solid #060b15;border-radius:7px;box-shadow:0 0 0 2px #556273,0 8px 14px #0008;overflow:hidden;background:#f4f7fe}
.lcd-status{height:28px;background:linear-gradient(90deg,#1d407f,#385bad);padding:0 10px;font-size:10px}.lcd-title{max-width:160px}.battery{color:#65ecab}.lcd-softkeys{height:29px}.lcd-softkeys button{font-size:9px}
.screen-content{min-height:0;overscroll-behavior:contain;scrollbar-width:thin}
.hardware-controls{flex:none;width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr)) minmax(80px,1.25fr) repeat(2,minmax(0,1fr));gap:6px;align-items:center;margin:11px 0 0;padding:0}
.control-cluster{display:flex;flex-direction:column;gap:5px;min-width:0}.control-button{width:100%;height:37px;min-height:0;border:1px solid #5b6472;border-bottom:2px solid #060a11;border-radius:5px;background:linear-gradient(165deg,#3f4653,#19202e);font-size:10px;font-weight:800;color:#f7f8fd;box-shadow:inset 0 1px #a5b2c455}.control-button small{font-size:6px;letter-spacing:.2px;color:#53a4e7}.dpad{width:100%;max-width:96px;aspect-ratio:1;max-height:96px;justify-self:center;background:radial-gradient(circle at 35% 25%,#5c687a 0,#1b2432 50%,#0b1018 79%);border-color:#070d15}.dpad button{color:#b4c5da}
.keypad{grid-column:2;min-width:0;min-height:0;display:flex;flex-direction:column;justify-content:center;gap:0;padding:18px 16px 11px;background:linear-gradient(100deg,rgba(255,255,255,.17),transparent 12%,transparent 92%,rgba(39,49,62,.10));border-radius:5px 18px 18px 6px}
.keys-six,.keys-five{gap:8px}.keys-six{margin-bottom:10px}
.key{height:clamp(29px,7.3vh,64px);border-radius:6px 6px 8px 8px;border:1px solid #8f98a8;border-bottom:3px solid #626d7b;background:linear-gradient(180deg,#fbfcfe 0%,#eaedf2 49%,#c6cdd7 100%);box-shadow:inset 0 1px 0 #fff,0 2px 2px #48536466;color:#131e30;font-size:17px;font-weight:830;min-width:0;padding:3px 1px 5px;gap:2px;touch-action:manipulation}
.key small{color:#3279ad;font-size:7px;letter-spacing:0;font-weight:800}.key-number{font-size:21px;background:linear-gradient(#f9fbfe,#d5dce7);color:#1a2432}.key-special{height:clamp(26px,6.2vh,55px);font-size:12px}.key-enter{font-size:14px}.key-enter,.key-operator{background:linear-gradient(#e9eef7,#bdc9dd);color:#142945}.key-shift{color:#fff!important;background:linear-gradient(#24a0df,#176ba9)!important;border-color:#1f70a4!important}.key-alpha{color:#fff!important;background:linear-gradient(#ffad46,#db671e)!important;border-color:#b45e23!important}.key-shift small,.key-alpha small{color:#eaf8ff!important}.key-power{background:linear-gradient(#3b4b61,#1d2d45)!important;color:white!important;border-color:#1c293b!important}.key-power small{color:#8bcbf7!important}.key:hover{filter:brightness(1.05)}.key:active,.key.pressed{transform:translateY(2px);border-bottom-width:1px;box-shadow:inset 0 2px 4px #0005}.keypad-stamp{margin-top:clamp(6px,1.4vh,15px);color:#5e6b7b;font-size:8px;letter-spacing:1.4px}
.calculator-shell.suite-active .lcd{height:auto!important}
.nav-shell{min-height:0;min-width:0;padding:0;position:relative;display:flex;align-items:stretch;justify-content:center}
.workspace.nav-shell .workspace-card,.workspace.nav-shell .small-print{display:none!important}
.utility-hidden{position:absolute!important;width:1px!important;height:1px!important;left:-20000px!important;overflow:hidden!important}
.mode-picker.app-nav{width:100%;height:auto;max-height:100%;display:grid;grid-template-columns:1fr;gap:7px;min-height:0;padding:7px;background:linear-gradient(150deg,#1c2737,#131a27);border:1px solid #384964;border-radius:17px;box-shadow:0 16px 32px #0006;overflow:auto;align-content:center;scrollbar-width:thin}
.mode-tile{border:1px solid #3b4c67;background:linear-gradient(#263449,#1a2637);height:clamp(53px,8vh,74px);min-height:0;padding:6px 2px;border-radius:11px;box-shadow:inset 0 1px #ffffff12;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;color:#c7d5ee}
.mode-tile span{font-size:21px;line-height:1;color:#8ebaff}.mode-tile strong{font-size:12px;line-height:1.12}.mode-tile small{font-size:8px;white-space:normal;text-align:center;line-height:1.15;color:#a5b6cc}.mode-tile.active{border-color:#6e9bea;background:linear-gradient(160deg,#345ea9,#263f75);box-shadow:inset 0 1px #b6c7fc4d,0 3px 12px #172d6290}.mode-tile.active strong,.mode-tile.active span{color:#fff}.mode-tile.active small{color:#d3dffc}
.more-toggle{display:none}.more-modes-panel[hidden]{display:none!important}.more-modes-panel{position:absolute;bottom:0;right:0;width:min(280px,80vw);padding:14px;border-radius:16px;background:#182337;border:1px solid #4e6184;box-shadow:0 8px 36px #000c;z-index:12;display:flex;flex-direction:column;gap:6px}.more-panel-title{font-size:10px;letter-spacing:1.5px;font-weight:800;color:#94b7eb;margin-bottom:5px}.more-choice{color:#e3efff;border:1px solid #374f74;background:#253650;border-radius:11px;padding:10px;text-align:left;font-weight:700;font-size:14px}.more-choice:hover,.more-choice:focus-visible{background:#314f7f}.more-choice>span{margin-left:9px}.more-choice.active{border-color:#82abf7;background:#315491}
.boot-splash{position:fixed;inset:0;z-index:99999;display:grid;place-items:center;pointer-events:none;background:radial-gradient(ellipse at 50% 34%,#233e6b 0,#0e1729 47%,#080d17 90%);transition:opacity .42s ease,visibility .42s ease}.boot-splash.dismissed{opacity:0;visibility:hidden}.boot-content{text-align:center;animation:bootRise .65s ease both}.boot-mark{height:90px;width:90px;border-radius:23px;display:grid;place-items:center;margin:0 auto 20px;background:linear-gradient(145deg,#3a8bea,#1a377d);color:#f4faff;box-shadow:0 20px 60px #0009,inset 0 1px #9cd9ff;font-size:62px;font-weight:900}.boot-name{font-size:28px;font-weight:900;letter-spacing:2.2px}.boot-name span{color:#85b3ff}.boot-sub{font-size:10px;letter-spacing:2.6px;margin:9px 0 26px;color:#94a9c9}.boot-progress{height:4px;width:142px;margin:auto;border-radius:10px;background:#294263;overflow:hidden}.boot-progress span{display:block;width:40%;height:100%;background:#70afff;border-radius:10px;animation:bootSlide 1s ease-in-out infinite alternate}@keyframes bootRise{from{opacity:0;transform:translateY(9px)}to{opacity:1;transform:translateY(0)}}@keyframes bootSlide{from{transform:translateX(-95%)}to{transform:translateX(260%)}}
/* Tablet: keep handset upright while preserving keyboard fit. */
@media(min-width:701px) and (max-width:1080px) and (orientation:portrait){
 .calculator-shell{max-width:620px;display:flex;flex-direction:column;padding:8px}.calc-head{border-radius:15px 15px 7px 7px;flex:1;min-height:0}.keypad{border-radius:6px 6px 16px 16px;flex:none;padding:11px 14px 7px}.key{height:clamp(32px,5.3vh,53px)}.key-special{height:clamp(29px,4.6vh,47px)}.lcd{min-height:140px}.hardware-controls{grid-template-columns:58px 58px 1fr 58px 58px}.dpad{max-width:75px}.mode-picker.app-nav{align-content:center}
}
/* Portrait mobile: real handset with a one-row Android navigation bar. */
@media(max-width:700px) and (orientation:portrait){
 :root{--app-header:48px}
 .site-head.appbar{min-height:var(--app-header);padding:6px 10px}.brand-icon{width:32px!important;height:32px!important;font-size:20px!important}.brand strong{font-size:14px}.brand small{display:none}.app-actions{gap:5px}.head-actions .offline-indicator{display:none}.top-button{min-height:30px;padding:5px 8px;font-size:12px}.app-actions .top-button span{display:none}.fullscreen-toggle{font-size:19px}
 .layout.app-layout{display:flex;flex-direction:column;padding:7px 7px calc(74px + env(safe-area-inset-bottom));gap:0}
 .device-column.app-device{height:100%;flex:1;min-height:0;order:1}
 .calculator-shell{width:100%;max-width:470px;height:100%;display:flex;flex-direction:column;gap:0;padding:6px;border-radius:20px 20px 22px 22px}
 .calc-head{flex:1;min-height:0;grid-column:auto;padding:9px 9px 7px;border-radius:14px 14px 7px 7px}
 .calc-engraving{min-height:22px;padding:0 3px 6px}.engraving-title{font-size:12px;letter-spacing:2px}.engraving-sub{font-size:7px;white-space:nowrap}
 .lcd{min-height:124px;height:auto!important;flex:1;border-width:3px}.lcd-status{height:21px;font-size:9px}.lcd-softkeys{height:23px}.lcd-softkeys button{font-size:7px}.lcd-title{font-size:9px}
 .hardware-controls{margin-top:7px;grid-template-columns:44px 44px minmax(55px,1fr) 44px 44px;gap:4px}
 .control-cluster{gap:3px}.control-button{height:25px;font-size:8px;padding:1px;border-radius:4px}.control-button small{font-size:5px;margin-top:1px}.dpad{max-width:65px;max-height:65px;border-width:2px;padding:3px}.dpad button{font-size:9px}
 .keypad{flex:none;grid-column:auto;min-height:0;padding:10px 5px 4px;justify-content:center;border-radius:5px 5px 16px 16px}
 .keys-six,.keys-five{gap:clamp(3px,.8vw,5px)}.keys-six{margin-bottom:6px}.key{height:clamp(30px,5.45dvh,47px);border-radius:4px 4px 6px 6px;font-size:12px;padding:1px 0 3px;border-bottom-width:2px;gap:1px}.key-number{font-size:16px}.key small{font-size:5px}.key-special{height:clamp(27px,4.6dvh,38px);font-size:9px}.key-special small{font-size:4.5px}.key-enter{font-size:11px}
 .keypad-stamp{margin-top:7px;font-size:5px;letter-spacing:.4px}
 .nav-shell{position:fixed;left:0;right:0;bottom:0;z-index:40;display:block;padding:5px 6px calc(6px + env(safe-area-inset-bottom));height:auto;width:auto;pointer-events:none}
 .mode-picker.app-nav{pointer-events:auto;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));height:60px;gap:3px;padding:4px;border-radius:15px;align-content:stretch;overflow:visible;background:#172238;border-color:#4a5e82;box-shadow:0 -7px 22px #070e1cdb}
 .mode-tile{height:100%;min-height:0;padding:2px 1px;border-radius:9px;gap:1px;border-color:transparent;background:none}.mode-tile span{font-size:19px}.mode-tile strong{font-size:10px;white-space:nowrap}.mode-tile small{display:none}.mode-tile.active{border-color:#5e83d4;background:#2e4d86;box-shadow:none}
 .mode-picker.app-nav>.nav-secondary{display:none!important}.more-toggle{display:flex!important}
 .more-modes-panel{pointer-events:auto;position:absolute;bottom:calc(73px + env(safe-area-inset-bottom));right:10px;width:min(286px,90vw)}
 .calculator-shell.suite-active .lcd{min-height:155px}
}
/* Small handset, keep all keys and navigation visible without body scrolling. */
@media(max-width:700px) and (orientation:portrait) and (max-height:720px){
 .layout.app-layout{padding-top:5px;padding-bottom:calc(65px + env(safe-area-inset-bottom))}
 .calc-head{padding:6px 7px 5px}.calc-engraving{min-height:17px;padding-bottom:4px}.lcd{min-height:94px}.hardware-controls{margin-top:5px}.control-button{height:21px}.dpad{max-width:50px;max-height:50px}
 .keypad{padding:6px 4px 3px}.key{height:clamp(25px,4.65dvh,34px);font-size:11px}.key-number{font-size:14px}.key-special{height:clamp(23px,3.95dvh,29px)}.keys-six{margin-bottom:4px}.keypad-stamp{display:none}
 .mode-picker.app-nav{height:52px}.mode-tile span{font-size:16px}.mode-tile strong{font-size:9px}.more-modes-panel{bottom:calc(61px + env(safe-area-inset-bottom))}
}
/* Landscape phone / short browser: screen + controls at left, full keypad at right. */
@media(orientation:landscape) and (max-height:630px){
 :root{--app-header:38px;--nav-width:62px;--app-gap:7px}
 .site-head.appbar{min-height:var(--app-header);padding:4px 10px}.brand-icon{width:26px!important;height:26px!important;font-size:17px!important;border-radius:7px!important}.brand strong{font-size:12px}.brand small{display:none}.app-actions{gap:4px}.offline-indicator{display:none}.top-button{min-height:25px;padding:3px 7px;font-size:11px}.app-actions .top-button span{display:none}.fullscreen-toggle{font-size:17px}
 .layout.app-layout{grid-template-columns:minmax(0,1fr) var(--nav-width);padding:5px 6px;gap:7px}
 .calculator-shell{display:grid;grid-template-columns:minmax(0,.95fr) minmax(0,1.1fr);height:100%;padding:5px;border-radius:15px}
 .calc-head{grid-column:1;min-width:0;min-height:0;height:100%;padding:5px;border-radius:11px 3px 3px 11px}
 .calc-engraving{min-height:15px;padding:0 3px 3px}.engraving-title{font-size:9px;letter-spacing:1px}.engraving-sub{display:none}.lcd{min-height:92px;border-width:2px;flex:1}.lcd-status{height:18px;font-size:8px;padding:0 4px}.lcd-title{font-size:8px}.lcd-softkeys{height:19px}.lcd-softkeys button{font-size:6px}.screen-app{padding:7px}.screen-app h3{font-size:11px}.graph-canvas{height:105px}.screen-result{max-height:75px}
 .hardware-controls{margin-top:5px;grid-template-columns:repeat(4,minmax(0,1fr));gap:3px}.dpad{display:none}.control-cluster{gap:2px}.control-button{height:23px;font-size:8px;padding:1px}.control-button small{font-size:4px;margin-top:0}
 .keypad{grid-column:2;min-height:0;padding:3px 5px 0;justify-content:center;border-radius:3px 11px 11px 3px}
 .keys-five,.keys-six{gap:3px}.keys-six{margin-bottom:4px}.key{height:clamp(20px,7.7dvh,37px);font-size:11px;border-bottom-width:2px;border-radius:4px;gap:0;padding:0 1px 1px}.key-number{font-size:13px}.key small{font-size:4px}.key-special{height:clamp(18px,6.6dvh,32px);font-size:9px}.key-special small{font-size:3.5px}.key-enter{font-size:10px}.keypad-stamp{display:none}
 .mode-picker.app-nav{display:grid;grid-template-columns:1fr;gap:2px;padding:4px;border-radius:12px;align-content:stretch;overflow:auto;scrollbar-width:none}.mode-tile{height:clamp(28px,10vh,40px);min-height:0;padding:1px;border-radius:7px}.mode-tile span{font-size:14px}.mode-tile strong{font-size:8px}.mode-tile small{display:none}.mode-picker.app-nav>.nav-secondary{display:none!important}.more-toggle{display:flex!important}
 .more-modes-panel{right:calc(100% + 6px);bottom:0;width:min(230px,65vw)}
}
@media(orientation:landscape) and (max-height:390px){
 .calc-engraving{display:none}.control-button{height:19px}.key{height:clamp(18px,7.8dvh,29px)}.key-special{height:clamp(17px,6.2dvh,23px)}.mode-tile{height:clamp(25px,9.7vh,35px)}.mode-tile span{font-size:12px}
}
@media(prefers-reduced-motion:reduce){.boot-content,.boot-progress span{animation:none}.boot-splash{transition:none}.key{transition:none}}
