/* ==========================================================================
   ide.css · Pellosy Dev Studio（index3 / index 内置 IDE）
   配色沿用站点 lime #d9ff38 + coral #ff6748
   ========================================================================== */

.ide {
    --ide-bg: #08090c;
    --ide-panel: #0e1014;
    --ide-panel-2: #14171c;
    --ide-panel-3: #1a1e24;
    --ide-line: #23262e;
    --ide-line-2: #2f333c;
    --ide-text: #e8eaef;
    --ide-dim: #8b8f9a;
    --ide-dim-2: #5c606b;
    --ide-acc: #d9ff38;
    --ide-acc-2: #ff6748;
    --ide-ok: #7ce38b;
    --ide-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
        "Cascadia Mono", "Liberation Mono", monospace;
    --c-cm: #5c606b;
    --c-str: #8bd39b;
    --c-tag: #ff8f6b;
    --c-attr: #d9ff38;
    --c-num: #f0b37e;
    --c-kw: #c9a0ff;
    --c-fn: #7fd3ff;
    --c-pun: #8b8f9a;
    --c-meta: #ff6748;

    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    color: var(--ide-text);
    background: var(--ide-bg);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Microsoft YaHei", sans-serif;
    font-size: 13px;
    line-height: 1.5;
    opacity: 0;
    visibility: hidden;
    transform: scale(1.015);
    transition: opacity .28s ease, transform .38s cubic-bezier(.16, 1, .3, 1),
        visibility .38s;

    /* 覆盖宿主页面的隐藏光标等全局样式 */
    cursor: default !important;
    -webkit-font-smoothing: antialiased;
}

.ide *,
.ide *::before,
.ide *::after {
    box-sizing: border-box;
    cursor: inherit;
}

.ide button,
.ide a,
.ide .ide-clickable {
    cursor: pointer;
}

.ide input,
.ide textarea {
    cursor: text;
    font-family: inherit;
}

.ide.is-open {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.ide[data-theme="light"] {
    --ide-bg: #f4f5f7;
    --ide-panel: #ffffff;
    --ide-panel-2: #f7f8fa;
    --ide-panel-3: #eceef2;
    --ide-line: #dcdfe6;
    --ide-line-2: #c8ccd6;
    --ide-text: #1b1e24;
    --ide-dim: #6b7280;
    --ide-dim-2: #9aa1ad;
    --ide-acc: #6d8b00;
    --ide-acc-2: #d94f2b;
    --c-cm: #9aa1ad;
    --c-str: #1f7a3d;
    --c-tag: #c2410c;
    --c-attr: #6d8b00;
    --c-num: #b45309;
    --c-kw: #7c3aed;
    --c-fn: #0e7490;
    --c-pun: #6b7280;
    --c-meta: #d94f2b;
}

/* ---------- 标题栏 ---------- */

.ide-titlebar {
    display: flex;
    align-items: center;
    gap: 14px;
    height: 40px;
    flex-shrink: 0;
    padding: 0 12px;
    background: var(--ide-panel);
    border-bottom: 1px solid var(--ide-line);
    user-select: none;
}

.ide-dots {
    display: flex;
    gap: 7px;
    flex-shrink: 0;
}

.ide-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--ide-line-2);
}

.ide-dot--r {
    background: #ff5f56;
}

.ide-dot--y {
    background: #ffbd2e;
}

.ide-dot--g {
    background: #27c93f;
}

