@font-face {
    font-family: "Instrument Sans";
    src: url("assets/instrument-sans-var-latin.woff2") format("woff2");
    font-style: normal; font-weight: 400 700; font-display: swap;
}
@font-face {
    font-family: "Workbench Mono";
    src: url("assets/ibm-plex-mono-400-latin.woff2") format("woff2");
    font-style: normal; font-weight: 400; font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Workbench Mono";
    src: url("assets/ibm-plex-mono-400-symbols.woff2") format("woff2");
    font-style: normal; font-weight: 400; font-display: swap;
    unicode-range: U+2190-2193, U+2500-257F;
}
:root {
    color-scheme: dark;
    --sans: "Instrument Sans", Arial, sans-serif;
    --mono: "Workbench Mono", "Cascadia Mono", "Menlo", "DejaVu Sans Mono", monospace;
    --ink: #0b0f0d; --surface: #111713; --raised: #182019;
    --line: #2a362b; --text: #e6ecdf; --muted: #9baa94; --quiet: #718268;
    --lime: #c5ff57; --cyan: #92cfc5; --amber: #e5c573;
    --blue: #10191a; --terminal-ink: #abd6d0; --dark-cyan: #344f45;
    --silver: #b7c8ae; --yellow: #e7d486; --selection-bg: #c5ff57;
    --selection-ink: #152109; --mark-bg: #60445c; --mark-ink: #fff3b7;
    --cell: 20px;
    font: 14px/1.5 var(--sans);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--ink); color: var(--text); height: 100vh; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button { color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
button:disabled { cursor: default; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
button::-moz-focus-inner { border: 0; }
::selection { color: #17240a; background: var(--lime); }
.icon { width: 18px; height: 18px; flex-shrink: 0; display: inline-block; vertical-align: middle; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.icon.tiny { width: 13px; height: 13px; }
.icon-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
kbd { font: 9px/1.3 var(--mono); color: #8d9c82; background: #192016; border: 1px solid #34412c; border-radius: 3px; padding: 2px 4px; white-space: nowrap; }
.small-dot, .engine-light { display: inline-block; width: 5px; height: 5px; background: var(--lime); border-radius: 50%; flex-shrink: 0; }
.skip-link { position: fixed; top: -60px; left: 16px; padding: 10px 18px; color: #132007; background: var(--lime); z-index: 20; }
.skip-link:focus { top: 8px; }
.app-header { height: 65px; min-height: 65px; display: flex; align-items: center; gap: 30px; padding: 0 25px; border-bottom: 1px solid var(--line); background: #0d120e; }
.brand { display: flex; align-items: center; gap: 12px; font: 21px/1 var(--mono); letter-spacing: -1.1px; white-space: nowrap; }
.brand-mark { color: var(--lime); letter-spacing: -4px; padding-right: 2px; font-size: 24px; }
.brand-cursor { color: var(--lime); }
.online-badge { font: 9px/1.2 var(--mono); color: #b2cb98; letter-spacing: 1.2px; border: 1px solid #3c4b31; border-radius: 3px; padding: 5px 6px; margin-left: 1px; }
.engine-status { display: flex; align-items: center; gap: 8px; color: #8a9b7f; font: 9px/1.3 var(--mono); }
.engine-light.loading { background: var(--amber); animation: breathe 1.5s ease-in-out infinite; }
.engine-light.failed { background: #f29a83; }
.app-actions { display: flex; align-items: center; gap: 9px; margin-left: auto; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; background: none; border: 1px solid transparent; border-radius: 4px; padding: 7px 9px; min-height: 33px; color: #adba9f; font-size: 11px; }
.icon-button .icon { width: 16px; height: 16px; }
.icon-button:hover:not(:disabled) { color: var(--text); background: var(--raised); border-color: #35442c; }
.icon-button:disabled { opacity: .4; }
.icon-button[aria-pressed=true] { color: var(--lime); background: #192315; }
.icon-button kbd { margin-left: 5px; font-size: 9px; }
.icon-only { padding-inline: 8px; }
.source-link { display: flex; align-items: center; gap: 5px; font-size: 11px; padding: 7px 0 7px 12px; margin-left: 7px; border-left: 1px solid #303d28; color: #b4c3a5; }
.source-link .icon { width: 13px; height: 13px; }
.source-link:hover { color: var(--lime); }
.workspace-layout { flex: 1; display: flex; min-height: 0; }
#workspace-sidebar { display: flex; flex-direction: column; flex: 0 0 229px; width: 229px; padding: 23px 15px 16px; border-right: 1px solid var(--line); background: #101610; min-height: 0; overflow: auto; scrollbar-color: #425436 #101610; scrollbar-width: thin; }
.sidebar-heading { display: flex; justify-content: space-between; align-items: center; font: 9px/1.4 var(--mono); letter-spacing: 1px; color: #a4b797; margin-bottom: 16px; padding: 0 2px; }
.sidebar-heading #session-count { color: #6f855f; letter-spacing: 0; }
.open-button { background: #c5ff57; color: #1a2a0a; border: 1px solid #c5ff57; border-radius: 4px; padding: 10px; min-height: 39px; display: flex; gap: 8px; align-items: center; font-size: 11px; font-weight: 600; }
.open-button .icon { width: 16px; height: 16px; }
.open-button kbd { margin-left: auto; color: #40581e; border-color: #89b43b; background: #b7ee51; font-size: 9px; }
.open-button:hover:not(:disabled), .welcome-open:hover:not(:disabled) { background: #d6ff89; }
.open-button:disabled, .welcome-open:disabled { opacity: .4; }
.files-heading { display: flex; justify-content: space-between; align-items: center; margin: 24px 2px 10px; font: 9px/1.3 var(--mono); letter-spacing: 1px; color: #7e9270; }
.mini-button { border: 0; background: transparent; padding: 4px; border-radius: 3px; color: #8ba277; }
.mini-button .icon { width: 14px; height: 14px; }
.mini-button:hover:not(:disabled) { color: var(--lime); background: #202c19; }
.mini-button:disabled { opacity: .3; }
#session-list { margin: 0; padding: 0; list-style: none; overflow: auto; min-height: 93px; max-height: 32vh; scrollbar-color: #425436 #101610; scrollbar-width: thin; }
.no-sessions { display: flex; align-items: flex-start; gap: 10px; padding: 14px 8px 18px; color: #6f8364; font-size: 10px; line-height: 1.7; }
.no-sessions .icon { width: 18px; height: 18px; margin-top: 2px; color: #425b37; }
.session-entry { width: 100%; display: flex; align-items: center; gap: 9px; padding: 11px 9px; background: transparent; border: 1px solid transparent; border-radius: 4px; color: #a3ba98; text-align: left; margin-bottom: 3px; min-height: 52px; }
.session-entry:hover { background: #1a2517; }
.session-entry[aria-current=true] { background: #1d2c15; border-color: #3b5429; color: var(--lime); }
.session-entry .icon { width: 16px; height: 16px; }
.session-description { min-width: 0; flex: 1; }
.session-name { display: block; font-size: 11px; font-weight: 500; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.session-size { display: block; font: 9px/1.5 var(--mono); margin-top: 4px; color: #7f9970; }
.dirty-dot { width: 5px; height: 5px; background: var(--amber); border-radius: 50%; flex-shrink: 0; }
.sample-sidebar { margin: 8px 0 24px; display: flex; align-items: center; gap: 8px; background: none; color: #a6bd92; border: 1px solid #34462b; border-radius: 4px; padding: 9px; font-size: 10px; text-align: left; }
.sample-sidebar>.icon:first-child { width: 16px; height: 16px; }
.sample-sidebar>.icon:last-child { margin-left: auto; }
.sample-sidebar:hover:not(:disabled) { border-color: #7a9c56; color: var(--lime); }
.sample-sidebar:disabled { opacity: .35; }
.file-details { border-top: 1px solid #2c3b25; padding: 20px 4px 23px; }
.file-details h2 { font: 9px/1.3 var(--mono); letter-spacing: 1px; color: #78906b; margin: 0 0 18px; }
.file-details dl { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.file-details dl>div { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 10px; }
.file-details dt { color: #829676; flex-shrink: 0; }
.file-details dd { margin: 0; color: #b5c5a7; text-align: right; overflow-wrap: anywhere; font: 9px/1.4 var(--mono); }
.file-details #detail-offset { font-size: 9px; }
.file-details dd.pending { color: var(--amber); }
.subtle-button { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; margin-top: 20px; padding: 7px 0; border: 0; background: none; text-align: left; color: #a6c38d; font-size: 10px; }
.subtle-button .icon { width: 13px; height: 13px; }
.subtle-button:hover:not(:disabled) { color: var(--lime); }
.subtle-button:disabled { opacity: .3; }
.workspace-note { display: flex; gap: 9px; margin-top: auto; border-top: 1px solid #2b3b24; padding: 20px 4px 16px; }
.workspace-note .icon { width: 15px; height: 15px; color: #819e67; margin-top: 2px; }
.workspace-note strong { font-size: 10px; color: #b4c9a3; font-weight: 500; }
.workspace-note p { font-size: 10px; color: #809771; line-height: 1.7; margin: 6px 0 0; }
.sidebar-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #647d55; font-size: 9px; padding: 0 4px; }
.sidebar-footer:hover { color: var(--lime); }
#terminal { position: relative; display: grid; grid-template-rows: 39px 45px minmax(0, 1fr) 28px 33px; flex: 1; min-width: 0; min-height: 0; margin: 16px 18px; border: 1px solid #34432d; border-radius: 7px; overflow: hidden; outline: none; background: #101610; font: 14px/var(--cell) var(--mono); }
#terminal:focus-visible { border-color: #597440; box-shadow: 0 0 0 1px #59744033; }
#title { display: flex; align-items: center; gap: 15px; padding: 0 12px; min-width: 0; background: #172014; border-bottom: 1px solid #303f28; color: #c9d6bd; }
.file-title { min-width: 0; display: flex; align-items: center; gap: 8px; flex-shrink: 0; max-width: 48%; }
.file-title>.icon { width: 14px; height: 14px; color: #94ae7c; }
#filename { font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.edit-state { white-space: nowrap; font-size: 9px; letter-spacing: .5px; color: #819b6c; padding: 1px 5px; background: #1f2c17; border: 1px solid #3b4e2c; border-radius: 2px; line-height: 1.7; flex-shrink: 0; }
.edit-state.dirty { background: #342d15; color: var(--amber); border-color: #68572b; }
#position { margin-left: auto; overflow: hidden; text-overflow: ellipsis; white-space: pre; font-size: 9px; color: #96ac84; }
#extension-menu { font: 9px/1.3 var(--mono); border: 1px solid #3b502e; border-radius: 3px; padding: 4px 8px; color: #b7d39c; background: #24311b; margin-left: 0; }
#extension-menu:hover:not(:disabled) { border-color: var(--lime); color: var(--lime); }
#extension-menu:disabled { color: #5a714b; border-color: transparent; background: none; }
.editor-toolbar { display: flex; align-items: center; gap: 4px; padding: 5px 8px; border-bottom: 1px solid #303c28; background: #121b11; font-family: var(--sans); white-space: nowrap; min-width: 0; overflow: auto hidden; scrollbar-width: none; }
.mode-switcher { display: inline-flex; align-items: center; padding: 2px; border: 1px solid #35452b; border-radius: 4px; gap: 1px; flex-shrink: 0; }
.mode-switcher button { padding: 3px 11px; min-height: 25px; border: 1px solid transparent; border-radius: 2px; background: none; color: #8ea77c; font-size: 10px; }
.mode-switcher button[aria-pressed=true] { color: var(--lime); background: #25371b; border-color: #3f5b2b; }
.mode-switcher button:hover:not(:disabled):not([aria-pressed=true]) { color: var(--text); background: #24301d; }
.mode-switcher button:disabled { opacity: .45; }
.toolbar-key { font: 9px/1 var(--mono); color: #5d774d; margin-inline: 7px; }
.toolbar-divider { height: 18px; width: 1px; background: #33432a; margin-inline: 5px; flex-shrink: 0; }
.tool-button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; border: 1px solid transparent; border-radius: 3px; color: #a9bf99; background: transparent; font-size: 10px; padding: 5px 7px; min-height: 30px; flex-shrink: 0; }
.tool-button .icon { width: 14px; height: 14px; }
.tool-button kbd { font-size: 9px; margin-left: 2px; padding: 1px 3px; color: #738c61; }
.tool-button:hover:not(:disabled) { background: #22301b; color: var(--text); border-color: #384d2a; }
.tool-button:disabled { opacity: .35; }
.toolbar-edit-actions { display: flex; align-items: center; gap: 7px; margin-left: auto; padding-left: 6px; }
.download-button { display: inline-flex; align-items: center; gap: 6px; min-height: 29px; padding: 5px 10px; border: 1px solid #597c37; border-radius: 3px; background: #23351a; color: #c3e8a4; font-size: 10px; font-weight: 500; white-space: nowrap; }
.download-button .icon { width: 13px; height: 13px; }
.download-button:hover:not(:disabled) { border-color: var(--lime); color: var(--lime); }
.download-button:disabled { opacity: .35; }
#editor-stage { min-width: 0; min-height: 0; position: relative; padding: 11px 10px; background: var(--blue); }
#viewport { overflow: hidden; width: 100%; height: 100%; font: 14px/var(--cell) var(--mono); color: var(--terminal-ink); }
.row { height: var(--cell); white-space: pre; }
.edge { display: inline-block; width: 1ch; background: #09100c; color: #557548; }
.selected, .search { background: var(--selection-bg); color: var(--selection-ink); }
.marked { background: var(--mark-bg); color: var(--mark-ink); }
.changed { color: var(--yellow); }
.caret { box-shadow: inset 0 -2px var(--yellow); }
.editor-status { display: flex; align-items: center; gap: 12px; background: #172014; border-top: 1px solid #2b3d22; padding: 0 10px; min-width: 0; }
#status { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #c2d4a9; font: 9px/1.4 var(--mono); flex: 1; }
.status-local { display: flex; align-items: center; gap: 5px; color: #718b5e; font: 9px/1 var(--mono); letter-spacing: .5px; white-space: nowrap; }
.status-local .icon { width: 10px; height: 10px; }
#keys { display: flex; align-items: stretch; overflow: auto hidden; scrollbar-width: none; background: #101a0e; border-top: 1px solid #314129; }
#keys button { min-width: 0; flex: 1 0 7ch; display: flex; align-items: center; gap: 6px; padding: 4px 7px; border: 0; border-right: 1px solid #2d4023; background: #1c2b16; color: #adc69a; font: 10px/1.3 var(--mono); text-align: start; }
#keys button:last-child { border-right: 0; }
#keys button:disabled { color: #526b43; background: #152010; cursor: default; }
#keys .number { width: 14px; flex-shrink: 0; text-align: center; color: #71965c; border: 1px solid #3c592c; font: 9px/1.5 var(--mono); border-radius: 2px; }
#keys button:disabled .number { color: #425c33; border-color: #2d4221; }
#keys button:focus-visible, #keys button:hover:not(:disabled) { background: #304720; color: var(--lime); outline-offset: -3px; }
#popup { position: absolute; z-index: 6; top: 50%; left: 50%; transform: translate(-50%, -50%); min-width: min(390px, calc(100% - 32px)); max-width: calc(100% - 32px); max-height: calc(100% - 24px); overflow: auto; background: #172117; color: #d6e5ca; padding: 17px 20px 20px; border: 1px solid #69864a; border-radius: 6px; box-shadow: 0 18px 70px #000b, 0 0 0 200vmax #030803ba; font: 12px/1.65 var(--sans); scrollbar-color: #617c45 #172117; scrollbar-width: thin; }
#popup fieldset { min-width: 0; margin: 0; border: 0; padding: 0; }
#popup legend { padding: 0; margin-bottom: 16px; color: var(--lime); font-size: 16px; font-weight: 500; letter-spacing: -.3px; }
#popup label { display: flex; gap: 12px; align-items: center; justify-content: space-between; margin: 9px 0; max-width: 100%; color: #b4c9a2; }
#popup input:not([type="checkbox"]), #popup select, #popup textarea { min-width: 8ch; width: 36ch; max-width: min(70vw, 100%); background: #0c150a; color: #d2e7bd; border: 1px solid #476035; border-radius: 3px; font: 11px/1.7 var(--mono); padding: 5px 8px; }
#popup input[type="checkbox"] { accent-color: var(--lime); width: 14px; height: 14px; }
#popup input[type="file"] { max-width: 100%; width: auto; }
#popup select[size] { width: 100%; min-width: min(60ch, 100%); max-width: 100%; padding: 5px; }
#popup select option { padding: 4px; }
#popup button { cursor: pointer; color: #c4ddae; background: #263a1c; font: 11px/1.6 var(--sans); padding: 5px 10px; border: 1px solid #4d6c35; border-radius: 3px; margin: 8px 6px 2px 0; min-height: 29px; }
#popup button:focus-visible, #popup button:hover:not(:disabled) { background: #3a5427; color: var(--lime); border-color: var(--lime); }
#popup button:disabled { color: #607d4f; border-color: #334d26; background: #1f2c17; cursor: default; }
#popup button[type="submit"] { background: var(--lime); color: #18280a; border-color: var(--lime); font-weight: 600; }
#popup.mode { min-width: min(270px, calc(100% - 32px)); }
#popup.mode legend { margin-bottom: 11px; }
#popup.mode button { display: block; width: 100%; text-align: left; color: #b9d1a3; padding: 9px 13px; margin: 4px 0; }
#popup.mode button[aria-selected="true"] { background: #c5ff57; color: #142008; border-color: #c5ff57; }
#dialog-form p { margin: 8px 0 12px; }
#dialog-form>div { max-width: 100%; overflow-wrap: anywhere; }
#dialog-form pre { font-family: var(--mono); font-size: 10px; line-height: 1.6; max-width: 100%; overflow: auto; }
.context-help { padding: 10px 12px; background: #101a0d; border: 1px solid #334f27; border-radius: 4px; margin-bottom: 12px; font: 10px/1.7 var(--mono); }
.context-help strong { display: block; color: #c2e69e; margin-bottom: 8px; }
.assembly-comparison { max-height: 34vh; max-width: 100%; overflow: auto; font: 11px/1.5 var(--mono); }
.integer-bits { display: grid; grid-template-columns: repeat(auto-fit, minmax(7ch, 1fr)); gap: .25rem .75rem; max-height: 34vh; overflow: auto; }
#download { position: absolute; z-index: 4; bottom: 76px; right: 20px; background: var(--lime); color: #152609; padding: 12px 19px; border: 1px solid #ddffa3; border-radius: 4px; font: 600 12px/1.4 var(--sans); box-shadow: 0 8px 28px #0008; }
#download:hover { background: #dbffa3; }
.welcome { position: absolute; z-index: 1; inset: 0; overflow: auto; background: #0d140f; color: var(--text); font-family: var(--sans); display: flex; flex-direction: column; padding: clamp(24px, 3.2vw, 48px) clamp(27px, 4vw, 62px); scrollbar-color: #435b34 #0d140f; scrollbar-width: thin; }
.welcome::before { content: ''; pointer-events: none; position: absolute; inset: 0; background-image: linear-gradient(#c5ff5703 1px, transparent 1px), linear-gradient(90deg, #c5ff5703 1px, transparent 1px); background-size: 40px 40px; }
.welcome-topline { display: flex; align-items: center; justify-content: space-between; gap: 15px; font: 9px/1.5 var(--mono); color: #95ac80; letter-spacing: 1px; position: relative; }
.welcome-topline>span:first-child { display: flex; gap: 8px; align-items: center; }
.welcome-offset { color: #4a633e; letter-spacing: 0; }
.welcome-main { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(25px, 3.5vw, 58px); margin-block: auto; padding-block: 36px; align-items: center; }
.welcome-eyebrow { font: 9px/1.5 var(--mono); letter-spacing: 1px; color: #7e976b; margin: 0 0 20px; }
.welcome h1 { font-size: clamp(44px, 4.7vw, 72px); letter-spacing: -.06em; line-height: 1.01; font-weight: 500; margin: 0; }
.welcome h1 span { color: var(--lime); }
.welcome-description { font-size: clamp(14px, 1.35vw, 19px); line-height: 1.5; letter-spacing: -.25px; margin: 23px 0 0; color: #d0ddc4; }
.welcome-detail { font-size: 11px; line-height: 1.85; color: #869c75; margin: 14px 0 0; }
.welcome-traits { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 23px; }
.welcome-traits span { font: 9px/1.6 var(--mono); letter-spacing: .5px; color: #9cb48a; padding: 4px 6px; border: 1px solid #32462a; background: #172311; border-radius: 2px; }
.open-card { border: 1px dashed #527239; background: #15200f; border-radius: 7px; padding: 25px 22px 22px; text-align: center; position: relative; }
.file-illustration { width: 103px; height: 75px; margin: 0 auto 16px; position: relative; color: #729453; }
.file-outline { width: 52px; height: 64px; stroke-width: 1.05; position: absolute; left: 24px; top: 0; }
.file-chip { position: absolute; bottom: 0; left: 7px; background: #2e431e; border: 1px solid #72984a; border-radius: 3px; color: var(--lime); font: 9px/1.6 var(--mono); letter-spacing: .8px; padding: 5px 9px; transform: rotate(-5deg); }
.file-cross { position: absolute; right: -2px; top: 11px; color: #8eaf6a; font: 17px/1 var(--mono); }
.open-card h2 { font-size: 23px; letter-spacing: -.7px; font-weight: 500; line-height: 1.1; margin: 0 0 11px; }
.open-card>p { font-size: 10px; line-height: 1.8; color: #96ad82; margin: 0; }
.welcome-open { display: flex; justify-content: center; align-items: center; gap: 9px; width: 100%; min-height: 42px; margin-top: 22px; padding: 10px 14px; background: var(--lime); border: 1px solid var(--lime); border-radius: 4px; color: #18280a; font-size: 12px; font-weight: 600; }
.welcome-open .icon { width: 16px; height: 16px; }
.welcome-open>.icon:last-child { margin-left: auto; width: 15px; height: 15px; }
.welcome-open>.icon:first-child { margin-right: auto; }
.welcome-sample { display: inline-flex; align-items: center; justify-content: center; gap: 7px; width: 100%; padding: 11px 0 5px; background: transparent; border: 0; color: #bfdaa5; font-size: 10px; min-height: 34px; }
.welcome-sample .icon { width: 12px; height: 12px; }
.welcome-sample:hover:not(:disabled) { color: var(--lime); }
.welcome-sample:disabled { opacity: .35; }
.open-card .sample-detail { color: #6d865b; font-size: 9px; margin-top: 6px; }
.welcome-loading { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid #344d26; color: #c1cc91; font: 9px/1.6 var(--mono); }
.loader { display: inline-block; width: 11px; height: 11px; border: 1.5px solid #6c804b; border-top-color: var(--lime); border-radius: 50%; animation: spin 1s linear infinite; flex-shrink: 0; }
.welcome-error { border: 1px solid #815d3c; border-radius: 4px; background: #322515; padding: 12px; margin-top: 16px; color: #efc092; }
.welcome-error p { font-size: 10px; line-height: 1.7; margin: 0 0 8px; overflow-wrap: anywhere; }
.welcome-error button { display: inline-flex; gap: 6px; align-items: center; border: 1px solid #a4774d; border-radius: 3px; color: #f1d0a6; background: #4d351c; padding: 6px 9px; font-size: 10px; }
.welcome-error button .icon { width: 13px; height: 13px; }
.welcome-bottom { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 19px; padding-top: 23px; border-top: 1px solid #2c4023; }
.welcome-bottom>div { display: flex; align-items: flex-start; gap: 10px; }
.welcome-bottom>div>span { display: inline-block; font: 9px/1.5 var(--mono); color: var(--lime); padding-top: 1px; }
.welcome-bottom p { margin: 0; font-size: 10px; line-height: 1.5; }
.welcome-bottom strong { display: block; color: #bdcfae; font-weight: 500; margin-bottom: 5px; }
.welcome-bottom small { font-size: 9px; color: #78936a; line-height: 1.65; display: block; max-width: 160px; }
.file-drop-overlay { position: absolute; z-index: 9; inset: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 15px; border: 2px dashed var(--lime); border-radius: 5px; background: #1b2b10f5; color: var(--lime); pointer-events: none; font-family: var(--sans); }
.file-drop-overlay>.icon { width: 54px; height: 54px; stroke-width: 1.2; }
.file-drop-overlay strong { font-size: 36px; font-weight: 500; letter-spacing: -1.5px; }
.file-drop-overlay span { font-size: 13px; color: #b4cd9d; }
.app-footer { min-height: 28px; height: 28px; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 0 24px; border-top: 1px solid #24331f; background: #0c130d; font: 9px/1.4 var(--mono); color: #6e885e; }
.app-footer>span:first-child { display: flex; align-items: center; gap: 6px; letter-spacing: .7px; }
.app-footer .small-dot { width: 3px; height: 3px; background: #6c914f; }
.app-footer a { display: inline-flex; align-items: center; gap: 5px; font-size: 9px; color: #8ea67a; }
#build-revision { max-width: 180px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; flex-shrink: 0; }
.app-footer #workspace-hint { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; min-width: 0; }
.app-footer a:hover { color: var(--lime); }
.app-footer a .icon { width: 10px; height: 10px; }
.shell-announcement { position: fixed; z-index: 15; bottom: 44px; left: 50%; transform: translateX(-50%); max-width: calc(100% - 36px); border: 1px solid #718c4f; border-radius: 5px; padding: 12px 17px; background: #26391b; color: #e0f0cf; box-shadow: 0 6px 30px #0008; font-size: 12px; }
.noscript-message { position: fixed; z-index: 20; bottom: 45px; left: 20px; right: 20px; padding: 15px; background: #503c18; border: 1px solid #c7a355; border-radius: 4px; color: #fff0cb; text-align: center; }
body[data-palette=classic] { --blue: #0000aa; --terminal-ink: #55ffff; --dark-cyan: #00aaaa; --silver: #aaaaaa; --yellow: #ffff55; --selection-bg: #aaaaaa; --selection-ink: #0000aa; --mark-bg: #aa00aa; --mark-ink: #ffff55; }
body[data-palette=classic] .edge { background: #000; color: #00aa00; }
body[data-palette=classic] #title { background: #aaa; color: #000; border-color: #000; }
body[data-palette=classic] #position, body[data-palette=classic] .file-title>.icon { color: #000; }
body[data-palette=classic] #keys button { background: #00aaaa; color: #000; border-color: #000; }
body[data-palette=classic] #keys button:disabled { color: #444; }
body[data-palette=classic] #keys .number { background: #000; color: #aaa; border-color: #000; }
body[data-palette=classic] #keys button:hover:not(:disabled) { background: #55ffff; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 50% { opacity: .4; } }
@media (min-width: 1650px) {
    .welcome { padding-inline: 75px; }
    .welcome-main { max-width: 1080px; width: 100%; align-self: center; }
    .welcome h1 { font-size: 78px; }
    .open-card { padding: 35px; }
}
@media (max-width: 1240px) {
    #workspace-sidebar { flex-basis: 210px; width: 210px; padding-inline: 12px; }
    .app-header { gap: 23px; padding-inline: 19px; }
    .engine-status { font-size: 9px; }
    #terminal { margin: 12px; }
    .editor-toolbar { gap: 2px; padding-inline: 6px; }
    .tool-button { padding-inline: 5px; font-size: 9px; }
    .tool-button kbd { display: none; }
    .toolbar-key { margin-inline: 4px; }
    .mode-switcher button { padding-inline: 9px; }
    .welcome { padding: 28px 30px; }
    .welcome h1 { font-size: 51px; }
    .welcome-main { gap: 25px; padding-block: 29px; }
    .open-card { padding: 22px 18px 18px; }
    .welcome-description { font-size: 15px; }
    .welcome-detail { font-size: 10px; }
    .welcome-bottom { gap: 12px; }
    .welcome-bottom small { font-size: 9px; }
}
@media (max-width: 1100px) {
    #workspace-sidebar { display: none; }
    .engine-status { margin-left: 7px; }
    #terminal { margin: 13px 15px; }
    .welcome { padding-inline: clamp(32px, 7vw, 85px); }
    .welcome h1 { font-size: 63px; }
    .welcome-main { gap: 55px; }
    .welcome-description { font-size: 17px; }
    .welcome-bottom small { font-size: 9px; }
    .file-title { max-width: 43%; }
}
@media (max-width: 820px) {
    .app-header { gap: 13px; height: 58px; min-height: 58px; padding-inline: 16px; }
    .brand { font-size: 20px; gap: 10px; }
    .online-badge { font-size: 9px; }
    .engine-status { display: none; }
    .app-actions { gap: 5px; }
    .icon-button { padding-inline: 7px; font-size: 10px; }
    .source-link { font-size: 10px; margin-left: 2px; padding-left: 9px; }
    .app-footer { padding-inline: 16px; }
    .app-footer>span:first-child { display: none; }
    .app-footer #workspace-hint { font-size: 9px; }
    #terminal { margin: 10px; grid-template-rows: 36px 43px minmax(0, 1fr) 26px 31px; }
    #position { font-size: 9px; }
    .edit-state { font-size: 9px; letter-spacing: .2px; padding-inline: 4px; }
    .file-title { gap: 6px; }
    #filename { font-size: 9px; }
    #extension-menu { font-size: 9px; padding: 3px 6px; }
    .toolbar-divider { margin-inline: 3px; }
    .mode-switcher button { padding-inline: 8px; font-size: 9px; }
    .toolbar-key { display: none; }
    .download-button { padding-inline: 8px; font-size: 9px; }
    .toolbar-edit-actions { gap: 2px; padding-left: 1px; }
    #shell-commands { display: none; }
    .welcome { padding: 26px 31px; }
    .welcome-main { gap: 30px; padding-block: 30px; }
    .welcome h1 { font-size: 53px; }
    .welcome-eyebrow { font-size: 9px; letter-spacing: .7px; }
    .welcome-description { font-size: 15px; }
    .welcome-detail { font-size: 9px; }
    .welcome-traits { gap: 5px; }
    .welcome-traits span { font-size: 9px; padding-inline: 4px; }
    .open-card { padding: 22px 17px 18px; }
    .open-card h2 { font-size: 21px; }
    .open-card>p { font-size: 9px; }
    .welcome-open { font-size: 11px; }
    .welcome-sample { font-size: 9px; }
    .open-card .sample-detail { font-size: 9px; }
    .welcome-bottom { gap: 15px; padding-top: 20px; }
    .welcome-bottom strong { font-size: 9px; }
    .welcome-bottom small { font-size: 9px; }
    .welcome-bottom>div { gap: 8px; }
}
@media (max-width: 600px) {
    .app-header { height: 56px; min-height: 56px; padding-inline: 13px; gap: 12px; }
    .brand { font-size: 18px; gap: 8px; letter-spacing: -1px; }
    .brand-mark { font-size: 22px; }
    .online-badge { font-size: 9px; padding: 4px; letter-spacing: .3px; margin-left: 0; }
    .icon-button { width: 31px; min-height: 31px; padding: 6px; }
    .icon-button>span { display: none; }
    .source-link { display: none; }
    .app-actions { gap: 3px; }
    #terminal { margin: 8px; grid-template-rows: 34px 42px minmax(0, 1fr) 27px 32px; border-radius: 5px; }
    #title { padding-inline: 9px; gap: 8px; }
    .file-title { flex: 1; max-width: 65%; gap: 6px; }
    .file-title>.icon { width: 12px; height: 12px; }
    #filename { font-size: 9px; }
    .edit-state { display: none; }
    #position { font-size: 9px; }
    #extension-menu { font-size: 9px; padding-inline: 5px; }
    .editor-toolbar { padding-inline: 6px; gap: 3px; }
    .mode-switcher button { font-size: 9px; padding-inline: 8px; min-height: 24px; }
    .tool-button { min-height: 28px; padding: 5px; gap: 4px; }
    .tool-button span { display: none; }
    .tool-button .icon { width: 14px; height: 14px; }
    #shell-analysis, #shell-commands { display: none; }
    .toolbar-divider { margin-inline: 4px; }
    .toolbar-edit-actions { margin-left: auto; gap: 3px; padding-left: 4px; }
    .download-button { padding: 6px; min-height: 28px; }
    .download-button span { display: none; }
    .download-button .icon { width: 14px; height: 14px; }
    #editor-stage { padding: 7px 5px; }
    #viewport { font-size: 12px; --cell: 18px; line-height: var(--cell); }
    #viewport .row { height: 18px; }
    .editor-status { padding-inline: 7px; gap: 8px; }
    #status { font-size: 9px; }
    .status-local { font-size: 9px; letter-spacing: 0; gap: 3px; }
    .status-local .icon { width: 8px; height: 8px; }
    #keys button { font-size: 9px; flex: 0 0 70px; min-width: 70px; padding: 4px 5px; gap: 4px; }
    #keys .number { font-size: 9px; width: 12px; }
    .app-footer { height: 25px; min-height: 25px; padding-inline: 12px; gap: 8px; }
    .app-footer #workspace-hint { display: none; }
    .app-footer a { font-size: 9px; white-space: nowrap; }
    .app-footer a .icon { width: 8px; height: 8px; }
    .welcome { padding: 23px 23px 28px; display: block; }
    .welcome-topline { font-size: 9px; letter-spacing: .7px; }
    .welcome-topline .small-dot { width: 3px; height: 3px; }
    .welcome-offset { font-size: 9px; }
    .welcome-main { grid-template-columns: 1fr; gap: 25px; padding-block: 27px; }
    .welcome h1 { font-size: 47px; letter-spacing: -2.7px; line-height: 1.02; }
    .welcome h1 br { display: none; }
    .welcome-eyebrow { font-size: 9px; letter-spacing: .6px; margin-bottom: 12px; }
    .welcome-description { font-size: 13px; line-height: 1.55; margin-top: 17px; }
    .welcome-description br { display: none; }
    .welcome-detail { font-size: 10px; margin-top: 10px; line-height: 1.7; }
    .welcome-detail br { display: none; }
    .welcome-traits { margin-top: 14px; }
    .welcome-traits span { font-size: 9px; padding: 4px 6px; }
    .open-card { padding: 21px 20px 19px; }
    .file-illustration { height: 58px; width: 83px; margin-bottom: 15px; }
    .file-outline { width: 42px; height: 50px; left: 21px; }
    .file-chip { font-size: 9px; padding: 4px 6px; left: 3px; }
    .file-cross { font-size: 14px; right: -1px; }
    .open-card h2 { font-size: 23px; margin-bottom: 10px; }
    .open-card>p { font-size: 10px; }
    .welcome-open { margin-top: 18px; min-height: 42px; font-size: 12px; }
    .welcome-sample { font-size: 10px; padding-top: 12px; min-height: 38px; }
    .open-card .sample-detail { font-size: 9px; }
    .welcome-bottom { grid-template-columns: 1fr; gap: 15px; padding-top: 20px; }
    .welcome-bottom>div { gap: 12px; }
    .welcome-bottom>div>span { font-size: 9px; }
    .welcome-bottom strong { font-size: 11px; margin-bottom: 3px; }
    .welcome-bottom small { font-size: 9px; max-width: none; }
    #popup { min-width: min(340px, calc(100% - 18px)); max-width: calc(100% - 18px); padding: 15px 13px; font-size: 11px; border-radius: 4px; }
    #popup legend { font-size: 15px; margin-bottom: 12px; }
    #popup label { gap: 8px; margin-block: 8px; flex-wrap: wrap; }
    #popup input:not([type="checkbox"]), #popup select, #popup textarea { font-size: 10px; max-width: 100%; width: 100%; }
    #popup input[type="checkbox"] { width: 14px; }
    #popup button { font-size: 10px; padding: 6px 9px; }
    #download { bottom: 70px; right: 12px; font-size: 11px; padding: 11px 14px; }
    .file-drop-overlay strong { font-size: 29px; }
    .file-drop-overlay span { font-size: 11px; }
}
@media (max-height: 720px) and (min-width: 601px) {
    .welcome { padding-block: 22px; }
    .welcome-main { padding-block: 22px; gap: 37px; }
    .welcome h1 { font-size: 48px; }
    .welcome-eyebrow { margin-bottom: 12px; }
    .welcome-description { margin-top: 17px; font-size: 14px; }
    .welcome-detail { margin-top: 10px; font-size: 9px; }
    .welcome-traits { margin-top: 15px; }
    .open-card { padding-block: 16px; }
    .file-illustration { height: 52px; margin-bottom: 11px; }
    .file-outline { height: 45px; width: 38px; left: 30px; }
    .file-chip { font-size: 9px; padding: 4px 7px; left: 15px; }
    .open-card h2 { font-size: 20px; }
    .welcome-open { margin-top: 15px; min-height: 36px; }
    .welcome-bottom { padding-top: 17px; }
    .workspace-note { padding-top: 15px; }
    .file-details { padding-top: 17px; padding-bottom: 17px; }
}
@media (max-width: 360px) {
    .brand { font-size: 16px; gap: 7px; }
    .online-badge { display: none; }
    .welcome { padding-inline: 19px; }
    .welcome h1 { font-size: 42px; }
    .tool-button { padding-inline: 4px; }
    .mode-switcher button { padding-inline: 7px; font-size: 9px; }
    #shell-goto { display: none; }
    #position { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; scroll-behavior: auto !important; }
}
