/* 模拟运行页面（只看 NC 文件）的布局：左边画布，右边文件列表 + 控制面板（控制面板的样式在 sim-core.css） */
.sim { flex: 1; display: flex; min-height: 0; }
#view-wrap { flex: 1; }
#side { width: 370px; flex: none; overflow-y: auto; background: var(--panel); border-left: 1px solid var(--line);
        border-right: none; padding: 8px 12px; }
.files { border-bottom: 1px solid var(--line); padding: 4px 0 10px; }
.files-head { display: flex; align-items: center; justify-content: space-between; }
.files-head h3 { margin: 0; font-size: 13px; color: var(--muted); }
#file-list { list-style: none; margin: 6px 0 0; padding: 0; max-height: 28vh; overflow-y: auto; }
#file-list li { display: flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: var(--radius-sm); cursor: pointer; font-size: 13px; }
#file-list li:hover { background: var(--hover); }
#file-list li.cur { background: var(--accent-weak); color: var(--accent-ink); font-weight: 600; }
#file-list li.none { color: var(--muted); cursor: default; }
#file-list li .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; padding: 4px 10px; border: 1px solid var(--line-strong);
            border-radius: var(--radius-sm); background: #fff; cursor: pointer; }
.file-btn:hover { border-color: var(--accent); }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
header #machine { min-width: 160px; }
.hdr-field { display: inline-flex; align-items: center; gap: 4px; }

/* 云端（host.js 给 <html> 加 .cloud）：本机才有的东西藏起来 */
.cloud:not(.shell) .tab[data-tab="printers"], .cloud:not(.shell) #pane-printers, .cloud:not(.shell) #test-printer, .cloud:not(.shell) #test-print { display: none !important; }
.host-dialog { border: 1px solid #ccc; border-radius: 8px; padding: 18px 22px; min-width: 360px; }
.host-dialog .actions { display: flex; gap: 8px; margin-top: 12px; }
.host-dialog .bad { color: #b42318; }
.host-logout { margin-left: 8px; }
.host-support { margin-left: 8px; white-space: nowrap; }