.ide-brand {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-shrink: 0;
    font-family: var(--ide-mono);
    font-size: 11.5px;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.ide-brand b {
    color: var(--ide-acc);
    font-weight: 700;
}

.ide-brand span {
    color: var(--ide-dim-2);
}

.ide-crumbs {
    flex: 1;
    min-width: 0;
    color: var(--ide-dim-2);
    font-family: var(--ide-mono);
    font-size: 11.5px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ide-tools {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.ide-tool {
    padding: 5px 11px;
    color: var(--ide-dim);
    background: transparent;
    border: 1px solid var(--ide-line);
    border-radius: 7px;
    font-size: 11.5px;
    transition: color .18s ease, border-color .18s ease, background .18s ease;
}

.ide-tool:hover {
    color: var(--ide-text);
    border-color: var(--ide-line-2);
    background: var(--ide-panel-2);
}

.ide-tool.is-on {
    color: #0a0b0e;
    background: var(--ide-acc);
    border-color: var(--ide-acc);
    font-weight: 600;
}

.ide-tool--danger:hover {
    color: #fff;
    background: #ff5f56;
    border-color: #ff5f56;
}

/* ---------- 主体 ---------- */

.ide-body {
    flex: 1;
    display: grid;
    grid-template-columns: 46px 262px minmax(0, 1fr);
    min-height: 0;
}

.ide.is-side-hidden .ide-body {
    grid-template-columns: 46px 0 minmax(0, 1fr);
}

.ide.is-side-hidden .ide-side {
    display: none;
}

/* 活动栏 */

.ide-rail {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 0;
    background: var(--ide-panel);
    border-right: 1px solid var(--ide-line);
}

.ide-rail-btn {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    color: var(--ide-dim-2);
    background: transparent;
    border: 0;
    border-radius: 9px;
    font-size: 15px;
    transition: color .18s ease, background .18s ease;
}

.ide-rail-btn:hover {
    color: var(--ide-text);
    background: var(--ide-panel-2);
}

.ide-rail-btn.is-active {
    color: var(--ide-acc);
    background: var(--ide-panel-3);
}

.ide-rail-spacer {
    flex: 1;
}

/* 侧栏 */

.ide-side {
    display: flex;
    flex-direction: column;
    min-height: 0;
    background: var(--ide-panel);
    border-right: 1px solid var(--ide-line);
}

.ide-side-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 11px 12px 9px;
    color: var(--ide-dim);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.ide-side-count {
    color: var(--ide-dim-2);
    font-family: var(--ide-mono);
    font-size: 10px;
    letter-spacing: 0;
}

.ide-search {
    margin: 0 10px 8px;
    padding: 7px 10px;
    color: var(--ide-text);
    background: var(--ide-bg);
    border: 1px solid var(--ide-line);
    border-radius: 8px;
    font-size: 12px;
    outline: none;
    transition: border-color .18s ease;
}

.ide-search:focus {
    border-color: var(--ide-acc);
}

.ide-search::placeholder {
    color: var(--ide-dim-2);
}

.ide-tree {
    flex: 1;
    overflow: auto;
    padding: 0 6px 14px;
}

.ide-tree::-webkit-scrollbar,
.ide-panel-body::-webkit-scrollbar,
.ide-hl::-webkit-scrollbar,
.ide-input::-webkit-scrollbar {
    width: 9px;
    height: 9px;
}

.ide-tree::-webkit-scrollbar-thumb,
.ide-panel-body::-webkit-scrollbar-thumb,
.ide-hl::-webkit-scrollbar-thumb,
.ide-input::-webkit-scrollbar-thumb {
    background: var(--ide-line-2);
    border: 2px solid transparent;
    background-clip: content-box;
    border-radius: 999px;
}

.ide-node {
    display: flex;
    align-items: center;
    gap: 7px;
    width: 100%;
    padding: 5px 8px;
    color: var(--ide-dim);
    background: transparent;
    border: 0;
    border-radius: 6px;
    font-family: var(--ide-mono);
    font-size: 12px;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    transition: color .15s ease, background .15s ease;
}

.ide-node:hover {
    color: var(--ide-text);
    background: var(--ide-panel-2);
}

.ide-node.is-dir {
    color: #c3c8d2;
}

.ide-node.is-active {
    color: #0a0b0e;
    background: var(--ide-acc);
    font-weight: 600;
}

.ide-node.is-dirty::after {
    content: "";
    width: 6px;
    height: 6px;
    margin-left: auto;
    flex-shrink: 0;
    background: var(--ide-acc-2);
    border-radius: 50%;
}

.ide-node-icon {
    flex-shrink: 0;
    width: 14px;
    text-align: center;
    font-size: 11px;
    opacity: .9;
}

.ide-node-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ide-node-size {
    margin-left: auto;
    flex-shrink: 0;
    color: var(--ide-dim-2);
    font-size: 10px;
}

.ide-node.is-active .ide-node-size {
    color: rgba(10, 11, 14, .6);
}

.ide-empty {
    padding: 16px 12px;
    color: var(--ide-dim-2);
    font-size: 12px;
    text-align: center;
}

/* ---------- 主区 ---------- */

.ide-main {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    background: var(--ide-bg);
}

.ide-tabs {
    display: flex;
    align-items: stretch;
    height: 36px;
    flex-shrink: 0;
    overflow-x: auto;
    background: var(--ide-panel);
    border-bottom: 1px solid var(--ide-line);
    scrollbar-width: none;
}

.ide-tabs::-webkit-scrollbar {
    display: none;
}

.ide-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    flex-shrink: 0;
    color: var(--ide-dim);
    background: transparent;
    border: 0;
    border-right: 1px solid var(--ide-line);
    border-top: 2px solid transparent;
    font-family: var(--ide-mono);
    font-size: 12px;
    transition: color .18s ease, background .18s ease;
}

.ide-tab:hover {
    color: var(--ide-text);
    background: var(--ide-panel-2);
}

.ide-tab.is-active {
    color: var(--ide-text);
    background: var(--ide-bg);
    border-top-color: var(--ide-acc);
}

.ide-tab-dot {
    width: 6px;
    height: 6px;
    background: var(--ide-acc-2);
    border-radius: 50%;
}

.ide-tab-close {
    display: grid;
    place-items: center;
    width: 16px;
    height: 16px;
    color: var(--ide-dim-2);
    border-radius: 4px;
    font-size: 12px;
    line-height: 1;
}

.ide-tab-close:hover {
    color: #fff;
    background: #ff5f56;
}

.ide-work {
    flex: 1;
    display: flex;
    min-height: 0;
}

.ide-editor {
    flex: 1;
    display: flex;
    min-width: 0;
    min-height: 0;
    position: relative;
}

/* 行号 */

.ide-gutter {
    width: 58px;
    flex-shrink: 0;
    padding: 14px 10px 14px 0;
    overflow: hidden;
    color: var(--ide-dim-2);
    background: var(--ide-bg);
    border-right: 1px solid var(--ide-line);
    font-family: var(--ide-mono);
    font-size: 13px;
    line-height: 20px;
    text-align: right;
    user-select: none;
}

.ide-gutter div {
    height: 20px;
}

.ide-gutter div.is-current {
    color: var(--ide-acc);
}

/* 代码区 */

.ide-code {
    position: relative;
    flex: 1;
    min-width: 0;
}

.ide-hl,
.ide-input {
    position: absolute;
    inset: 0;
    margin: 0;
    padding: 14px 18px;
    border: 0;
    font-family: var(--ide-mono);
    font-size: 13px;
    line-height: 20px;
    letter-spacing: 0;
    tab-size: 2;
    white-space: pre;
    word-wrap: normal;
    overflow-wrap: normal;
}

.ide-hl {
    overflow: hidden;
    pointer-events: none;
    color: var(--ide-text);
}

.ide-input {
    color: transparent;
    background: transparent;
    caret-color: var(--ide-acc);
    resize: none;
    outline: none;
    overflow: auto;
}

.ide-input::selection {
    color: transparent;
    background: rgba(217, 255, 56, .26);
}

.ide-input::placeholder {
    color: var(--ide-dim-2);
}

.ide-hl .t {
    color: var(--c-tag);
}

.ide-hl .a {
    color: var(--c-attr);
}

.ide-hl .s {
    color: var(--c-str);
}

.ide-hl .c {
    color: var(--c-cm);
    font-style: italic;
}

.ide-hl .k {
    color: var(--c-kw);
}

.ide-hl .n {
    color: var(--c-num);
}

.ide-hl .f {
    color: var(--c-fn);
}

.ide-hl .p {
    color: var(--c-pun);
}

.ide-hl .m {
    color: var(--c-meta);
}

/* 预览 */

.ide-preview {
    display: none;
    flex-direction: column;
    width: 46%;
    min-width: 260px;
    background: #fff;
    border-left: 1px solid var(--ide-line);
}

.ide.has-preview .ide-preview {
    display: flex;
}

.ide-preview-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 7px 12px;
    color: var(--ide-dim);
    background: var(--ide-panel);
    border-bottom: 1px solid var(--ide-line);
    font-family: var(--ide-mono);
    font-size: 11px;
}

.ide-preview iframe {
    flex: 1;
    width: 100%;
    border: 0;
    background: #fff;
}

/* ---------- 底部面板 ---------- */

.ide-panel {
    display: flex;
    flex-direction: column;
    height: 252px;
    flex-shrink: 0;
    background: var(--ide-panel);
    border-top: 1px solid var(--ide-line);
}

.ide.is-panel-hidden .ide-panel {
    display: none;
}

.ide-panel-head {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 34px;
    flex-shrink: 0;
    padding: 0 10px;
    border-bottom: 1px solid var(--ide-line);
}

.ide-panel-tab {
    padding: 5px 11px;
    color: var(--ide-dim);
    background: transparent;
    border: 0;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    transition: color .18s ease, background .18s ease;
}

.ide-panel-tab:hover {
    color: var(--ide-text);
}

.ide-panel-tab.is-active {
    color: var(--ide-text);
    background: var(--ide-panel-3);
}

.ide-panel-tab.is-active::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 7px;
    background: var(--ide-acc);
    border-radius: 50%;
    vertical-align: middle;
}

