.x12-editor{--ink-soft:var(--body);--ink-faint:var(--ash);--rule:var(--hairline-soft);--bar:#f5f5f1;--bar-strong:var(--surface-soft);--accent:var(--accent-blue);--accent-soft:#e8f1fb;--mark:#ffe58f;--error:#c92a2a;--warning:#e8590c;--info:#1971c2;--mono:"Cascadia Mono", "Consolas", "SF Mono", "Menlo", monospace;--fs-text:14px;--fs-code:13.5px;--fs-label:11.5px;--fs-micro:11px;height:calc(100dvh - var(--top-bar-height));background:var(--canvas);color:var(--ink);flex-direction:column;margin-inline:-24px;display:flex;overflow:hidden}.x12-editor .app-head{background:var(--canvas);border-bottom:1px solid var(--rule);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:16px;padding:8px 14px;display:flex}.x12-editor .app-title.ant-typography{margin:0}.x12-editor .editor{flex-direction:column;flex:1;min-height:0;display:flex}.x12-editor .x12-toolbar{background:var(--surface-card);border-bottom:1px solid var(--rule);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:16px;padding:6px 14px;display:flex}.x12-editor .editor>.ant-splitter{flex:1;min-height:0;padding:10px}.x12-editor .x12-search .ant-input-search-btn{width:36px;min-width:36px;height:36px;min-height:36px;padding:0}.x12-editor .x12-search .ant-input-search-btn .anticon-search{font-size:16px;line-height:1}.x12-editor .ant-splitter-bar-dragger:before{background:#00000014}.x12-editor .ant-splitter-bar-dragger:after{background:#0000004d}.x12-editor .panel{border:1px solid var(--rule);background:var(--surface-card);border-radius:6px;flex-direction:column;height:100%;min-height:0;display:flex;overflow:hidden}.x12-editor .panel-head{border-bottom:1px solid var(--rule);background:var(--surface-soft);flex-wrap:wrap;flex:none;justify-content:space-between;align-items:center;gap:12px;min-height:34px;padding:5px 10px;display:flex}.x12-editor .panel-body{flex:1;min-height:0;overflow:auto}.x12-editor .panel-empty{text-align:center;color:var(--ink-faint);padding:24px 16px}.x12-editor .src-view,.x12-editor .src-edit{font-family:var(--mono);font-size:var(--fs-code);line-height:1.65}.x12-editor .src-view{white-space:pre-wrap;word-break:break-all;flex:1;min-height:0;padding:6px 10px;overflow:auto}.x12-editor .src-view.src-nowrap{white-space:pre;word-break:normal}.x12-editor .src-edit{resize:none!important;border:0!important;border-radius:0!important;height:100%!important;padding:6px 10px!important}.x12-editor .src-edit.src-nowrap{white-space:pre;overflow-wrap:normal;overflow-x:auto}.x12-editor .src-line{border-radius:3px;padding:0 4px}.x12-editor .src-line.src-current{background:var(--accent-soft)}.x12-editor .src-id{color:var(--accent);cursor:pointer;font-weight:600}.x12-editor .src-el{cursor:pointer}.x12-editor .src-el:hover{background:var(--bar-strong)}.x12-editor .src-sep{color:var(--ink-faint)}.x12-editor .src-hit{background:var(--mark);color:inherit;border-radius:2px;padding:0}.x12-editor .edi{padding:4px 0 10px}.x12-editor .edi-loop{margin:2px 0 0}.x12-editor .edi-loop-head{background:var(--bar-strong);cursor:pointer;-webkit-user-select:none;user-select:none;font-size:var(--fs-label);border-left:3px solid #0000;border-radius:3px;align-items:center;gap:8px;padding:5px 8px 5px 4px;display:flex}.x12-editor .edi-loop-head:hover{background:var(--hairline-soft)}.x12-editor .edi-loop-head.is-collapsed{background:var(--bar);border-left-color:var(--accent)}.x12-editor .edi-loop-toggle{width:18px;font-size:var(--fs-code);color:var(--accent);flex:none;justify-content:center;align-items:center;display:inline-flex}.x12-editor .edi-loop-name{letter-spacing:.02em;text-transform:uppercase;color:var(--ink);font-weight:600}.x12-editor .edi-loop-count{color:var(--ink-faint);white-space:nowrap}.x12-editor .edi-loop-meta{color:var(--ink-soft);white-space:nowrap;margin-left:auto}.x12-editor .edi-loop-body{border-left:1px solid var(--rule);margin-left:6px;padding-left:14px}.x12-editor .edi-seg{border-radius:3px;margin-top:2px;padding:5px 8px 6px}.x12-editor .edi-seg.is-current{background:var(--accent-soft)}.x12-editor .edi-seg.is-stray{background:#fff5f5}.x12-editor .edi-seg-head{cursor:pointer;align-items:baseline;gap:8px;display:flex}.x12-editor .edi-seg-id{font-family:var(--mono);color:var(--accent);font-weight:700;font-size:var(--fs-code)}.x12-editor .edi-seg-name{font-size:var(--fs-label);letter-spacing:.02em;text-transform:uppercase;color:var(--ink-soft)}.x12-editor .edi-seg-note{font-size:var(--fs-label);color:var(--error);margin-left:auto}.x12-editor .edi-grid{grid-template-columns:repeat(auto-fill,minmax(215px,1fr));gap:3px 16px;margin:5px 0 6px;display:grid}.x12-editor .edi-cell{cursor:pointer;border-radius:3px;min-width:0;padding:2px 4px}.x12-editor .edi-cell:hover{background:var(--bar)}.x12-editor .edi-cell.is-current{background:var(--mark)}.x12-editor .edi-cell.is-issue{box-shadow:inset 0 -2px 0 var(--error)}.x12-editor .edi-label{font-size:var(--fs-label);letter-spacing:.03em;text-transform:uppercase;color:var(--ink-faint);white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.x12-editor .edi-value{font-size:var(--fs-text);color:var(--ink);overflow-wrap:anywhere;line-height:1.4}.x12-editor .edi-value.is-raw{font-family:var(--mono)}.x12-editor .edi-value.is-empty{color:var(--ink-faint)}.x12-editor .edi-raw{font-family:var(--mono);font-size:var(--fs-code);color:var(--ink-soft);word-break:break-all;line-height:1.6}.x12-editor .edi-raw .edi-tok{cursor:pointer;border-radius:2px}.x12-editor .edi-raw .edi-tok:hover{background:var(--bar-strong)}.x12-editor .edi-raw .edi-tok.is-current{background:var(--mark)}.x12-editor .edi-raw .edi-punct{color:var(--ink-faint)}.x12-editor .issue{border-bottom:1px solid var(--rule);cursor:pointer;align-items:baseline;gap:8px;padding:5px 10px;display:flex}.x12-editor .issue:hover{background:var(--bar)}.x12-editor .issue.is-current{background:var(--accent-soft)}.x12-editor .issue-icon{font-size:var(--fs-text);flex:none;line-height:1.6}.x12-editor .issue-icon.error{color:var(--error)}.x12-editor .issue-icon.warning{color:var(--warning)}.x12-editor .issue-icon.info{color:var(--info)}.x12-editor .issue-body{min-width:0}.x12-editor .issue-where{font-family:var(--mono);font-size:var(--fs-micro);color:var(--ink-soft)}.x12-editor .issue-text{font-size:var(--fs-text);line-height:1.45}.x12-editor .issue-rule{font-size:var(--fs-micro);color:var(--ink-faint)}.x12-editor .form{padding:8px 12px 14px}.x12-editor .form-head{margin-bottom:8px}.x12-editor .form-path{font-family:var(--mono);font-size:var(--fs-code);color:var(--accent)}.x12-editor .form-row{border-radius:4px;grid-template-columns:minmax(150px,220px) 1fr;align-items:start;gap:8px 12px;padding:3px 0;padding-inline:6px;display:grid}.x12-editor .form-row.is-selected{background:var(--accent-soft)}.x12-editor .form-set{font-size:var(--fs-label);white-space:nowrap}.x12-editor .form-label{font-size:var(--fs-text);color:var(--ink);padding-top:5px;line-height:1.35}.x12-editor .form-pos{font-family:var(--mono);font-size:var(--fs-micro);color:var(--ink-faint);display:block}.x12-editor .form-hint{font-size:var(--fs-label);color:var(--ink-soft);margin-top:2px;line-height:1.4}.x12-editor .form-hint.is-error{color:var(--error)}.x12-editor .form input,.x12-editor .form textarea,.x12-editor .form .ant-select-selector,.x12-editor .form .ant-picker,.x12-editor .form .ant-select-item,.x12-editor .form .ant-select-selection-item{font-family:var(--mono)!important}.x12-editor .tag-usage{font-size:var(--fs-micro)!important;margin-inline-end:4px!important;padding-inline:4px!important;line-height:15px!important}@media (max-width:768px){.x12-editor{margin-inline:-16px}}
