* { margin:0; padding:0; box-sizing:border-box; }

body {
  background:#1a1a1a;
  background-image:radial-gradient(ellipse at 50% 30%,#2a2a2a 0%,#1a1a1a 70%);
  font-family:'IBM Plex Mono',monospace;
  color:#c0c0c0;
  min-height:100vh;
  display:flex;
  justify-content:center;
  align-items:flex-start;
  padding:20px;
  overflow-x:hidden;
}

#workspace { max-width:820px; width:100%; display:flex; flex-direction:column; align-items:center; gap:10px; }

#coco-case {
  background:linear-gradient(180deg,#d0d0d0 0%,#b8b8b8 20%,#c8c8c8 50%,#a8a8a8 100%);
  border-radius:16px; padding:0; width:100%; max-width:800px;
  box-shadow:0 8px 32px rgba(0,0,0,0.6),0 2px 4px rgba(255,255,255,0.2) inset,0 -2px 4px rgba(0,0,0,0.3) inset;
  overflow:hidden; border:1px solid #999;
}

#rainbow-stripe { display:flex; height:8px; width:100%; }
.stripe { flex:1; }
.stripe.red { background:#cc3333; }
.stripe.orange { background:#e68a2e; }
.stripe.yellow { background:#cccc33; }
.stripe.green { background:#33aa33; }

#case-top { padding:10px 24px; display:flex; align-items:center; }
#logo-area { display:flex; align-items:baseline; gap:12px; }
.tandy-text { font-family:'Press Start 2P',monospace; font-size:10px; color:#cc3333; letter-spacing:2px; }
.coco-text { font-family:'IBM Plex Mono',monospace; font-size:14px; font-weight:700; color:#333; letter-spacing:1px; }

#screen-bezel {
  background:#222; margin:0 20px; padding:20px; border-radius:8px;
  border:3px solid #444; box-shadow:0 4px 16px rgba(0,0,0,0.8) inset;
}

#crt-container {
  position:relative; width:100%; max-width:640px; margin:0 auto;
  aspect-ratio:4/3; overflow:hidden; border-radius:12px;
  box-shadow:0 0 40px rgba(18,210,0,0.15),0 0 80px rgba(18,210,0,0.05);
}

#canvas {
  width:100%; height:100%; image-rendering:pixelated;
  image-rendering:-moz-crisp-edges; image-rendering:crisp-edges;
  display:block; background:#000; outline:none;
}
#canvas:focus { outline:2px solid rgba(0,255,0,0.3); outline-offset:-2px; }

#scanline-overlay {
  position:absolute; top:0; left:0; width:100%; height:100%;
  background:repeating-linear-gradient(0deg,transparent,transparent 2px,rgba(0,0,0,0.12) 2px,rgba(0,0,0,0.12) 4px);
  pointer-events:none; z-index:2;
}

#crt-curve {
  position:absolute; top:0; left:0; width:100%; height:100%;
  background:radial-gradient(ellipse at center,transparent 60%,rgba(0,0,0,0.35) 100%);
  pointer-events:none; z-index:3;
}

#focus-indicator {
  position:absolute; bottom:8px; left:50%; transform:translateX(-50%); z-index:10;
  font-family:'IBM Plex Mono',monospace; font-size:10px; font-weight:700;
  color:#ffcc00; background:rgba(0,0,0,0.85); border:1px solid rgba(255,204,0,0.5);
  border-radius:4px; padding:4px 10px; letter-spacing:0.5px; white-space:nowrap;
  pointer-events:none; text-shadow:0 0 6px rgba(255,204,0,0.4);
  animation:focusPulse 1.5s ease-in-out infinite alternate;
}
#focus-indicator.hidden { display:none; }
@keyframes focusPulse { from{opacity:0.7;} to{opacity:1;border-color:rgba(255,204,0,0.8);} }

#controls-area {
  padding:12px 20px; display:flex; flex-wrap:wrap; gap:12px; align-items:flex-start;
  background:linear-gradient(180deg,#b0b0b0,#a0a0a0); border-top:1px solid #ccc;
}

#cassette-deck {
  flex:1; min-width:300px; background:linear-gradient(180deg,#2a2a2a,#1a1a1a);
  border-radius:8px; padding:10px 14px; border:2px solid #555;
  box-shadow:0 2px 8px rgba(0,0,0,0.5) inset;
}

#cassette-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:8px; }
#cassette-label { font-family:'Press Start 2P',monospace; font-size:7px; color:#ffcc00; letter-spacing:1px; }
#cassette-led-container { display:flex; align-items:center; gap:4px; }
.led-label { font-size:7px; color:#666; font-family:'Press Start 2P',monospace; }
.led-off { width:8px; height:8px; border-radius:50%; background:#400; border:1px solid #666; }
.led-on { width:8px; height:8px; border-radius:50%; background:#ff2200; border:1px solid #ff6644; box-shadow:0 0 6px #ff2200,0 0 12px rgba(255,34,0,0.5); animation:ledPulse 0.8s ease-in-out infinite alternate; }
@keyframes ledPulse { from{box-shadow:0 0 4px #ff2200;} to{box-shadow:0 0 10px #ff2200,0 0 20px rgba(255,34,0,0.6);} }

#tape-reels { display:flex; align-items:center; justify-content:center; gap:10px; margin-bottom:8px; padding:8px; background:#111; border-radius:6px; border:1px solid #333; }
.reel-container { width:50px; height:50px; display:flex; align-items:center; justify-content:center; }
.reel { width:44px; height:44px; border-radius:50%; background:#222; border:2px solid #555; position:relative; transition:transform 0.1s linear; }
.reel.spinning { animation:reelSpin 0.5s linear infinite; }
@keyframes reelSpin { from{transform:rotate(0deg);} to{transform:rotate(360deg);} }
.reel-spoke { position:absolute; width:2px; height:18px; background:#666; left:50%; top:50%; transform:translate(-50%,-100%); transform-origin:bottom center; }
.reel-spoke.s2 { transform:translate(-50%,-100%) rotate(120deg); }
.reel-spoke.s3 { transform:translate(-50%,-100%) rotate(240deg); }
.reel-hub { position:absolute; width:12px; height:12px; border-radius:50%; background:#444; border:1px solid #666; top:50%; left:50%; transform:translate(-50%,-50%); }

#tape-window { background:#0a0a0a; border:1px solid #444; border-radius:4px; padding:4px 8px; display:flex; align-items:center; justify-content:center; }
#tape-counter { font-family:'Press Start 2P',monospace; font-size:12px; color:#ff6600; text-shadow:0 0 4px rgba(255,102,0,0.5); letter-spacing:2px; }

#cassette-info { display:flex; gap:8px; align-items:flex-start; margin-bottom:8px; }
#file-info { flex:1; display:flex; flex-direction:column; gap:1px; }
#filename-display { font-family:'IBM Plex Mono',monospace; font-size:11px; color:#0f0; background:#0a0a0a; padding:3px 6px; border-radius:3px; border:1px solid #222; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:220px; text-shadow:0 0 4px rgba(0,255,0,0.5); }
#filetype-display, #fileaddr-display, #filesize-display { font-size:9px; color:#888; font-family:'IBM Plex Mono',monospace; padding-left:6px; }
#fileaddr-display { color:#0aa; }
#cassette-state-display { font-family:'Press Start 2P',monospace; font-size:7px; color:#ff6600; background:#111; padding:4px 6px; border-radius:3px; border:1px solid #333; min-width:70px; text-align:center; }

#cassette-buttons { display:flex; gap:4px; flex-wrap:wrap; }
.cas-btn { font-family:'IBM Plex Mono',monospace; font-size:9px; font-weight:700; padding:5px 8px; border:1px solid #555; border-radius:3px; background:linear-gradient(180deg,#444,#2a2a2a); color:#ddd; cursor:pointer; transition:all 0.1s; white-space:nowrap; }
.cas-btn:hover { background:linear-gradient(180deg,#555,#333); border-color:#777; }
.cas-btn:active { background:linear-gradient(180deg,#222,#111); transform:translateY(1px); }
.play-btn { background:linear-gradient(180deg,#2a5a2a,#1a3a1a); border-color:#3a6a3a; color:#8f8; }
.play-btn:hover { background:linear-gradient(180deg,#3a6a3a,#2a4a2a); }
.rec-btn { background:linear-gradient(180deg,#5a2a2a,#3a1a1a); border-color:#6a3a3a; color:#f88; }
.rec-btn:hover { background:linear-gradient(180deg,#6a3a3a,#4a2a2a); }
.load-btn-style { background:linear-gradient(180deg,#2a2a5a,#1a1a3a); border-color:#3a3a6a; color:#88f; cursor:pointer; display:inline-block; }
.load-btn-style:hover { background:linear-gradient(180deg,#3a3a6a,#2a2a4a); }

#multi-file-browser { margin-top:6px; background:#111; border-radius:4px; padding:6px; border:1px solid #333; }
#multi-file-browser.hidden { display:none; }
#multi-file-label { font-size:8px; color:#aaa; margin-bottom:4px; font-family:'IBM Plex Mono',monospace; }
#multi-file-select { width:100%; font-family:'IBM Plex Mono',monospace; font-size:10px; background:#0a0a0a; color:#0f0; border:1px solid #333; border-radius:3px; padding:2px; }

#memory-loader-panel { width:100%; margin-top:4px; }
#ml-expansion-slot { display:flex; align-items:stretch; width:100%; }
#ml-slot-edge-left, #ml-slot-edge-right { width:8px; background:linear-gradient(180deg,#888,#555,#888); border:1px solid #666; flex-shrink:0; }
#ml-slot-edge-left { border-radius:4px 0 0 4px; border-right:none; background-image:repeating-linear-gradient(180deg,#888 0px,#888 4px,#aa8833 4px,#aa8833 8px,#888 8px,#888 12px); }
#ml-slot-edge-right { border-radius:0 4px 4px 0; border-left:none; background-image:repeating-linear-gradient(180deg,#888 0px,#888 4px,#aa8833 4px,#aa8833 8px,#888 8px,#888 12px); }
#ml-slot-body { flex:1; background:linear-gradient(180deg,#1a1a2a,#111118); border:2px solid #444; border-left:1px solid #555; border-right:1px solid #555; padding:10px 12px; }
#ml-title { font-family:'Press Start 2P',monospace; font-size:7px; color:#88ccff; letter-spacing:1.5px; text-transform:uppercase; margin-bottom:8px; text-shadow:0 0 6px rgba(136,204,255,0.3); }

#ml-drop-zone { border:2px dashed #556; border-radius:6px; padding:16px; text-align:center; cursor:pointer; transition:all 0.2s; margin-bottom:10px; background:rgba(0,0,0,0.3); }
#ml-drop-zone.ml-drop-idle:hover { border-color:#88ccff; background:rgba(40,60,100,0.2); }
#ml-drop-zone.ml-drop-active { border-color:#00eeff; background:rgba(0,180,255,0.15); box-shadow:0 0 20px rgba(0,180,255,0.2) inset; animation:dropPulse 0.6s ease-in-out infinite alternate; }
@keyframes dropPulse { from{border-color:#00ccdd;} to{border-color:#00eeff;box-shadow:0 0 30px rgba(0,180,255,0.3) inset;} }
#ml-drop-icon { font-size:24px; margin-bottom:4px; filter:grayscale(0.3); }
#ml-drop-text { font-family:'IBM Plex Mono',monospace; font-size:10px; color:#88aacc; letter-spacing:1px; }
#ml-drop-text .ml-sub { font-size:8px; color:#667; }

#ml-options-row, #ml-options-row2 { display:flex; gap:10px; flex-wrap:wrap; margin-bottom:6px; align-items:flex-end; }
.ml-field { display:flex; flex-direction:column; gap:2px; }
.ml-field label { font-size:8px; color:#778; font-family:'IBM Plex Mono',monospace; font-weight:700; letter-spacing:0.5px; text-transform:uppercase; }
.ml-hex-input { display:flex; align-items:center; background:#0a0a14; border:1px solid #334; border-radius:3px; padding:0 4px; }
.ml-dollar { font-family:'IBM Plex Mono',monospace; font-size:11px; color:#556; margin-right:2px; }
.ml-hex-input input { font-family:'IBM Plex Mono',monospace; font-size:12px; background:transparent; color:#00eeff; border:none; outline:none; width:48px; padding:3px 0; text-transform:uppercase; }
.ml-hex-input input:focus { color:#ffffff; text-shadow:0 0 4px rgba(0,238,255,0.6); }
.ml-check-field label { display:flex; align-items:center; gap:4px; font-size:9px; color:#99aabb; cursor:pointer; }
.ml-check-field input[type="checkbox"] { accent-color:#00ccdd; }
.ml-field select { font-family:'IBM Plex Mono',monospace; font-size:9px; background:#0a0a14; color:#aabbcc; border:1px solid #334; border-radius:3px; padding:3px 4px; }

#ml-detect-dialog { background:rgba(0,40,80,0.9); border:1px solid #00ccdd; border-radius:6px; padding:10px; margin-bottom:8px; animation:fadeIn 0.2s; }
#ml-detect-dialog.hidden { display:none; }
#ml-detect-msg { font-size:10px; color:#bbddff; margin-bottom:8px; font-family:'IBM Plex Mono',monospace; }
#ml-detect-buttons { display:flex; gap:8px; }

#ml-results { background:#0a0a10; border:1px solid #334; border-radius:4px; padding:8px; margin-bottom:8px; }
#ml-results.hidden { display:none; }
#ml-result-info { font-family:'IBM Plex Mono',monospace; font-size:10px; color:#88ccaa; line-height:1.5; }
.ml-res-file { color:#00eeff; font-weight:700; }
#ml-result-warning { font-size:9px; color:#ffaa22; margin-top:4px; padding:4px 6px; background:rgba(255,170,34,0.1); border:1px solid rgba(255,170,34,0.3); border-radius:3px; }
#ml-result-warning.hidden { display:none; }
#ml-hex-preview-label { font-size:7px; color:#667; margin:6px 0 3px; font-family:'Press Start 2P',monospace; letter-spacing:1px; }
#ml-hex-preview { font-family:'IBM Plex Mono',monospace; font-size:9px; color:#0a0; line-height:1.4; overflow-x:auto; overflow-y:auto; max-height:100px; white-space:pre; text-shadow:0 0 3px rgba(0,255,0,0.15); background:#050510; padding:4px; border-radius:3px; border:1px solid #223; }

#ml-memmap-container { margin-bottom:8px; }
#ml-memmap-label { font-family:'Press Start 2P',monospace; font-size:7px; color:#778; margin-bottom:3px; letter-spacing:1px; }
#ml-memmap-canvas { width:100%; height:24px; border:1px solid #445; border-radius:3px; display:block; image-rendering:pixelated; }
#ml-memmap-legend { display:flex; flex-wrap:wrap; gap:6px; margin-top:3px; }
.ml-legend-item { font-size:7px; color:#889; display:flex; align-items:center; gap:3px; font-family:'IBM Plex Mono',monospace; }
.ml-swatch { width:8px; height:8px; border-radius:2px; display:inline-block; border:1px solid rgba(255,255,255,0.15); }

#ml-history-container { margin-bottom:8px; }
#ml-history-label { font-family:'Press Start 2P',monospace; font-size:7px; color:#778; margin-bottom:3px; letter-spacing:1px; }
#ml-history-list { max-height:80px; overflow-y:auto; background:#050510; border:1px solid #223; border-radius:3px; padding:2px; }
.ml-history-empty { font-size:8px; color:#445; padding:4px 6px; font-family:'IBM Plex Mono',monospace; }
.ml-history-entry { font-family:'IBM Plex Mono',monospace; font-size:9px; color:#aab; padding:2px 4px; display:flex; align-items:center; gap:4px; border-bottom:1px solid #1a1a24; }
.ml-history-entry:last-child { border-bottom:none; }
.ml-hist-num { color:#556; min-width:16px; }
.ml-hist-name { color:#00ccdd; flex-shrink:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:120px; }
.ml-hist-addr { color:#88aa88; white-space:nowrap; }
.ml-hist-size { color:#667; white-space:nowrap; }
.ml-hist-remove { background:none; border:1px solid #553333; color:#ff6644; font-size:11px; font-weight:700; cursor:pointer; border-radius:3px; width:18px; height:18px; display:flex; align-items:center; justify-content:center; padding:0; line-height:1; margin-left:auto; flex-shrink:0; }
.ml-hist-remove:hover { background:#331111; border-color:#ff4422; }

#ml-dump-row { display:flex; gap:8px; align-items:flex-end; flex-wrap:wrap; }
.ml-dump-len-input { font-family:'IBM Plex Mono',monospace; font-size:12px; background:#0a0a14; color:#aabbcc; border:1px solid #334; border-radius:3px; padding:3px 6px; width:56px; }
.ml-dump-len-input:focus { color:#ffffff; border-color:#556; }

#ml-corrupt-row { margin-top:10px; padding-top:10px; border-top:1px solid #2a1a1a; }
#ml-corrupt-label { font-family:'Press Start 2P',monospace; font-size:7px; color:#ff4422; letter-spacing:1px; margin-bottom:6px; text-shadow:0 0 6px rgba(255,68,34,0.4); }
#ml-corrupt-controls { display:flex; gap:8px; align-items:flex-end; flex-wrap:wrap; }
.ml-corrupt-amount-input { font-family:'IBM Plex Mono',monospace; font-size:12px; background:#140a0a; color:#ff8866; border:1px solid #442; border-radius:3px; padding:3px 6px; width:72px; }
.ml-corrupt-amount-input:focus { color:#ffaa88; border-color:#664; outline:none; box-shadow:0 0 4px rgba(255,68,34,0.3); }
.corrupt-btn-style { background:linear-gradient(180deg,#5a2222,#3a1111)!important; border-color:#6a3333!important; color:#ff8866!important; text-shadow:0 0 4px rgba(255,68,34,0.4); }
.corrupt-btn-style:hover { background:linear-gradient(180deg,#6a3333,#4a1a1a)!important; border-color:#884444!important; color:#ffaa88!important; box-shadow:0 0 8px rgba(255,68,34,0.3); }
.corrupt-btn-style:active { background:linear-gradient(180deg,#3a1111,#220808)!important; transform:translateY(1px); }
#ml-corrupt-result { margin-top:6px; font-family:'IBM Plex Mono',monospace; font-size:10px; color:#ff6644; background:#1a0a0a; border:1px solid #331111; border-radius:3px; padding:4px 8px; text-shadow:0 0 3px rgba(255,68,34,0.3); }
#ml-corrupt-result.hidden { display:none; }
@keyframes corruptFlash { 0%{background:#1a0a0a;} 20%{background:#3a1111;} 100%{background:#1a0a0a;} }
#ml-corrupt-result.flash { animation:corruptFlash 0.4s ease-out; }

.ctrl-button { font-family:'IBM Plex Mono',monospace; font-size:11px; font-weight:700; padding:8px 14px; border:2px solid #666; border-radius:4px; background:linear-gradient(180deg,#666,#444); color:#eee; cursor:pointer; text-transform:uppercase; letter-spacing:1px; transition:all 0.1s; user-select:none; white-space:nowrap; }
.ctrl-button:hover { background:linear-gradient(180deg,#777,#555); border-color:#888; }
.ctrl-button:active { background:linear-gradient(180deg,#333,#222); border-color:#444; transform:translateY(1px); box-shadow:0 1px 2px rgba(0,0,0,0.5) inset; }

.big-button { font-size:14px; padding:10px 24px; background:linear-gradient(180deg,#cc3333,#991111); border-color:#aa2222; color:#fff; text-shadow:0 1px 2px rgba(0,0,0,0.5); }
.big-button:hover { background:linear-gradient(180deg,#dd4444,#aa2222); border-color:#cc3333; }
.big-button:active { background:linear-gradient(180deg,#881111,#660000); }

#action-buttons { display:flex; gap:8px; flex-wrap:wrap; align-items:center; }
#indicators { display:flex; gap:12px; flex-wrap:wrap; align-items:center; }
.indicator { display:flex; flex-direction:column; align-items:center; gap:2px; }
.ind-label { font-size:8px; color:#555; font-weight:700; letter-spacing:1px; }
.ind-value { font-family:'IBM Plex Mono',monospace; font-size:11px; color:#0f0; background:#111; padding:3px 8px; border-radius:3px; border:1px solid #333; min-width:50px; text-align:center; text-shadow:0 0 4px rgba(0,255,0,0.5); }

#keyboard-decoration { padding:10px 16px 14px; display:flex; flex-direction:column; align-items:center; gap:3px; background:linear-gradient(180deg,#a8a8a0,#8a8a82); border-top:1px solid #bbb; }
.key-row { display:flex; gap:3px; justify-content:center; }
.deco-key { background:linear-gradient(180deg,#4a4a4a,#2a2a2a); color:#ddd; font-family:'IBM Plex Mono',monospace; font-size:8px; font-weight:700; padding:6px 5px; border-radius:4px; border:1px solid #5a5a5a; border-bottom:2px solid #1a1a1a; text-align:center; min-width:36px; box-shadow:0 2px 4px rgba(0,0,0,0.5),0 1px 0 rgba(255,255,255,0.08) inset; cursor:pointer; user-select:none; transition:all 0.06s ease; line-height:1.3; letter-spacing:0.5px; }
.deco-key:hover { background:linear-gradient(180deg,#5a5a5a,#3a3a3a); border-color:#6a6a6a; color:#fff; }
.deco-key:active, .deco-key.active { background:linear-gradient(180deg,#222,#111); border-bottom:1px solid #1a1a1a; transform:translateY(1px); box-shadow:0 0 2px rgba(0,0,0,0.5) inset; color:#0f0; }
.deco-key.extra-wide { min-width:64px; }
.deco-key.space-key { min-width:200px; font-size:8px; letter-spacing:3px; }

#status-bar { width:100%; max-width:800px; background:#111; border:1px solid #333; border-radius:6px; padding:8px 12px; overflow-x:auto; display:flex; justify-content:space-between; align-items:center; gap:10px; flex-wrap:wrap; }
#registers { display:flex; gap:10px; flex-wrap:wrap; font-size:11px; }
.reg { color:#888; white-space:nowrap; }
.reg span { color:#0f0; font-weight:700; text-shadow:0 0 4px rgba(0,255,0,0.3); }
#cassette-status { font-size:10px; color:#ff6600; font-family:'IBM Plex Mono',monospace; white-space:nowrap; text-shadow:0 0 3px rgba(255,102,0,0.3); }

#memory-viewer-toggle { width:100%; max-width:800px; }
#memory-viewer { width:100%; max-width:800px; background:#111; border:1px solid #333; border-radius:6px; padding:10px; transition:max-height 0.3s; overflow:hidden; }
#memory-viewer.collapsed { display:none; }
#mem-controls { display:flex; gap:10px; align-items:center; margin-bottom:8px; flex-wrap:wrap; }
#mem-controls label { font-size:11px; color:#888; }
#mem-controls input[type="text"], #mem-controls input[type="number"] { font-family:'IBM Plex Mono',monospace; font-size:12px; background:#222; color:#0f0; border:1px solid #444; padding:4px 6px; width:60px; border-radius:3px; }
#mem-controls input:focus { color:#fff; border-color:#666; outline:none; }
#mem-dump { font-family:'IBM Plex Mono',monospace; font-size:11px; color:#0a0; line-height:1.5; overflow-x:auto; white-space:pre; text-shadow:0 0 3px rgba(0,255,0,0.2); }

#about-section { width:100%; max-width:800px; display:flex; justify-content:flex-end; }
#about-modal { position:fixed; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0,0.8); display:flex; justify-content:center; align-items:center; z-index:100; }
#about-modal.hidden { display:none; }
#about-content { background:#222; border:2px solid #555; border-radius:12px; padding:24px; max-width:520px; color:#ccc; font-size:13px; line-height:1.6; max-height:80vh; overflow-y:auto; }
#about-content h3 { font-family:'Press Start 2P',monospace; font-size:12px; color:#ffcc00; margin-bottom:12px; }
#about-content h4 { font-family:'IBM Plex Mono',monospace; font-size:12px; color:#0f0; margin:12px 0 6px; }
#about-content p { margin-bottom:10px; }
#about-content button { margin-top:10px; }

#app-footer { width:100%; max-width:800px; text-align:center; padding:16px 0 8px; }
#app-footer a { color:#666; font-size:11px; text-decoration:none; font-family:'IBM Plex Mono',monospace; letter-spacing:1px; transition:color 0.2s; }
#app-footer a:hover { color:#0f0; text-shadow:0 0 8px rgba(0,255,0,0.4); }

@keyframes fadeIn { from{opacity:0;} to{opacity:1;} }

@media (max-width:600px) {
  body { padding:8px; }
  #screen-bezel { margin:0 8px; padding:10px; }
  #controls-area { padding:8px; }
  .coco-text { font-size:11px; }
  #registers { font-size:9px; gap:6px; }
  .deco-key { min-width:20px; font-size:6px; padding:3px 2px; }
  .deco-key.space-key { min-width:120px; }
  #cassette-deck { min-width:200px; }
  #tape-reels { gap:6px; padding:4px; }
  .reel-container { width:36px; height:36px; }
  .reel { width:32px; height:32px; }
  #ml-slot-edge-left, #ml-slot-edge-right { width:4px; }
  #ml-drop-zone { padding:10px; }
  #ml-options-row, #ml-options-row2 { gap:6px; }
  #focus-indicator { font-size:8px; padding:3px 6px; }
}