/* Reference styling is scoped to these two calculator models. */
.hp15c-block.hp15-reference {
  box-sizing:border-box; display:grid; grid-template-rows:28% 72%; container-type:inline-size;
  width:var(--calc-size,100%); max-width:1000px; height:auto; min-height:0; max-height:none;
  aspect-ratio:1.62; padding:0 1.6% 1%; margin:16px auto; border:5px solid #34352e;
  border-radius:12px; background:linear-gradient(90deg,#282922,#4e5046 2%,#161915 4%,#292a24 96%,#55584e 98%,#242620);
  box-shadow:inset 0 1px 2px #c5c6b9,0 12px 28px #0005; color:#f4f1d6;
}
.hp15c-block.hp15-reference .hp15-top { display:flex; align-items:center; gap:20cqw; padding:2.5cqw 2.5cqw 2.5cqw 10cqw; min-height:0; background:repeating-linear-gradient(0deg,#ffffff15 0 1px,#00000008 1px 2px),linear-gradient(110deg,#c2c7c1,#f1f4ef 52%,#c4cbc9); border-bottom:5px solid #151812; border-radius:6px 6px 0 0; }
.hp15c-block.hp15-reference .hp-lcd { box-sizing:border-box; position:relative; flex:1; min-width:0; min-height:0; height:100%; padding:.8cqw 1.8cqw; border:.6cqw solid; border-color:#7d827a #e5e8dd #f8f8ec #7e8479; border-radius:1cqw; background:linear-gradient(#bdc0a2,#d6d6b6); box-shadow:inset 0 3px 6px #3d463566; color:#555e4b; }
.hp15c-block.hp15-reference .hp-lcd-body { display:flex; align-items:center; justify-content:center; height:100%; gap:0; }
.hp15c-block.hp15-reference .hp-stack { display:none; }
.hp15c-block.hp15-reference .hp-readout { text-align:right; }
.hp15c-block.hp15-reference .hp-value { font:500 5.2cqw/1.1 'Lucida Console',Consolas,monospace; letter-spacing:.05em; white-space:nowrap; word-break:normal; }
.hp15c-block.hp15-reference .hp-imag { min-height:0; font-size:1.2cqw; }
.hp15c-block.hp15-reference .hp-imag:empty { display:none; }
.hp15c-block.hp15-reference .hp-ann { position:absolute; left:1.8cqw; right:1.8cqw; bottom:.2cqw; min-height:0; gap:.6cqw; font-size:1cqw; }
.hp15c-block.hp15-reference .hp-ann span:not(.is-on):not(.hp-pend) { visibility:hidden; }
.hp15c-block.hp15-reference .hp15-logo { flex:0 0 7cqw; width:7cqw; height:8cqw; border:.25cqw solid #ebeee0; background:#16304a; color:#eef2de; box-shadow:0 0 0 .2cqw #384448; }
.hp15c-block.hp15-reference .hp15-logo-hp { font-size:4.3cqw; }
.hp15c-block.hp15-reference .hp15-logo-model { font:700 2.5cqw/1 Arial,sans-serif; border-top:2px solid #e3ead8; width:100%; text-align:center; }
.hp15c-block.hp15-reference .hp15-plate { display:flex; flex-direction:column; min-height:0; margin:.7cqw .2cqw 0; padding:.6cqw 1.4cqw .2cqw; border:.45cqw solid; border-color:#f4f5de #b4b9a2 #e2e3c9 #e5e8ce; background:linear-gradient(110deg,#252a23,#171b16 65%,#292e26); border-radius:0; }
.hp15c-block.hp15-reference .hp-keys { position:relative; display:grid; grid-template-columns:repeat(10,minmax(0,1fr)); grid-template-rows:repeat(4,minmax(0,1fr)); flex:1; min-height:0; margin:0; gap:1.8cqw 2cqw; }
.hp15c-block.hp15-reference .hp-slot { min-height:0; gap:.25cqw; }
.hp15c-block.hp15-reference .hp-f { min-height:1.8cqw; font:500 1.6cqw/1.1 Arial,sans-serif; color:#edb567; overflow:visible; }
.hp15c-block.hp15-reference .hp-g { color:#8edaf4; font:600 1.3cqw/1.1 Arial,sans-serif; }
.hp15c-block.hp15-reference .hp-key { min-height:0; padding:.5cqw .15cqw; gap:.3cqw; border:.16cqw solid #080d09; border-radius:.6cqw; background:linear-gradient(160deg,#55594d,#22271f 22%,#1c211a 85%,#343b2d); color:#f4f2d6; box-shadow:inset .1cqw .1cqw .15cqw #7c8271,0 .2cqw .15cqw #090e08; }
.hp15c-block.hp15-reference .hp-face { font:600 2.4cqw/1 Arial,sans-serif; }
.hp15c-block.hp15-reference .hp-key--num .hp-face,.hp15c-block.hp15-reference .hp-key--op .hp-face { font-size:3.5cqw; }
.hp15c-block.hp15-reference .hp-key--enter { justify-content:space-between; padding-top:.7cqw; }
.hp15c-block.hp15-reference .hp-key--enter .hp-face { display:block; writing-mode:horizontal-tb; transform:none; max-width:1ch; word-break:break-all; white-space:normal; font:700 2.35cqw/.94 Arial,sans-serif; letter-spacing:0; }
.hp15c-block.hp15-reference .hp-key--f { background:linear-gradient(#ffcf4c,#dc9c20); color:#272a1a; }
.hp15c-block.hp15-reference .hp-key--g { background:linear-gradient(#72c4d2,#2b8da5); color:#142e32; }
.hp15c-block.hp15-reference .hp15-foot { flex:none; margin:.7cqw 0 0; text-align:left; color:#f4f1dd; font:700 1.6cqw/1 Arial,sans-serif; letter-spacing:.65cqw; }
.hp15-clear-legend { position:absolute; z-index:1; top:calc(50% - 1.4cqw); left:9.5%; width:39.5%; border-top:1px solid #dcae61; text-align:center; color:#edb567; font:500 1.05cqw/1 Arial,sans-serif; pointer-events:none; }
.hp15c-block.hp15-reference .game-fullscreen-btn { top:.8cqw; right:.8cqw; width:3cqw; height:3cqw; }
.editor-wrap--preview-only .preview-content > .hp15c-block.hp15-reference:only-child,.editor-wrap--split .preview-content > .hp15c-block.hp15-reference:only-child { flex:0 0 auto; height:auto; max-height:none; min-height:0; width:var(--calc-size,100%); max-width:1000px; align-self:center; }
.hp15c-block.hp15-reference:fullscreen,.hp15c-block.hp15-reference.game-block--monitor-fullscreen { width:min(100vw,162vh); height:auto; max-width:100vw; max-height:100vh; margin:auto; }

.ti30-block.ti30-reference { box-sizing:border-box; container-type:inline-size; width:var(--calc-size,100%); max-width:320px; height:auto; max-height:none; min-height:0; margin:16px auto; padding:12px 13px 15px; border:7px solid #131416; border-radius:35px 35px 48px 48px; color:#eeeede; background:radial-gradient(ellipse at 40% 20%,#62615c,#3a3b39 70%); box-shadow:inset 0 0 0 2px #8d8b80,0 5px 15px #0005; }
.ti30-block.ti30-reference .ti30-head { padding:12px 11px 10px; border:2px solid #202124; border-radius:20px 20px 30px 5px; background:linear-gradient(120deg,#14191c,#090c10); margin-bottom:12px; }
.ti30-maker { font:8px Arial,sans-serif; text-align:left; color:#e3e3d5; letter-spacing:.03em; }
.ti30-solar { height:22px; width:84%; margin:7px 0 5px; background:repeating-linear-gradient(90deg,#292d26 0 24%,#131911 24% 25%); border:1px solid #060b07; box-shadow:inset 0 0 7px #000b; }
.ti30-model { color:#57a89f; font:600 12px Arial,sans-serif; margin:8px 0; text-align:left; }
.ti30-block.ti30-reference .hp-lcd { box-sizing:border-box; padding:3px 9px 5px; min-height:42px; border:2px solid #374539; border-radius:3px; color:#263f2c; background:linear-gradient(#adc8a9,#c7dbb5); }
.ti30-block.ti30-reference .hp-ann { gap:8px; min-height:8px; font-size:7px; justify-content:center; line-height:1; }
.ti30-block.ti30-reference .hp-ann span:not(.is-on):not(.hp-pend) { visibility:hidden; }
.ti30-block.ti30-reference .hp-lcd-body { display:block; }
.ti30-block.ti30-reference .hp-stack { display:none; }
.ti30-block.ti30-reference .hp-value { font:500 9.4cqw/1.1 'Lucida Console',Consolas,monospace; white-space:nowrap; letter-spacing:.01em; word-break:normal; }
.ti30-on-row { display:flex; justify-content:flex-end; margin-top:15px; }
.ti30-block.ti30-reference .ti30-on { padding:4px 6px; min-height:0; border:2px solid #65c4bd; border-radius:10px; background:#143333; color:#f0f2e3; font:8px/1 Arial,sans-serif; cursor:pointer; box-shadow:inset 0 0 0 1px #111; }
.ti30-block.ti30-reference .hp-keys { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); grid-template-rows:repeat(8,minmax(0,1fr)); gap:5px 7px; margin:0 5px; flex:none; }
.ti30-block.ti30-reference .hp-slot { min-height:0; gap:2px; }
.ti30-block.ti30-reference .hp-f { font:600 7px/1.1 Arial,sans-serif; min-height:8px; color:#eee09a; overflow:visible; }
.ti30-block.ti30-reference .hp-key { box-sizing:border-box; min-height:25px; padding:3px 1px; border:1px solid #16191a; border-radius:5px; background:linear-gradient(#686969,#414449); color:#f1f0df; box-shadow:inset 0 1px 1px #a3a29b,0 2px 1px #161716; }
.ti30-block.ti30-reference .hp-face { font:400 12px/1 Arial,sans-serif; }
.ti30-block.ti30-reference .hp-key--num .hp-face { font-size:16px; }
.ti30-block.ti30-reference .hp-key--op,.ti30-block.ti30-reference .hp-key--eq { background:linear-gradient(#456679,#2e4e63); }
.ti30-block.ti30-reference .hp-key--2nd { background:linear-gradient(#ffe781,#e4bc43); color:#302d1c; }
.ti30-foot { margin-top:12px; text-align:center; font:8px Arial,sans-serif; color:#e9e6bd; }
.ti30-block.ti30-reference .game-fullscreen-btn { top:3px; right:4px; width:24px; height:24px; }
.editor-wrap--preview-only .preview-content > .ti30-block.ti30-reference:only-child,.editor-wrap--split .preview-content > .ti30-block.ti30-reference:only-child { flex:0 0 auto; width:var(--calc-size,100%); max-width:320px; height:auto; max-height:none; min-height:0; align-self:center; }
.ti30-block.ti30-reference:fullscreen,.ti30-block.ti30-reference.game-block--monitor-fullscreen { height:100%; width:100%; max-width:none; max-height:none; overflow:auto; }
