.he-tool{max-width:1600px;margin:0 auto;padding:22px;border-radius:18px;background:var(--ate-surface, #fff);box-shadow:0 10px 40px rgba(60,72,88,.12);text-align:left}
.he-tool [hidden]{display:none!important}
.he-panes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.he-code,.he-view{display:flex;flex-direction:column;min-width:0}
.he-bar{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;min-height:44px;margin-bottom:8px}
.he-tabs{display:inline-flex;padding:3px;border-radius:10px;background:var(--ate-surface-3, #e8ebf5)}
.he-tab{margin:0;padding:7px 16px;border:0;border-radius:8px;background:none;color:var(--ate-text-2, #5a6478);font-size:13px;font-weight:700;line-height:1.2;cursor:pointer}
.he-tab.is-active{background:var(--ate-field, #fff);color:var(--ate-accent, #667eea);box-shadow:0 1px 4px rgba(60,72,88,.15)}
.he-tab:focus-visible{outline:2px solid rgba(102,126,234,.5)}
.he-editors{position:relative;height:560px;border:1px solid var(--ate-border-strong, #dfe3ee);border-radius:12px;overflow:hidden;background:var(--ate-field, #fff)}
.he-src{display:block;width:100%;height:100%;margin:0;padding:12px 14px;border:0;outline:0;resize:none;background:var(--ate-field, #fff);color:var(--ate-text-2, #2d3748);font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,"Liberation Mono",monospace;font-size:14px;line-height:1.55;tab-size:2;white-space:pre;overflow:auto}
.he-tool.is-wrap .he-src{white-space:pre-wrap;overflow-wrap:anywhere}
.he-ace{position:absolute;inset:0;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,"Liberation Mono",monospace}
.he-devices span{display:flex;align-items:center;padding:6px 10px}
.he-devices svg{width:17px;height:17px}
.he-icon-btn{width:42px;justify-content:center;padding:0}
.he-view .he-bar .tu-check{margin-right:auto}
.he-stage{display:flex;justify-content:center;height:560px;border:1px solid var(--ate-border-strong, #dfe3ee);border-radius:12px;background:#fff;overflow:auto}
.he-tool.is-device .he-stage{background:repeating-conic-gradient(#f1f2f6 0 25%, #fafafc 0 50%) 0 0/22px 22px}
.he-frame{display:block;flex:none;width:100%;max-width:none;height:100%;border:0;background:#fff;color-scheme:light}
.he-tool.is-device .he-frame{box-shadow:0 0 0 1px rgba(0,0,0,.08),0 6px 24px rgba(0,0,0,.08)}
.he-console{margin-top:10px;border:1px solid var(--ate-border-strong, #dfe3ee);border-radius:12px;background:var(--ate-surface-2, #fbfbfe)}
.he-console-head{display:flex;align-items:center;gap:8px;padding:7px 12px;color:var(--ate-muted, #8492a6);font-size:12px;font-weight:700;letter-spacing:.4px;text-transform:uppercase}
.he-console-count{min-width:18px;padding:0 6px;border-radius:9px;background:var(--ate-surface-3, #e8ebf5);color:var(--ate-text-2, #3c4858);font-size:11px;line-height:18px;text-align:center}
.he-console-count:empty{display:none}
.he-console-head .tu-link{margin-left:auto;font-size:12px;letter-spacing:0;text-transform:none}
.he-log{max-height:150px;margin:0;padding:0 12px 8px;overflow:auto;list-style:none;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,"Liberation Mono",monospace;font-size:13px;line-height:1.5}
.he-log li{padding:4px 0;border-top:1px solid var(--ate-border, #e4e4e7);color:var(--ate-text-2, #2d3748);white-space:pre-wrap;overflow-wrap:anywhere}
.he-log li:first-child{border-top:0}
.he-log .is-warn{color:#b7791f}
.he-log .is-error{color:#c0392b}
.he-log .he-log-empty{color:var(--ate-muted, #8492a6);font-family:var(--ate-font, system-ui, sans-serif)}
.he-status:empty{display:none}
html.he-full-open{overflow:hidden}
.he-tool.is-full{position:fixed;inset:0;z-index:1080;max-width:none;margin:0;padding:16px;border-radius:0;overflow:auto}
.he-tool.is-full .he-editors,.he-tool.is-full .he-stage{height:calc(100vh - 290px);min-height:280px}
html[data-theme="dark"] .he-tool{background:#0f0f11}
html[data-theme="dark"] .he-log .is-warn{color:#f6c66b}
html[data-theme="dark"] .he-log .is-error{color:#e79b93}
@media (max-width:991px){.he-panes{grid-template-columns:minmax(0,1fr)}.he-editors{height:420px}.he-stage{height:480px}}
@media (max-width:576px){.he-tool{padding:16px;border-radius:14px}.he-devices{display:none}.he-editors{height:360px}.he-stage{height:420px}.he-tab{padding:7px 12px}}
