@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  color-scheme: dark;
  --ink: #f1f0e9;
  --muted: #888b86;
  --quiet: #626661;
  --line: #303437;
  --panel: #1e2224;
  --bg: #171a1c;
  --accent: #d6e6a1;
  --accent-ink: #21251b;
  --mono: 'DM Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
body { min-width: 340px; margin: 0; background: var(--bg); }
.seasonal-decor { position: fixed; inset: 0; z-index: 8; overflow: hidden; pointer-events: none; user-select: none; }
.seasonal-decor span { position: absolute; top: -24px; left: calc(8% + var(--piece) * 19%); color: #eef4dc; font: 14px var(--mono); opacity: .3; animation: seasonal-drift 13s linear infinite; animation-delay: calc(var(--piece) * -2.4s); }
.seasonal-easter span { top: auto; bottom: 5vh; left: calc(5% + var(--piece) * 19%); font-size: 19px; opacity: .42; animation: seasonal-float 4s ease-in-out infinite alternate; animation-delay: calc(var(--piece) * -.5s); }
.seasonal-easter span { filter: saturate(.75); }
.seasonal-halloween .seasonal-pumpkin { top: auto; bottom: 1vh; left: var(--pumpkin-x); font-size: var(--pumpkin-size); line-height: 1; opacity: .95; filter: drop-shadow(0 0 10px #ff762b99); animation: pumpkin-bob 2.8s ease-in-out infinite alternate; animation-delay: var(--pumpkin-delay); }
.seasonal-halloween .seasonal-bat { top: var(--flight-y); left: 0; font-size: 30px; line-height: 1; opacity: .92; filter: drop-shadow(0 2px 5px #000a); animation: bat-flight var(--flight-duration) linear infinite; animation-delay: var(--flight-delay); }
@keyframes seasonal-drift { to { transform: translate3d(25px, 110vh, 0) rotate(90deg); } }
@keyframes seasonal-float { to { transform: translateY(-7px) rotate(8deg); opacity: .36; } }
@keyframes pumpkin-bob { to { transform: translateY(-7px) rotate(4deg) scale(1.08); } }
@keyframes bat-flight { 0% { transform: translate(-12vw, 0) rotate(-6deg); } 30% { transform: translate(25vw, -27px) rotate(5deg); } 65% { transform: translate(70vw, 14px) rotate(-4deg); } 100% { transform: translate(116vw, -16px) rotate(6deg); } }
@media (prefers-reduced-motion: reduce) {
  .seasonal-decor span { animation: none; }
  .seasonal-halloween .seasonal-bat { left: var(--static-x); }
}
button, input { font: inherit; }
button { color: inherit; }
.app-shell { width: min(1280px, calc(100% - 64px)); margin: auto; }
.topbar { height: 74px; display: flex; align-items: center; border-bottom: 1px solid var(--line); gap: 32px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font: 700 21px 'Space Grotesk', sans-serif; text-decoration: none; letter-spacing: -.7px; }
.wordmark-mark { width: 54px; height: 32px; display: block; padding: 4px; border-radius: 4px; background: #f6f6f2; object-fit: contain; }
.topbar-caption, .build-tag, .eyebrow, .machine-state, .upload-action, .register span, .last-instruction span, .progress-row, .screen-hint, .case-top, .model-stamp, .display-caption, .footer { font-family: var(--mono); }
.topbar-caption { color: #a1a49d; font-size: 10px; letter-spacing: 1.15px; }
.build-tag { margin-left: auto; color: #a7aaa3; display: flex; align-items: center; gap: 8px; font-size: 9px; letter-spacing: .8px; }
.build-tag i { width: 6px; height: 6px; background: #a5c36e; border-radius: 50%; box-shadow: 0 0 9px #a5c36e77; }
.workspace { display: grid; grid-template-columns: minmax(0, 1.37fr) minmax(340px, .82fr); gap: clamp(34px, 5vw, 72px); padding: 56px 0 50px; align-items: start; }
.machine-column { min-width: 0; }
.machine-label { display: flex; justify-content: space-between; align-items: end; margin: 0 0 23px; }
.eyebrow { color: #9ea29b; font-size: 9px; letter-spacing: 1.4px; }
h1, h2 { margin: 6px 0 0; font-family: 'Space Grotesk', sans-serif; letter-spacing: -.8px; }
h1 { font-size: 28px; font-weight: 500; }
h2 { font-size: 17px; font-weight: 600; }
.machine-state { display: inline-flex; align-items: center; gap: 8px; padding-bottom: 6px; color: #9da19a; font-size: 9px; letter-spacing: .7px; }
.machine-state i { width: 6px; height: 6px; border-radius: 50%; background: #737874; }
.machine-state.is-on { color: var(--accent); }
.machine-state.is-on i { background: var(--accent); box-shadow: 0 0 10px #d6e6a188; }
.machine-state.is-fault { color: #f0a28e; }
.machine-state.is-fault i { background: #f07860; }
.lisa-case { width: 100%; max-width: 700px; margin: 0 auto; border-radius: 16px 16px 23px 23px; background: linear-gradient(125deg,#e9e5d7,#c6c3b6 57%,#d9d5c9); padding: 14px 18px 19px; box-shadow: 0 32px 60px #0005, inset 0 1px #fff9, inset 0 -3px #7e7a6d5c; }
.case-top { height: 24px; display: flex; align-items: flex-start; justify-content: space-between; padding: 0 4px; color: #716f66; font-size: 8px; letter-spacing: 1px; font-weight: 500; }
.bezel { padding: clamp(13px,2.6vw,24px); background: linear-gradient(145deg,#96948a,#77766d); border-radius: 10px; box-shadow: inset 0 2px 7px #0007, 0 1px #ffffff7a; }
.screen-wrap { position: relative; width: 100%; aspect-ratio: 720 / 364; overflow: hidden; background: #f7f7ee; border-radius: 5px; box-shadow: 0 1px 4px #0008, inset 0 0 15px #0002; }
.screen-wrap.crt-enabled::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; pointer-events: none; background: repeating-linear-gradient(to bottom, transparent 0 2px, #00000013 2px 4px), radial-gradient(ellipse at center, transparent 62%, #00000035 100%); }
canvas { display: block; width: 100%; height: 100%; image-rendering: pixelated; }
.screen-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #30342d; transition: opacity .16s ease; text-align: center; }
.screen-overlay.is-hidden { opacity: 0; pointer-events: none; }
.screen-mark { width: 35px; height: 35px; border: 1px solid #777d68; border-radius: 12px 12px 12px 4px; display: grid; place-items: center; margin-bottom: 11px; color: #525a42; font: 600 19px 'Space Grotesk', sans-serif; }
.screen-title { font: 600 18px 'Space Grotesk', sans-serif; letter-spacing: -.4px; }
.screen-copy { margin-top: 5px; color: #666b5d; font-size: 11px; }
.screen-hint { margin-top: 18px; color: #767a6b; font-size: 8px; letter-spacing: 1.2px; }
.case-bottom { height: 46px; display: flex; align-items: end; gap: 18px; padding: 0 8px; }
.model-stamp { margin-right: auto; color: #77746b; font-size: 8px; letter-spacing: 1.1px; }
.drive-slot { width: 132px; height: 9px; border-radius: 0 0 5px 5px; background: linear-gradient(#6d6a61,#a7a396); padding: 3px 10px; box-shadow: inset 0 1px 2px #0008; }
.drive-slot span { display: block; height: 2px; border-radius: 2px; background: #46443e; }
.drive-slot { display: block; border: 0; cursor: pointer; }
.drive-slot:focus-visible { outline: 2px solid #78865d; outline-offset: 3px; }
.drive-slot.has-disk span { background: #d6e6a1; box-shadow: 0 0 6px #d6e6a1; }
.power-lamp { width: 6px; height: 6px; margin: 0 4px 2px 0; background: #77766e; border-radius: 50%; box-shadow: inset 0 1px 1px #0005; }
.power-lamp.is-on { background: #a5c36e; box-shadow: 0 0 9px #b5dd78aa; }
.display-caption { max-width: 700px; margin: 15px auto 0; display: flex; justify-content: space-between; color: #777c77; font-size: 9px; letter-spacing: .1px; }
.display-caption b { color: #b7bbb2; font-weight: 400; }
.crt-toggle { padding: 0; border: 0; background: none; color: #8a9088; font: 9px var(--mono); letter-spacing: .65px; cursor: pointer; }
.crt-toggle[aria-pressed="true"] { color: var(--accent); }
.display-zoom-button { padding: 0; border: 0; background: none; color: var(--accent); font: 9px var(--mono); letter-spacing: .65px; cursor: pointer; }
.display-zoom-button:hover { color: #f0f5db; }
.display-dialog { width: min(1500px, 96vw); max-width: none; height: min(94vh, 1000px); max-height: none; padding: 20px; border: 1px solid #555b50; border-radius: 14px; color: var(--ink); background: #171a1c; box-shadow: 0 28px 100px #000b; }
.display-dialog::backdrop { background: #080a0ce8; backdrop-filter: blur(8px); }
.display-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.display-dialog-header h2 { font-size: 18px; }
.display-dialog-actions { display: flex; align-items: center; gap: 8px; color: #b7bbb2; font: 10px var(--mono); }
.display-dialog-actions button { width: 34px; height: 34px; border: 1px solid #424844; border-radius: 7px; color: var(--ink); background: #252a2b; font-size: 20px; cursor: pointer; }
.display-dialog-actions button:hover { border-color: #9dae77; background: #30372f; }
.display-dialog-actions #close-display { margin-left: 12px; }
.display-zoom-scroll { position: relative; width: 100%; height: calc(100% - 92px); margin-top: 16px; overflow: auto; display: grid; place-items: center; border: 1px solid #454941; border-radius: 9px; background: #090b0c; }
.display-zoom-scroll.crt-enabled::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: repeating-linear-gradient(to bottom, transparent 0 2px, #00000013 2px 4px), radial-gradient(ellipse at center, transparent 62%, #00000035 100%); }
.display-zoom-scroll canvas { display: block; width: auto; height: auto; max-width: none; max-height: none; image-rendering: pixelated; image-rendering: crisp-edges; }
.display-dialog-note { margin: 10px 0 0; color: #7f857d; font: 9px var(--mono); }
.premade-download { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 10px; color: #747973; font: 8px var(--mono); letter-spacing: .45px; }
.premade-download a { color: var(--accent); text-decoration: none; font-size: 9px; letter-spacing: 0; }
.premade-download a:hover { color: #f0f5db; text-decoration: underline; }
.field-label { display: block; margin: 0 0 6px; color: #828980; font: 8px var(--mono); letter-spacing: .65px; }
.firmware-box { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 13px; padding-top: 11px; border-top: 1px solid #34393b; }
.firmware-box > .field-label, .firmware-note { grid-column: 1 / -1; }
.firmware-box > .field-label { margin-bottom: 0; }
.firmware-upload { position: relative; display: grid; gap: 5px; min-width: 0; padding: 9px 10px; border: 1px solid #404643; border-radius: 6px; background: #202526; cursor: pointer; }
.firmware-upload:hover { border-color: #87966a; background: #252b27; }
.firmware-upload span { color: var(--accent); font: 9px var(--mono); }
.firmware-upload small { overflow: hidden; color: #8e938b; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.firmware-upload input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.firmware-note { margin: 0; color: #777e76; font: 8px/1.5 var(--mono); }
.system-choice { width: 100%; min-height: 39px; padding: 0 10px; border: 1px solid #454b46; border-radius: 7px; color: #e3e6dc; background: #222729; font: 10px var(--mono); }
.system-choice:focus-visible { outline: 2px solid #9dae77; outline-offset: 2px; }
.system-choice:disabled { opacity: .65; }
.system-detail { min-height: 42px; margin: 9px 0 7px; color: #9ba197; font-size: 10px; line-height: 1.45; }
.library-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.library-link, .load-system-button { border: 0; padding: 0; background: none; color: var(--accent); font: 8px var(--mono); letter-spacing: .35px; text-decoration: none; cursor: pointer; }
.library-link:hover, .load-system-button:hover { color: #f0f5db; text-decoration: underline; }
.library-link[hidden] { display: none; }
.archive-note { margin: 9px 0 11px; color: #777e76; font: 8px/1.5 var(--mono); }
.control-column { display: flex; flex-direction: column; gap: 14px; }
.panel { padding: 22px; border: 1px solid #33383a; border-radius: 11px; background: var(--panel); box-shadow: 0 8px 24px #0001; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; }
.panel-heading.compact { align-items: center; }
.step-number { font: 500 10px var(--mono); color: #737770; }
.panel-copy { max-width: 320px; margin: 12px 0 19px; color: #a5a9a2; font-size: 12px; line-height: 1.55; }
.upload-card { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 12px; border: 1px dashed #51564f; border-radius: 8px; background: #222729; cursor: pointer; transition: border-color .15s, background .15s; }
.upload-card:hover { border-color: #87966a; background: #252b27; }
.upload-card input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.upload-icon { width: 31px; height: 31px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 7px; background: #343a31; color: var(--accent); font-size: 18px; }
.upload-text { min-width: 0; display: grid; gap: 4px; }
.upload-text strong { max-width: 185px; overflow: hidden; color: #e7e8e1; font-size: 11px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.upload-text small { color: #8e938b; font-size: 9px; }
.upload-action { margin-left: auto; color: var(--accent); font-size: 8px; letter-spacing: .8px; }
.button-row { display: flex; gap: 8px; margin-top: 12px; }
.button { height: 39px; border: 0; border-radius: 7px; cursor: pointer; font-size: 11px; font-weight: 600; transition: filter .15s, transform .15s; }
.button:hover:not(:disabled) { filter: brightness(1.07); transform: translateY(-1px); }
.button:disabled { cursor: not-allowed; opacity: .4; }
.button-primary { flex: 1; background: var(--accent); color: var(--accent-ink); }
.button-secondary { width: 42px; background: #34393a; color: #d6dad2; font-size: 17px; }
.status-line { min-height: 14px; margin-top: 12px; color: #8e938b; font: 9px/1.45 var(--mono); }
.status-line[data-kind="success"] { color: #bdce91; }
.status-line[data-kind="error"] { color: #f0a28e; }
.chip-badge { padding: 5px 7px; border: 1px solid #484e47; border-radius: 5px; color: #c0c7b7; font: 9px var(--mono); }
.register-grid { display: grid; grid-template-columns: 1fr 1fr; margin-top: 17px; border: 1px solid #34393b; border-radius: 7px; overflow: hidden; }
.register { min-height: 49px; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 0 11px; border-bottom: 1px solid #34393b; }
.register:nth-child(odd) { border-right: 1px solid #34393b; }
.register:nth-last-child(-n+2) { border-bottom: 0; }
.register span, .last-instruction span { color: #848a82; font-size: 8px; letter-spacing: .4px; }
.register code, .last-instruction code { color: #e4e7dd; font: 10px var(--mono); }
.last-instruction { display: flex; justify-content: space-between; align-items: center; padding: 12px 1px 11px; }
.step-button { width: 100%; height: 34px; display: flex; align-items: center; justify-content: space-between; padding: 0 10px; border: 1px solid #424845; border-radius: 6px; background: #292e2d; color: #c9cec4; cursor: pointer; font-size: 10px; }
.step-button:disabled { opacity: .38; cursor: not-allowed; }
.step-button span { color: var(--accent); font-size: 15px; }
.cpu-actions { display: flex; gap: 8px; }
.cpu-actions .step-button { flex: 1; }
.run-button { min-width: 76px; border: 1px solid #718054; border-radius: 6px; background: #394331; color: var(--accent); cursor: pointer; font-size: 10px; }
.run-button:disabled { opacity: .38; cursor: not-allowed; }
.performance-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; padding-top: 13px; border-top: 1px solid #34393b; }
.speed-control { min-width: 0; }
.speed-control label { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #92988f; font: 8px var(--mono); letter-spacing: .5px; }
.speed-control output { color: var(--accent); font-size: 9px; }
.speed-control input { width: 100%; height: 18px; margin: 5px 0 2px; accent-color: #b8d47e; cursor: pointer; }
.speed-control small { display: block; min-height: 24px; color: #737a73; font-size: 8px; line-height: 1.45; }
.speed-control input:focus-visible { outline: 2px solid #9dae77; outline-offset: 2px; }
.drive-media { display: flex; align-items: center; gap: 8px; min-height: 29px; margin-top: 9px; color: #939890; font: 8px/1.4 var(--mono); }
.next-disk-button { margin-left: auto; padding: 4px 6px; border: 1px solid #718054; border-radius: 4px; background: #394331; color: var(--accent); cursor: pointer; font: 8px var(--mono); }
.next-disk-button[hidden] { display: none; }
.drive-led { width: 6px; height: 6px; flex: 0 0 auto; border-radius: 50%; background: #4d524f; }
.drive-media:has(.eject-button:not([hidden])) .drive-led { background: var(--accent); box-shadow: 0 0 7px #d6e6a188; }
.eject-button { margin-left: auto; padding: 4px 6px; border: 1px solid #494e48; border-radius: 4px; background: #2d3230; color: #cbd2c2; cursor: pointer; font: 8px var(--mono); }
.drive-media:has(.next-disk-button:not([hidden])) .eject-button { margin-left: 0; }
.print-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 1px 11px; color: #a9b29e; font: 8px var(--mono); }
.print-row[hidden] { display: none; }
.print-download { padding: 6px 8px; border: 1px solid #718054; border-radius: 5px; color: var(--accent); background: #333c2f; cursor: pointer; font: 8px var(--mono); }
.print-download:hover { background: #3d4936; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; clip-path: inset(50%); }
.progress-panel { padding: 17px 20px; }
.progress-row { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; color: #c4c8bd; font-size: 8px; }
.progress-state { color: var(--accent); }
.progress-track { height: 3px; margin-top: 8px; border-radius: 3px; background: #383d3b; overflow: hidden; }
.progress-track i { display: block; width: 100%; height: 100%; background: var(--accent); border-radius: inherit; }
.progress-track i.progress-media { width: 100%; }
.progress-row.muted { color: #727771; font-size: 8px; }
.footer { display: flex; justify-content: space-between; gap: 20px; padding: 18px 0 24px; border-top: 1px solid var(--line); color: #747973; font-size: 8px; }
.footer a { color: #a9b29e; text-decoration: none; }
.footer a:hover { color: var(--accent); text-decoration: underline; }
.lisa-pet-widget { position: fixed; z-index: 20; right: 22px; bottom: 20px; display: flex; flex-direction: column; align-items: end; gap: 10px; font-family: 'DM Sans', sans-serif; }
.lisa-pet-button { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px 7px 7px; border: 1px solid #667d9d; border-radius: 28px; color: #f4f7ff; background: linear-gradient(145deg,#344e72,#233448); box-shadow: 0 8px 24px #0008, inset 0 1px #ffffff30; font: 600 9px var(--mono); letter-spacing: .6px; cursor: pointer; }
.lisa-pet-button:hover { transform: translateY(-2px); border-color: #a5c3eb; }
.pet-avatar { width: 36px; height: 36px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 50%; background: #90b9f3; box-shadow: inset 0 -3px #668dc9; }
.pet-avatar svg { width: 29px; height: 29px; overflow: visible; fill: #263653; stroke: #e3efff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.pet-avatar svg path:nth-of-type(2) { fill: none; }
.lisa-chat-panel { width: min(350px, calc(100vw - 28px)); height: min(450px, calc(100dvh - 96px)); display: flex; flex-direction: column; overflow: hidden; border: 1px solid #46525b; border-radius: 13px; background: #1e2326; color: var(--ink); box-shadow: 0 18px 55px #000a; }
.lisa-chat-panel[hidden] { display: none; }
.lisa-chat-header { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: #252d32; }
.lisa-chat-header strong, .lisa-chat-header small { display: block; }
.lisa-chat-header strong { font-size: 12px; }
.lisa-chat-header small { margin-top: 3px; color: #9ca59e; font: 8px var(--mono); }
.lisa-chat-header > button { width: 28px; height: 28px; margin-left: auto; border: 1px solid #454e52; border-radius: 6px; color: #c4cec9; background: #2b3337; font-size: 18px; cursor: pointer; }
.lisa-chat-messages { flex: 1; display: flex; flex-direction: column; gap: 9px; overflow: auto; padding: 13px; }
.chat-message { max-width: 88%; margin: 0; padding: 9px 10px; border: 1px solid #384144; border-radius: 9px 9px 9px 2px; color: #d6ddd7; background: #252c2e; font-size: 11px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-message.chat-question { align-self: end; border-color: #506447; border-radius: 9px 9px 2px 9px; color: #e4ebd7; background: #313b2c; }
.lisa-chat-form { display: flex; align-items: end; gap: 7px; padding: 10px; border-top: 1px solid var(--line); }
.lisa-chat-form textarea { min-width: 0; flex: 1; resize: vertical; max-height: 100px; padding: 8px 9px; border: 1px solid #424a49; border-radius: 7px; outline: 0; color: #edf0e9; background: #171b1d; font: 10px/1.4 var(--mono); }
.lisa-chat-form textarea:focus { border-color: #8fa96b; }
.lisa-chat-form button { height: 34px; padding: 0 10px; border: 0; border-radius: 6px; color: #23291e; background: var(--accent); font: 600 8px var(--mono); cursor: pointer; }
.lisa-chat-form button:disabled { opacity: .55; cursor: wait; }
.lisa-chat-note { margin: 0; padding: 0 12px 10px; color: #7f8880; font: 8px var(--mono); }

@media (max-width: 900px) {
  .app-shell { width: min(720px, calc(100% - 36px)); }
  .workspace { grid-template-columns: 1fr; gap: 32px; padding-top: 37px; }
  .control-column { max-width: 700px; width: 100%; margin: auto; }
}
@media (max-width: 530px) {
  .app-shell { width: calc(100% - 26px); }
  .topbar { height: 62px; gap: 13px; }
  .topbar-caption { display: none; }
  .build-tag { font-size: 8px; }
  .machine-label { margin-bottom: 17px; }
  h1 { font-size: 24px; }
  .lisa-case { padding: 11px 11px 14px; border-radius: 12px 12px 18px 18px; }
  .bezel { padding: 10px; }
  .case-bottom { height: 33px; }
  .drive-slot { width: 76px; }
  .panel { padding: 17px; }
  .footer { flex-direction: column; gap: 7px; }
  .performance-controls { grid-template-columns: 1fr; }
  .display-caption { align-items: center; gap: 8px; flex-wrap: wrap; }
  .display-caption span:nth-child(2) { display: none; }
  .display-dialog { padding: 12px; }
  .display-dialog-header h2 { font-size: 15px; }
  .display-dialog-actions { gap: 5px; }
  .display-dialog-actions button { width: 30px; height: 30px; }
  .lisa-pet-widget { right: 10px; bottom: 10px; }
  .lisa-chat-panel { height: min(420px, calc(100dvh - 84px)); }
}
