:root{font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;color:#25313c;background:#aab5c1;font-synthesis:none}*{box-sizing:border-box}body{margin:0;background:repeating-linear-gradient(90deg,#adb8c5 0,#adb8c5 5px,#a6b2c1 6px,#b3bdc9 7px);min-height:100vh;padding:42px 20px}button,input{-webkit-tap-highlight-color:transparent;font:inherit}button{cursor:pointer;touch-action:manipulation}button:focus-visible,input:focus-visible{outline:3px solid #0b77cf;outline-offset:3px}.app{max-width:850px;margin:auto;border:1px solid #455364;border-radius:12px;overflow:hidden;box-shadow:0 18px 45px #29374470,0 1px 1px #ffffff99}.toolbar{height:65px;display:flex;align-items:center;justify-content:space-between;padding:0 19px;background:linear-gradient(#a9b9cd 0%,#7891ae 49%,#647fa0 50%,#536e91 100%);border-bottom:1px solid #34455c;box-shadow:inset 0 1px #e1e9f4;color:white;text-shadow:0 -1px #3e5471}.toolbar h1{font-size:23px;margin:0;font-weight:700}.badge{font-family:Georgia,serif;font-style:italic;font-size:25px;font-weight:bold}.small{color:white;border:1px solid #415672;background:linear-gradient(#8aa1bc,#4f6e94);box-shadow:inset 0 1px #bccbda,0 1px #adbbca60;border-radius:6px;font-weight:600;padding:6px 13px;font-size:18px}.workspace{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));background:#d5d8dc}.calculator{padding:22px;background:linear-gradient(110deg,#c3c7ce,#eff0f2 49%,#b8bec7);border-right:1px solid #9ba2aa}.display{border:2px solid #5d665d;border-radius:8px;background:linear-gradient(125deg,#b4bfa5,#e2e8cc 65%,#ccd7b9);padding:12px 15px;box-shadow:inset 0 3px 9px #263b4260,0 1px #fff;color:#293329}.display-top,.display-bottom{display:flex;justify-content:space-between;align-items:center;font-size:11px;min-height:17px;gap:6px}.display-top{color:#45553f}.led{width:6px;height:6px;border-radius:50%;background:#68805b;box-shadow:0 0 2px #46613c}.led.busy{background:#bc781e;box-shadow:0 0 6px #e3a035}input{display:block;width:100%;border:0;background:transparent;text-align:right;color:#3d4b38;font-size:23px;padding:12px 0 2px;border-radius:0}output{display:block;text-align:right;min-height:70px;font-family:"Courier New",monospace;font-size:56px;letter-spacing:-3px;overflow:auto;text-shadow:0 1px #f6ffdf}output.long{font-size:35px}.display-bottom{border-top:1px solid #76866a40;padding-top:8px;font-size:10px}.precision{display:flex;justify-content:space-between;align-items:center;margin:16px 0;color:#515860;font-size:12px;text-shadow:0 1px #fff}.precision>div{display:flex;border:1px solid #747e8b;border-radius:5px;overflow:hidden;box-shadow:0 1px white}.precision button{width:38px;padding:5px;border:0;border-left:1px solid #9098a2;background:linear-gradient(#f7f8f9,#bfc6ce);color:#44505e;font-weight:bold}.precision button:first-child{border-left:0}.precision button.selected{background:linear-gradient(#536479,#879bb0);color:white;box-shadow:inset 0 1px 5px #26334388;text-shadow:0 -1px #45576b}.keypad{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.keypad button{height:65px;border-radius:9px;border:1px solid #131820;color:white;background:linear-gradient(#606975,#424953 49%,#343b46 50%,#303743);box-shadow:inset 0 1px 1px #a7adb4,0 3px 0 #161d26,0 4px 3px #18202b70;font-size:30px;text-shadow:0 -1px 1px #000}.keypad button.utility{font-size:23px;background:linear-gradient(#a7afb9,#818c9c 49%,#748194 50%,#65748a);border-color:#4a5666;box-shadow:inset 0 1px #d7dce2,0 3px #4a5666,0 4px 3px #18202b55}.keypad button.operator{background:linear-gradient(#596675,#3c4758 49%,#2b3749 50%,#293448)}.keypad button.equals{background:linear-gradient(#f2aa58,#e18c36 49%,#d67a22 50%,#c76617);border-color:#92501c;box-shadow:inset 0 1px #ffe0ae,0 3px #904719,0 4px 3px #18202b55}.keypad button:active{transform:translateY(2px);box-shadow:inset 0 1px 6px #0008}.keypad button:disabled{opacity:.55;cursor:default}.engraving{text-align:center;color:#65707a;text-shadow:0 1px #fff;font-size:11px;padding-top:18px}.notebook{margin:20px 22px;background:#fffdf0;box-shadow:2px 3px 8px #49525b40;position:relative;min-width:0;display:flex;flex-direction:column;border:1px solid #c6bf9e}.paper-heading{background:linear-gradient(#ae8a58,#8c693c);color:#fff7e4;text-shadow:0 -1px #76552c;padding:15px 18px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px dashed #e3c899;outline:3px solid #927045;outline-offset:-5px}.paper-heading h2{font-family:Georgia,serif;font-size:19px;margin:0;font-weight:normal}.paper-heading>span{font-size:11px}.totals{display:flex;justify-content:space-between;padding:20px 17px 16px;border-bottom:1px solid #dcd9bd;gap:8px}.totals div{display:flex;flex-direction:column;gap:5px}.totals strong{font-size:18px;font-variant-numeric:tabular-nums;color:#454230}.totals span{font-size:11px;color:#706d58}.note{font-size:12px;line-height:1.55;color:#756e56;margin:14px 17px}.note.error{color:#a33122}ol{list-style:none;margin:0;padding:0 17px 18px;max-height:330px;overflow:auto;flex:1;background:repeating-linear-gradient(transparent 0,transparent 27px,#d4dfde70 28px)}li.step{padding:12px 0;border-bottom:1px solid #d6d4ba}li.step summary{cursor:pointer;font-size:12px;line-height:1.5;color:#575345}li.step summary strong{font-weight:600}li.step summary span{float:right;color:#7b765e;font-variant-numeric:tabular-nums}.choice{font-size:11px;line-height:1.6;margin-top:5px;padding:3px 7px;color:#797868;background:#f0efdf;display:flex;gap:5px;justify-content:space-between}.choice.chosen{background:#dce8ce;color:#3e5a29}.choice b{font-weight:normal;white-space:nowrap}.empty{min-height:210px;text-align:center;display:flex;flex-direction:column;justify-content:center;align-items:center;color:#89816b}.pencil{font-size:42px;color:#a79b7a}.empty p{font-family:Georgia,serif;font-size:18px;line-height:1.6}.empty small{font:12px "Helvetica Neue",Helvetica,Arial,sans-serif}.notebook footer{border-top:1px solid #dedbc5;padding:13px 16px;display:flex;justify-content:space-between;gap:6px;color:#88806a;font-size:10px}dialog{max-width:360px;border:1px solid #46586c;border-radius:12px;background:#eef0f3;color:#344154;padding:25px;box-shadow:0 15px 50px #0008}dialog::backdrop{background:#18222e88}dialog h2{font:23px Georgia,serif;margin-top:0}dialog p{font-size:14px;line-height:1.5}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}@media(max-width:640px){body{padding:0;background:#d2d6dc}.app{border:0;border-radius:0;box-shadow:none;max-width:430px}.toolbar{height:58px;padding-top:env(safe-area-inset-top)}.workspace{display:block}.calculator{padding:18px 20px;border-right:0;border-bottom:1px solid #9ca3ac}.display{padding:10px 14px}output{min-height:64px;font-size:51px}.keypad button{height:59px}.engraving{padding-top:14px}.notebook{margin:18px 15px calc(20px + env(safe-area-inset-bottom))}.empty{min-height:130px}ol{max-height:420px}.totals strong{font-size:20px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

.notebook footer{align-items:center}.footer-links{display:flex;align-items:center;gap:4px}.repo-link{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;margin-block:-10px;border-radius:5px;color:#706d58;flex-shrink:0}.repo-link:hover{color:#454230;background:#e9e5ce}.repo-link:focus-visible{outline:3px solid #0b77cf;outline-offset:2px}

.question-title{font-size:12px;font-weight:600;line-height:1.45;margin:14px 0 5px;color:#575345}

.result-check{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:3px 0 10px;font-size:13px}.result-check[hidden]{display:none}.check-tag{flex-shrink:0;border:1px solid #67715d;border-radius:5px;padding:4px 7px;background:linear-gradient(#ebefdd,#c4ceb7);color:#374330;box-shadow:inset 0 1px #ffffffa0,0 1px 2px #33442225;font-size:12px;font-weight:700;text-shadow:0 1px #ffffff60}.result-check[data-status="correct"] .check-tag{color:#214c15;border-color:#5d8448;background:linear-gradient(#d9edb4,#adce83)}.result-check[data-status="wrong"] .check-tag{color:#791c15;border-color:#b97057;background:linear-gradient(#ffddce,#e9ad95)}.real-answer{text-align:right;min-width:0;color:#46523c}.real-answer strong{font-variant-numeric:tabular-nums;color:#293329;overflow-wrap:anywhere}
.small:active{background:linear-gradient(#5d7899,#3c5677);box-shadow:inset 0 1px 4px #22344b}
.shake{animation:shake .38s cubic-bezier(.36,.07,.19,.97)}
@keyframes shake{10%,90%{transform:translateX(-1px)}20%,80%{transform:translateX(2px)}30%,50%,70%{transform:translateX(-4px)}40%,60%{transform:translateX(4px)}}
.precision button:not(.selected):active{background:linear-gradient(#dfe4ea,#a5aeb8)}
.led.busy{animation:pulse 1s steps(2) infinite}
@keyframes pulse{50%{opacity:.25}}
dialog[open]{animation:alert-in .18s ease-out}
@keyframes alert-in{from{opacity:0;transform:scale(1.15)}to{opacity:1;transform:scale(1)}}
@media(prefers-reduced-motion:reduce){.shake,.led.busy,dialog[open]{animation:none}}
