:root{color-scheme:light;font-family:Space Grotesk,Avenir Next,PingFang SC,Microsoft YaHei,sans-serif;line-height:1.5;font-weight:400;background:#f6f3ec;color:#1c1917;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;--panel-bg: #fffdf8;--panel-border: rgba(28, 25, 23, .08);--ink-soft: rgba(28, 25, 23, .68);--accent: #0f766e;--accent-strong: #134e4a;--error: #b91c1c;--shadow: 0 6px 16px rgba(28, 25, 23, .05)}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh}button,textarea{font:inherit}button{cursor:pointer}textarea{resize:vertical}#app{min-height:100vh}.page-shell{min-height:100vh;padding:8px}.panel{background:var(--panel-bg);border:1px solid var(--panel-border);border-radius:14px;box-shadow:var(--shadow)}.workspace{display:grid;grid-template-columns:180px minmax(0,1fr);gap:8px;max-width:1520px;height:calc(100vh - 16px);margin:0 auto}.sidebar{display:grid;grid-template-rows:auto 1fr;gap:10px;padding:12px 10px;min-height:0}.sidebar-head{display:grid;gap:10px}.brand-wrap{display:grid;justify-items:center;padding:1px 12px;border-radius:12px;background:#fff}.brand-home-button{display:grid;place-items:center;width:100%;padding:0;border:0;border-radius:10px;background:transparent}.brand-home-button:focus-visible{outline:2px solid rgba(15,118,110,.36);outline-offset:4px}.sidebar h1,.editor-head h2{margin:0;font-weight:700;letter-spacing:-.04em}.sidebar h1{font-size:1.9rem;line-height:.95}.brand-logo{display:block;width:68px;max-width:100%;height:auto}.locale-switch{display:inline-flex;width:fit-content;padding:4px;border-radius:999px;background:#1c19170f}.locale-button,.tool-item,.mode-button,.ghost-button,.primary-button{border:1px solid transparent;transition:transform .15s ease,background .15s ease,border-color .15s ease,color .15s ease}.locale-button{min-width:56px;min-height:32px;padding:0 12px;border-radius:999px;background:transparent;color:#1c1917}.locale-button.is-active{background:#fff;border-color:#0f766e29}.tool-list{display:grid;align-content:start;gap:6px;overflow:auto;min-height:0}.tool-item{min-height:44px;padding:0 14px;border-radius:10px;background:transparent;color:#1c1917;text-align:left}.tool-item.is-active{background:#0f766e1f;border-color:#0f766e47;color:var(--accent-strong)}.tool-item-label{font-weight:700}.main-area{display:grid;grid-template-rows:auto 1fr;gap:8px;height:100%;min-height:0}.toolbar-panel{padding:8px 10px}.toolbar-row,.editor-head{display:flex;align-items:center;gap:8px}.toolbar-row{justify-content:flex-start;flex-wrap:wrap}.editor-head{justify-content:space-between}.switch-group{display:flex;align-items:center;flex-wrap:wrap;gap:6px}.submode-group{display:inline-flex;align-items:center;gap:8px;padding-left:10px;margin-left:2px;border-left:1px solid rgba(28,25,23,.1)}.switch-label,.eyebrow{color:var(--accent-strong);font-size:.72rem;font-weight:700;letter-spacing:.14em;text-transform:uppercase;white-space:nowrap}.submode-label{color:var(--ink-soft);font-size:.78rem;font-weight:600;white-space:nowrap}.mode-switch{display:flex;flex-wrap:wrap;gap:6px}.mode-button,.ghost-button,.primary-button{min-height:34px;padding:0 12px;border-radius:999px;background:#ffffffc2;border-color:#1c191714;color:#1c1917}.mode-button.is-active{background:#0f766e1f;border-color:#0f766e47}.mode-button span{font-weight:700}.mode-button--submode{min-height:32px;padding:0 10px;background:#1c191708;color:var(--ink-soft);border-color:#1c19170f}.mode-button--submode span{font-weight:600}.mode-button--submode.is-active{background:#0f766e14;border-color:#0f766e33;color:var(--accent-strong)}.primary-button{background:var(--accent);border-color:var(--accent);color:#f8fafc}.tool-item:hover,.mode-button:hover,.locale-button:hover{transform:translateY(-1px)}.ghost-button:disabled{opacity:.45;cursor:default}.ghost-button:disabled:hover{transform:none}.editor-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;height:100%;min-height:0}.editor-card{display:grid;grid-template-rows:minmax(0,1fr);padding:8px;height:100%;min-height:0}.editor-surface{position:relative;min-height:0;height:100%}.editor-card-toolbar{display:flex;justify-content:flex-end;align-items:center;position:absolute;top:9px;right:9px;gap:8px;z-index:3}.editor-action-button{min-height:30px;padding:0 10px;border-radius:8px;background:var(--panel-bg);border-color:#1c19171f;box-shadow:0 4px 12px #1c191714;cursor:pointer;transition:transform .15s ease,background .15s ease,border-color .15s ease,color .15s ease,box-shadow .15s ease}.editor-action-button:hover{transform:translateY(-1px);background:#0f766e14;border-color:#0f766e3d;box-shadow:0 6px 14px #0f766e1f}.editor-action-button:active{transform:translateY(0);background:#0f766e1f}.editor-action-feedback{max-width:180px;padding:4px 8px;border-radius:999px;background:#0f766e1f;color:var(--accent-strong);font-size:.78rem;font-weight:600;white-space:nowrap;box-shadow:0 4px 12px #1c19170f}.eyebrow{margin:0 0 2px}.editor-head h2{font-size:1.08rem}.output-meta{display:grid;gap:4px;justify-items:end}.status-text,.hint-row,.stats-inline{color:var(--ink-soft)}.editor{width:100%;height:100%;min-height:320px;padding:12px 92px 12px 14px;border:1px solid rgba(28,25,23,.08);border-radius:10px;background:#f9fafb;color:#1c1917;font-family:JetBrains Mono,SFMono-Regular,Menlo,monospace;font-size:.92rem;line-height:1.68}.editor:focus{outline:2px solid rgba(15,118,110,.28);outline-offset:2px}.editor::placeholder{color:#1c191761}.json-tree{width:100%;height:100%;min-height:320px;overflow:auto;padding:12px 92px 12px 14px;border:1px solid rgba(28,25,23,.08);border-radius:10px;background:#f9fafb;color:#1c1917;font-family:JetBrains Mono,SFMono-Regular,Menlo,monospace;font-size:.92rem;line-height:1.68}.json-tree-root,.json-tree-children{display:grid;gap:4px}.json-tree-children{margin:2px 0 0 10px;padding-left:24px;border-left:1px dashed rgba(148,163,184,.7)}.json-tree-summary,.json-tree-leaf,.json-tree-closing{min-width:0}.json-tree-summary{display:inline-flex;align-items:center;gap:8px;cursor:pointer;position:relative;min-height:24px;padding-left:20px}.json-tree-summary::-webkit-details-marker{display:none}.json-tree-summary::marker{content:""}.json-tree-summary:before{content:"+";position:absolute;left:0;top:4px;display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;border:1px solid rgba(100,116,139,.85);border-radius:4px;background:#fff;color:#475569;font-size:.82rem;font-weight:700;line-height:1}.json-tree-node[open]>.json-tree-summary:before{content:"-"}.json-tree-summary:hover:before{border-color:#0f766ea6;color:var(--accent-strong);background:#0f766e0f}.json-tree-leaf{display:flex;align-items:flex-start;gap:4px}.json-tree-closing{padding-left:8px;color:#0f172a;font-weight:700}.json-tree-key{flex:0 0 auto;color:#2563eb;font-weight:600;white-space:nowrap}.json-tree-token{flex:0 0 auto;color:#0f172a;font-weight:700;white-space:nowrap}.json-tree-meta{flex:0 0 auto;color:#6b7280;font-size:.84rem;white-space:nowrap}.json-tree-value--string{color:#15803d}.json-tree-value--number{color:#0369a1}.json-tree-value--boolean{color:#dc2626}.json-tree-value--null,.json-tree-value--plain{color:#475569}.json-tree-value{min-width:0;overflow-wrap:anywhere;word-break:break-word}.hint-row{font-size:.78rem}.status-stack{display:grid;gap:4px;justify-items:end}.status-badge{display:inline-flex;align-items:center;justify-content:center;min-width:84px;min-height:28px;padding:0 10px;border-radius:999px;font-size:.76rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase}.status-badge[data-variant=ready]{background:#0f766e1f;color:var(--accent-strong)}.status-badge[data-variant=running]{background:#0f766e2e;color:var(--accent-strong)}.status-badge[data-variant=error]{background:#b91c1c1f;color:var(--error)}.stats-inline{display:flex;flex-wrap:wrap;gap:10px;font-size:.82rem}.stats-inline strong{color:#1c1917;font-weight:700}.stats-inline em{font-style:normal}@media (max-width: 1180px){.workspace{grid-template-columns:1fr;height:auto;min-height:calc(100vh - 16px)}.sidebar{grid-template-rows:auto auto}.tool-list{grid-template-columns:repeat(auto-fit,minmax(120px,1fr))}.toolbar-row,.editor-head{flex-direction:column;align-items:flex-start}.submode-group{padding-left:0;margin-left:0;border-left:0}.toolbar,.status-stack,.output-meta{width:100%;justify-content:flex-start;justify-items:start}.editor-grid{grid-template-columns:1fr}.editor-card{grid-template-rows:minmax(280px,1fr)}}@media (max-width: 760px){.page-shell{padding:6px}.panel,.sidebar,.toolbar-panel,.editor-card{padding:8px}.tool-list{grid-template-columns:1fr}.mode-switch,.toolbar,.switch-group{width:100%;justify-content:flex-start}.workspace{min-height:auto}}