.ide-panel-actions {
    display: flex;
    gap: 6px;
    margin-left: auto;
}

.ide-panel-body {
    flex: 1;
    min-height: 0;
    overflow: auto;
    padding: 12px 14px;
    font-family: var(--ide-mono);
    font-size: 12.5px;
    line-height: 1.7;
}

.ide-line-row {
    white-space: pre-wrap;
    word-break: break-word;
}

.ide-line-row.is-cmd {
    color: var(--ide-text);
}

.ide-line-row.is-dim {
    color: var(--ide-dim-2);
}

.ide-line-row.is-ok {
    color: var(--ide-ok);
}

.ide-line-row.is-err {
    color: #ff7b72;
}

.ide-line-row.is-acc {
    color: var(--ide-acc);
}

.ide-line-row.is-warn {
    color: #ffd166;
}

.ide-ps1 {
    color: var(--ide-acc);
}

.ide-path {
    color: #7fd3ff;
}

.ide-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ide-input-row input {
    flex: 1;
    padding: 0;
    color: var(--ide-text);
    background: transparent;
    border: 0;
    outline: none;
    font-family: var(--ide-mono);
    font-size: 12.5px;
}

/* ---------- 状态栏 ---------- */

.ide-status {
    display: flex;
    align-items: center;
    gap: 14px;
    height: 25px;
    flex-shrink: 0;
    padding: 0 12px;
    color: #0a0b0e;
    background: var(--ide-acc);
    font-family: var(--ide-mono);
    font-size: 11px;
    font-weight: 600;
    user-select: none;
}

