.c84-wrap{display:flex;flex-direction:column;align-items:center;width:100%}
.c84-zoom{display:flex;gap:8px;margin-bottom:8px}
.c84-zbtn{width:30px;height:26px;border-radius:6px;border:1px solid rgba(43,33,24,.18);background:#fffaf2;color:#2b2118;font:700 16px/1 system-ui,sans-serif;cursor:pointer;display:flex;align-items:center;justify-content:center;box-shadow:0 1px 2px rgba(0,0,0,.06);padding:0}
.c84-zbtn:hover{border-color:#c2562f;color:#c2562f}
.c84{--body:#050608;--body2:#020304;--keyfn:#08090c;--keybdr:#b9bec6;--keytxt:#ffffff;--num:#ffffff;--numtxt:#0a0b0e;--op:#d2d5da;--optxt:#0a0b0e;--l2-dk:#58b2ff;--la-dk:#76d94c;--l2-lt:#1268c4;--la-lt:#2b8a1e;--second:#2878d8;--alpha:#74c74a;--scrbg:#ffffff;--ink:#111317;--sel:#1d5fbf;
  container-type:inline-size;position:relative;width:var(--c84-w,336px);max-width:100%;margin:0 auto;padding:12px 12px 16px;background:linear-gradient(180deg,var(--body),var(--body2));border:2px solid #1a3561;border-radius:16px 16px 26px 26px;box-shadow:0 16px 36px rgba(0,0,0,.32),inset 0 1px 0 rgba(255,255,255,.1);outline:none;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;font-family:Arial,"Helvetica Neue",system-ui,-apple-system,sans-serif}
.c84:focus-visible{box-shadow:0 0 0 3px #3aa6f5,0 16px 36px rgba(0,0,0,.32)}
.c84-bezel{background:#020305;border-radius:6px;padding:1.8cqw 1.8cqw 3.2cqw;margin-bottom:2.2cqw}
.c84-screen{container-type:inline-size;position:relative;background:var(--scrbg);color:var(--ink);border-radius:1px;overflow:hidden;font-family:"JetBrains Mono",ui-monospace,Menlo,Consolas,"DejaVu Sans Mono",monospace;-webkit-user-select:text;user-select:text}
.c84-status{height:7.8cqw;line-height:7.8cqw;font-size:3.15cqw;padding:0 1.8cqw;background:#57585a;color:#ffffff;display:flex;align-items:center;justify-content:space-between;white-space:nowrap;overflow:hidden;letter-spacing:.01em;font-weight:700}
.c84-st-txt{overflow:hidden;text-overflow:ellipsis}
.c84-st-r{display:flex;align-items:center;gap:1.4cqw;flex-shrink:0}
.c84-mod{color:#ffe066;font-weight:700;font-size:3cqw}
.c84-bat{position:relative;display:inline-flex;align-items:center;width:3.8cqw;height:5.4cqw;border:1.3px solid #ffffff;border-radius:1px;padding:1px;box-sizing:border-box;background:#ffffff}
.c84-bat::before{content:"";position:absolute;top:-2px;left:50%;transform:translateX(-50%);width:1.8cqw;height:1.6px;background:#ffffff}
.c84-bat i{display:block;width:68%;height:100%;background:#32b846}
.c84-body{position:relative;height:68cqw;overflow:hidden;font-size:5.2cqw;padding:.6cqw 1.8cqw;box-sizing:border-box}
.c84-graph{position:absolute;left:0;top:7.8cqw;width:100%;height:68cqw;display:none;background:#fff}
.c84-splash{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:space-between;height:100%;padding:6.5cqw 0 11cqw;text-align:center;box-sizing:border-box;pointer-events:none}
.c84-splash .cur{position:absolute;left:0;top:.6cqw;font-size:5.2cqw;line-height:1.15}
.c84-sp-top{font-size:5.3cqw;line-height:1.3;color:#111317}
.c84-sp-bot{font-size:5.3cqw;color:#111317}
.c84 .ln{min-height:6.6cqw;line-height:6.6cqw;white-space:pre;overflow:hidden}
.c84 .ln.in{white-space:pre-wrap;word-break:break-all}
.c84 .ln.r{text-align:right}
.c84 .ln.rend{border-bottom:1px dotted #aeb4bc}
.c84 .ln.hl{background:var(--sel);color:#fff}
.c84 .ln.dim{color:#666a70;font-size:.82em}
.c84 .ln.bot{border-top:1px solid #c9ccd0}
.c84 .iv,.c84 .on{background:var(--ink);color:#fff}
.c84 .cur{background:var(--ink);color:#fff;animation:c84blink 1s steps(1) infinite}
.c84 .cur.ins{background:transparent;color:inherit;border-bottom:2px solid var(--ink)}
.c84 .blink{animation:c84blink 1s steps(1) infinite}
@keyframes c84blink{50%{background:transparent;color:inherit;border-color:transparent}}
.c84 .grid{display:flex}
.c84 .cell{flex:1 1 0;text-align:right;padding-right:1.5cqw;overflow:hidden;white-space:pre}
.c84 .cell.hd{text-align:center;border-bottom:1px solid #c9ccd0;font-weight:600}
.c84 .cell.hl{background:var(--sel);color:#fff}
.c84 .ysw{display:inline-block;width:1.4cqw;height:4cqw;margin-right:1cqw;vertical-align:-0.5cqw}
.c84 .yeq.on{background:var(--ink);color:#fff}
.c84-help{font-size:3.8cqw;line-height:1.35;color:#4a4e54;white-space:normal;margin-top:2cqw;padding-right:1cqw}

/* Unified TI-84 Plus CE keycaps with embedded 2nd / alpha legends */
.c84-keys{display:grid;grid-template-columns:repeat(5,1fr);column-gap:1.95cqw;row-gap:1.65cqw}
.c84 .k{position:relative;display:flex;flex-direction:column;justify-content:space-between;align-items:stretch;height:11.8cqw;padding:1cqw 1.15cqw .85cqw;border-radius:2.1cqw;background:var(--keyfn);border:1.25px solid var(--keybdr);color:var(--keytxt);cursor:pointer;touch-action:manipulation;font:inherit;box-sizing:border-box;transition:transform .05s,filter .05s}
.c84 .k>*{pointer-events:none}
.c84 .k:active,.c84 .k.down{transform:translateY(.4cqw);filter:brightness(1.16)}
.c84 .k:focus-visible{outline:2px solid #ffe066;outline-offset:1px}
.c84 .kl{display:flex;justify-content:space-between;align-items:flex-start;width:100%;line-height:1;font-size:3.15cqw;font-weight:700;letter-spacing:-.01em;white-space:nowrap}
.c84 .l2{color:var(--l2-dk)}
.c84 .la{color:var(--la-dk)}
.c84 .cap{display:flex;align-items:center;justify-content:center;line-height:1;font-size:4.35cqw;font-weight:700;letter-spacing:-.01em;margin-top:auto}
.c84 .k sup{font-size:.66em;line-height:0;vertical-align:.44em;font-weight:700;margin-left:.04em}
.c84 .k[data-k="comma"] .cap{font-size:5.4cqw}
.c84 .k[data-k="add"] .la{font-size:4.4cqw;line-height:.75}
.c84 .l2-pi{font-family:Georgia,"Times New Roman",serif;font-size:4.1cqw;font-weight:400;line-height:.82}
.c84 .mi{font-family:Georgia,"Times New Roman",serif;font-style:italic;font-weight:700;font-size:3.6cqw}
.c84 .arr{font-size:.9em;margin-left:.15cqw}
.c84 .ico-nd{width:2.7cqw;height:3.5cqw;display:block}
.c84 .ico-sqrt{width:4.1cqw;height:3cqw;display:block}
.c84 .ico-caret{width:4.3cqw;height:2.7cqw;display:block}
.c84 .ico-spc{width:3.3cqw;height:1.7cqw;display:block;margin-top:1.1cqw}

/* Top graphing row (y= .. graph) */
.c84 .k-top{height:10.6cqw;margin-bottom:1.6cqw;background:#d6d8dc;border-color:#d6d8dc;color:#0b0c0f;padding:1.05cqw 1cqw .95cqw}
.c84 .k-top .l2{color:var(--l2-lt);font-size:2.95cqw}
.c84 .k-top .la{color:var(--la-lt);font-size:2.95cqw}
.c84 .k-top .cap{font-size:3.75cqw}

/* 2nd & alpha keys */
.c84 .k-second{background:var(--second);border-color:var(--second);color:#ffffff;height:13.2cqw}
.c84 .k-second .cap{font-size:4.45cqw}
.c84 .k-alpha{background:var(--alpha);border-color:var(--alpha);color:#0a0b0e;height:13.2cqw}
.c84 .k-alpha .l2{color:#0b3b68;font-size:3.1cqw}
.c84 .k-alpha .cap{font-size:4.35cqw}

/* White numpad keys (0-9, ., (-)) */
.c84 .k-num{background:var(--num);border-color:#ffffff;color:var(--numtxt);height:12.5cqw;padding:1cqw 1.25cqw .75cqw}
.c84 .k-num .l2{color:var(--l2-lt);font-size:3.25cqw}
.c84 .k-num .la{color:var(--la-lt);font-size:3.35cqw}
.c84 .k-num .cap{font-size:6.2cqw;font-weight:700}
.c84 .k-num[data-k="dot"] .cap{font-size:4.2cqw;padding-bottom:.5cqw}
.c84 .k-num[data-k="neg"] .cap{font-size:4.9cqw;padding-bottom:.2cqw}

/* Gray operator column (÷ × − + enter) */
.c84 .k-op,.c84 .k-enter{background:var(--op);border-color:var(--op);color:var(--optxt);height:12.2cqw;padding:1cqw 1.2cqw .8cqw}
.c84 .k-op .l2,.c84 .k-enter .l2{color:var(--l2-lt);font-size:3.25cqw}
.c84 .k-op .la,.c84 .k-enter .la{color:var(--la-lt);font-size:3.25cqw}
.c84 .k-op .cap{font-size:5.6cqw;font-weight:700}
.c84 .k-enter{height:12.5cqw}
.c84 .k-enter .kl{font-size:2.95cqw}
.c84 .k-enter .cap{font-size:4.25cqw}

/* Tall 2nd/alpha rows (rows 2 & 3) */
.c84 .k[data-k="mode"],.c84 .k[data-k="del"],.c84 .k[data-k="xt"],.c84 .k[data-k="stat"]{height:13.2cqw}
.c84 .k[data-k="xt"] .cap{font-size:3.95cqw;letter-spacing:-.03em}

/* Circular segmented TI-84 Plus CE D-pad */
.c84-dpad{grid-column:4/span 2;grid-row:2/span 2;position:relative;aspect-ratio:1/1;width:96%;justify-self:center;align-self:center}
.c84-dpad-svg{width:100%;height:100%;display:block;filter:drop-shadow(0 2px 3px rgba(0,0,0,.5))}
.c84-dpad .k-arrow{position:absolute;background:transparent;border:0;padding:0;cursor:pointer}
.c84-dpad .k-arrow[data-k=up]{left:20%;top:2%;width:60%;height:34%;clip-path:polygon(0 0,100% 0,72% 100%,28% 100%)}
.c84-dpad .k-arrow[data-k=down]{left:20%;bottom:2%;width:60%;height:34%;clip-path:polygon(28% 0,72% 0,100% 100%,0 100%)}
.c84-dpad .k-arrow[data-k=left]{left:2%;top:20%;width:34%;height:60%;clip-path:polygon(0 0,100% 28%,100% 72%,0 100%)}
.c84-dpad .k-arrow[data-k=right]{right:2%;top:20%;width:34%;height:60%;clip-path:polygon(0 28%,100% 0,100% 100%,0 72%)}
.c84-dpad .k-arrow:active,.c84-dpad .k-arrow.down{background:rgba(40,120,216,.26);border-radius:8px}
.c84-dpad .k-arrow:focus-visible{outline:2px solid #ffe066;outline-offset:-2px}
@media (max-width:640px){.c84{padding:10px 10px 14px;border-radius:14px 14px 22px 22px}}