.ide-status span {
    white-space: nowrap;
}

.ide-status-spacer {
    flex: 1;
}

.ide-status-badge {
    padding: 1px 7px;
    background: rgba(10, 11, 14, .16);
    border-radius: 999px;
}

.ide-status-badge.is-dirty {
    color: #fff;
    background: var(--ide-acc-2);
}

/* ---------- 门户（密码门禁） ---------- */

.ide-portal {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(60% 60% at 50% 0%, rgba(217, 255, 56, .09), transparent 62%),
        rgba(4, 5, 7, .96);
    backdrop-filter: blur(14px);
}

.ide-portal[hidden] {
    display: none;
}

.ide-portal-card {
    width: min(430px, 94vw);
    padding: 34px 30px 28px;
    text-align: center;
    background: linear-gradient(160deg, #14171c, #0b0d11);
    border: 1px solid var(--ide-line-2);
    border-radius: 20px;
    box-shadow: 0 40px 90px rgba(0, 0, 0, .6);
}

.ide-portal.is-shake .ide-portal-card {
    animation: ideShake .4s ease;
}

@keyframes ideShake {

    0%,
    100% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-9px);
    }

    40% {
        transform: translateX(8px);
    }

    60% {
        transform: translateX(-6px);
    }

    80% {
        transform: translateX(4px);
    }
}

.ide-portal-badge {
    width: 56px;
    height: 56px;
    margin: 0 auto 18px;
    display: grid;
    place-items: center;
    background: linear-gradient(140deg, var(--ide-acc), #8bd39b);
    border-radius: 16px;
    font-size: 24px;
    box-shadow: 0 14px 34px rgba(217, 255, 56, .22);
}

.ide-portal-tag {
    color: var(--ide-acc);
    font-family: var(--ide-mono);
    font-size: 10px;
    letter-spacing: .26em;
    text-transform: uppercase;
}

.ide-portal h2 {
    margin: 13px 0 8px;
    font-size: 21px;
    font-weight: 700;
    letter-spacing: -.01em;
}

.ide-portal p {
    color: var(--ide-dim);
    font-size: 12.5px;
    line-height: 1.7;
}

.ide-portal-form {
    margin-top: 22px;
}

.ide-portal input {
    width: 100%;
    padding: 13px 16px;
    color: var(--ide-text);
    background: #07080b;
    border: 1px solid var(--ide-line-2);
    border-radius: 11px;
    font-family: var(--ide-mono);
    font-size: 15px;
    letter-spacing: .3em;
    text-align: center;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.ide-portal input:focus {
    border-color: var(--ide-acc);
    box-shadow: 0 0 0 4px rgba(217, 255, 56, .12);
}

.ide-portal-btn {
    width: 100%;
    margin-top: 12px;
    padding: 13px 18px;
    color: #0a0b0e;
    background: var(--ide-acc);
    border: 0;
    border-radius: 11px;
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: .04em;
    transition: filter .2s ease, transform .2s ease;
}

.ide-portal-btn:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.ide-portal-err {
    min-height: 18px;
    margin-top: 12px;
    color: #ff7b72;
    font-family: var(--ide-mono);
    font-size: 11.5px;
}

.ide-portal-hint {
    margin-top: 16px;
    color: var(--ide-dim-2);
    font-family: var(--ide-mono);
    font-size: 10.5px;
    letter-spacing: .06em;
}

/* ---------- 启动日志 ---------- */

.ide-boot {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ide-bg);
    font-family: var(--ide-mono);
    font-size: 12.5px;
    line-height: 1.9;
}

.ide-boot[hidden] {
    display: none;
}

.ide-boot-inner {
    width: min(520px, 88vw);
}

.ide-boot-line {
    color: var(--ide-dim);
    animation: ideBootIn .3s ease both;
}

.ide-boot-line b {
    color: var(--ide-acc);
}

@keyframes ideBootIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- 快捷帮助 ---------- */

.ide-keys {
    position: absolute;
    right: 16px;
    bottom: 36px;
    z-index: 6;
    width: 262px;
    padding: 16px 18px;
    background: var(--ide-panel-2);
    border: 1px solid var(--ide-line-2);
    border-radius: 14px;
    box-shadow: 0 26px 60px rgba(0, 0, 0, .55);
}

.ide-keys[hidden] {
    display: none;
}

.ide-keys h4 {
    margin-bottom: 10px;
    color: var(--ide-acc);
    font-family: var(--ide-mono);
    font-size: 10.5px;
    letter-spacing: .2em;
    text-transform: uppercase;
}

.ide-keys-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 4px 0;
    color: var(--ide-dim);
    font-size: 11.5px;
}

.ide-keys-row kbd {
    padding: 2px 7px;
    color: var(--ide-text);
    background: var(--ide-bg);
    border: 1px solid var(--ide-line-2);
    border-radius: 5px;
    font-family: var(--ide-mono);
    font-size: 10.5px;
}

/* ---------- 快捷打开（Ctrl+P） ---------- */

.ide-quick {
    position: absolute;
    top: 78px;
    left: 50%;
    z-index: 7;
    width: min(520px, 90vw);
    transform: translateX(-50%);
    background: var(--ide-panel-2);
    border: 1px solid var(--ide-line-2);
    border-radius: 14px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, .6);
    overflow: hidden;
}

.ide-quick[hidden] {
    display: none;
}

.ide-quick input {
    width: 100%;
    padding: 14px 18px;
    color: var(--ide-text);
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--ide-line);
    font-family: var(--ide-mono);
    font-size: 13px;
    outline: none;
}

.ide-quick-list {
    max-height: 300px;
    overflow: auto;
}

.ide-quick-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 9px 18px;
    color: var(--ide-dim);
    background: transparent;
    border: 0;
    font-family: var(--ide-mono);
    font-size: 12px;
    text-align: left;
}

.ide-quick-item:hover,
.ide-quick-item.is-active {
    color: #0a0b0e;
    background: var(--ide-acc);
}

/* ---------- 触发提示（右下角） ---------- */

.ide-trigger {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 2147482000;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    color: var(--ide-dim);
    background: rgba(10, 11, 14, .86);
    border: 1px solid var(--ide-line-2);
    border-radius: 999px;
    font-family: var(--ide-mono);
    font-size: 11px;
    letter-spacing: .08em;
    backdrop-filter: blur(12px);
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity .3s ease, transform .3s ease;
}

.ide-trigger.is-show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    cursor: pointer;
}

.ide-trigger b {
    color: var(--ide-acc);
}

/* ---------- 响应式 ---------- */

@media (max-width: 900px) {
    .ide-body {
        grid-template-columns: 40px 200px minmax(0, 1fr);
    }

    .ide.has-preview .ide-preview {
        display: none;
    }

    .ide-panel {
        height: 200px;
    }

    .ide-crumbs {
        display: none;
    }
}

@media (max-width: 640px) {
    .ide-body {
        grid-template-columns: 40px minmax(0, 1fr);
    }

    .ide-side {
        display: none;
    }

    .ide-gutter {
        width: 42px;
    }

    .ide-brand span {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {

    .ide,
    .ide-boot-line {
        transition: none;
        animation: none;
    }
}
