* {
  box-sizing: border-box;
}
:root {
  --ink: #253044;
  --muted: #8190a5;
  --line: #e5e9f0;
  --accent: #6655d6;
  --wash: #f5f6fa;
}
body {
  margin: 0;
  color: var(--ink);
  font:
    13px/1.5 'Segoe UI',
    'Microsoft YaHei',
    sans-serif;
  background: #fff;
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  cursor: pointer;
  border: 1px solid var(--line);
  background: white;
  border-radius: 6px;
  padding: 7px 12px;
  color: var(--ink);
  white-space: nowrap;
}
button:hover {
  background: #f1effc;
  border-color: #c8c0f0;
}
button:disabled {
  opacity: 0.35;
  cursor: default;
}
button.primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
input,
textarea,
select {
  border: 1px solid #dfe4ed;
  border-radius: 5px;
  padding: 8px 10px;
  color: var(--ink);
  background: white;
  min-width: 0;
}
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #bdb3f5;
  outline-offset: -1px;
}
header {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 26px;
  border-bottom: 1px solid var(--line);
}
.brand,
.local {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand strong {
  font-size: 20px;
  letter-spacing: -0.5px;
}
.logo {
  display: grid;
  place-items: center;
  background: var(--accent);
  width: 35px;
  height: 35px;
  color: #fff;
  font-size: 27px;
  border-radius: 10px;
}
.tag {
  font-size: 10px;
  color: #8b94a6;
  letter-spacing: 0.8px;
  background: #f2f3f7;
  border-radius: 4px;
  padding: 3px 6px;
}
.local {
  color: #78849a;
  font-size: 12px;
}
i {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #49a98c;
  margin-right: 4px;
}
.toolbar {
  display: flex;
  gap: 8px;
  padding: 13px 24px;
  border-bottom: 1px solid var(--line);
  background: #fcfcfe;
}
.spacer {
  flex: 1;
}
.divider {
  border-left: 1px solid var(--line);
  margin: 4px 7px;
}
.location {
  display: flex;
  gap: 10px;
  padding: 12px 24px;
  border-bottom: 1px solid var(--line);
  height: 61px;
}
#crumbs {
  display: flex;
  align-items: center;
  gap: 5px;
  flex: 1;
  overflow: auto;
  white-space: nowrap;
}
#crumbs button {
  border: 0;
  padding: 4px 7px;
  font-family: Consolas, monospace;
  color: #6459a8;
}
.searchwrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 350px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--wash);
  padding: 0 9px;
}
.searchwrap input {
  border: 0;
  background: transparent;
  flex: 1;
  width: 100px;
  padding: 7px;
}
.searchwrap kbd {
  font-size: 10px;
  color: #9ba3b3;
}
.searchwrap input:focus {
  outline: 0;
}
#results {
  position: absolute;
  top: 43px;
  right: 0;
  width: 490px;
  max-height: 420px;
  overflow: auto;
  background: white;
  box-shadow: 0 10px 35px #23314a26;
  border: 1px solid var(--line);
  border-radius: 8px;
  z-index: 10;
  padding: 8px;
}
#results button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  white-space: normal;
}
#results small {
  display: block;
  color: var(--muted);
  word-break: break-all;
}
.workspace {
  display: grid;
  grid-template-columns: 260px minmax(380px, 1fr) 290px;
  height: calc(100vh - 226px);
  min-height: 420px;
}
.treepane {
  background: #fafbfd;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.panehead {
  height: 53px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.panehead button {
  padding: 1px 5px;
  border: 0;
  background: transparent;
  font-size: 17px;
}
.filelabel {
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}
.badge {
  font-size: 9px;
  font-weight: 700;
  padding: 3px 5px;
  border-radius: 4px;
  background: #eeeafa;
  color: #7761ca;
}
#dirty {
  color: #cf943a;
}
#tree {
  overflow: auto;
  flex: 1;
  padding: 6px 8px;
}
.node {
  height: 31px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  border-radius: 5px;
  white-space: nowrap;
  min-width: max-content;
  padding-right: 8px;
}
.node:hover {
  background: #eeeef7;
}
.node.selected {
  background: #ebe7fb;
  color: #6550c7;
  font-weight: 600;
}
.toggle {
  border: 0;
  background: none;
  padding: 0;
  width: 18px;
  color: #8b96a5;
}
.nodeicon {
  font:
    12px Consolas,
    monospace;
  color: #a38bdb;
}
.node small {
  color: #98a2b2;
  font-size: 10px;
  margin-left: 3px;
  font-weight: 400;
}
.treefoot {
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  color: #9ba4b2;
  font-size: 11px;
}
main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.mainhead {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 24px 24px 18px;
  align-items: center;
}
.eyebrow {
  color: #a0a6b4;
  font-size: 10px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}
h1 {
  font-size: 23px;
  letter-spacing: -0.5px;
  margin: 4px 0;
}
p {
  margin: 0;
  color: var(--muted);
}
.tabs {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 3px;
  background: var(--wash);
}
.tabs button {
  border: 0;
  background: transparent;
  padding: 5px 8px;
  font-size: 12px;
}
.tabs button.active {
  background: white;
  color: var(--accent);
  box-shadow: 0 1px 4px #29344d15;
}
.actionbar {
  display: flex;
  gap: 6px;
  padding: 0 24px 16px;
  border-bottom: 1px solid var(--line);
}
.actionbar button {
  padding: 6px 8px;
  font-size: 12px;
}
.actionbar input {
  width: 155px;
  font-size: 12px;
  padding: 5px 8px;
}
#tableview,
#sourceview {
  flex: 1;
  min-height: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
}
[hidden] {
  display: none !important;
}
.hint {
  background: #fbfbfe;
  color: #8c91a4;
  font-size: 11px;
  padding: 10px 24px;
  border-bottom: 1px solid var(--line);
}
#grid {
  overflow: auto;
  flex: 1;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
}
th {
  background: #f7f8fb;
  color: #7b8496;
  text-align: left;
  font-weight: 500;
  position: sticky;
  top: 0;
  z-index: 1;
}
th,
td {
  border-bottom: 1px solid #edf0f5;
  padding: 9px 14px;
  white-space: nowrap;
  max-width: 260px;
  text-overflow: ellipsis;
  overflow: hidden;
}
tr:hover td {
  background: #faf9ff;
}
tr.chosen td {
  background: #f2effd;
}
td input {
  border: 1px solid transparent;
  background: transparent;
  width: 100%;
  min-width: 85px;
  padding: 3px 4px;
  margin: -3px -4px;
  font-size: 12px;
  border-radius: 3px;
}
td input:hover {
  border-color: #ded8f5;
  background: white;
}
.rowname {
  color: var(--accent);
  cursor: pointer;
}
.rownum {
  color: #a7afbd;
  font-family: Consolas, monospace;
  width: 45px;
}
.chip {
  font:
    10px Consolas,
    monospace;
  color: #8b78b8;
  background: #f1edf9;
  border-radius: 4px;
  padding: 2px 5px;
}
.empty {
  padding: 45px 24px;
  text-align: center;
  color: #8d96a8;
}
.scenario {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 12px 20px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  color: #9da4b3;
  background: #fdfdfe;
}
.scenario button {
  font-size: 11px;
  border: 0;
  background: #f2f3f8;
  padding: 5px 8px;
  color: #7d8296;
}
.inspector {
  border-left: 1px solid var(--line);
  overflow: auto;
  background: #fdfdfe;
}
#properties {
  padding: 10px 20px 24px;
}
.propicon {
  width: 42px;
  height: 42px;
  background: #f0ecfc;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--accent);
  font: 22px Consolas;
}
.proptitle {
  font-size: 18px;
  font-weight: 600;
  margin-top: 12px;
}
.proppath {
  font:
    10px/1.6 Consolas,
    monospace;
  color: #9a9faf;
  word-break: break-all;
  margin: 6px 0 22px;
}
.field {
  margin: 14px 0;
}
.field label {
  display: block;
  font-size: 11px;
  color: #8a93a5;
  margin-bottom: 6px;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  font-size: 12px;
}
.field textarea {
  height: 90px;
  resize: vertical;
}
.propsection {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  font-weight: 600;
}
.propsection button {
  padding: 2px 7px;
}
.attr {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
}
.attr span {
  font: 11px Consolas;
  color: #8a75c4;
  min-width: 52px;
}
.attr input {
  width: 100%;
  padding: 6px;
}
.attr button {
  border: 0;
  color: #b0a6ba;
  padding: 4px;
}
.note {
  font-size: 11px;
  line-height: 1.8;
  color: #969cad;
  background: #f6f7fa;
  padding: 12px;
  border-radius: 6px;
  margin-top: 20px;
}
.full {
  width: 100%;
  margin-top: 12px;
}
footer {
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  border-top: 1px solid var(--line);
  color: #929bac;
  font-size: 11px;
  background: #fcfcfe;
}
#source {
  flex: 1;
  min-height: 240px;
  resize: none;
  border: 0;
  border-radius: 0;
  padding: 20px;
  font:
    12px/1.8 Consolas,
    monospace;
  tab-size: 2;
  background: #fcfcff;
}
#sourceview .hint {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
#toast {
  position: fixed;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  background: #303148;
  color: #fff;
  border-radius: 8px;
  padding: 10px 20px;
  z-index: 40;
  box-shadow: 0 5px 25px #3333;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
  max-width: 80vw;
}
#toast.show {
  opacity: 1;
}
dialog {
  width: 470px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 25px 80px #20223830;
}
dialog::backdrop {
  background: #20243850;
}
.dialogtitle {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.dialogtitle h2 {
  font-size: 19px;
  margin: 0 0 14px;
}
.dialogtitle button {
  border: 0;
  font-size: 20px;
}
.dialogactions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 22px;
}
.error {
  color: #c05a60;
  margin-top: 10px;
  font-size: 12px;
}
.help {
  line-height: 2;
  color: #737e93;
}
.help b {
  color: #4b4671;
}
.help a {
  margin-left: 4px;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
}
.help a:hover {
  text-decoration: underline;
}
@media (min-width: 1500px) {
  .workspace {
    grid-template-columns: 285px minmax(380px, 1fr) 320px;
  }
}
@media (max-width: 1050px) {
  .workspace {
    grid-template-columns: 220px minmax(350px, 1fr) 250px;
  }
  .local {
    font-size: 0;
  }
  .mainhead {
    padding: 18px;
  }
  .actionbar {
    padding: 0 12px 12px;
  }
  .actionbar input {
    width: 110px;
  }
  .scenario {
    gap: 2px;
    padding: 8px;
  }
  .scenario > span {
    display: none;
  }
  .searchwrap {
    width: 290px;
  }
}
@media (max-width: 800px) {
  body {
    min-width: 780px;
  }
  .workspace {
    grid-template-columns: 190px minmax(340px, 1fr) 250px;
  }
  .toolbar {
    padding: 10px;
  }
  .toolbar button {
    font-size: 11px;
    padding: 7px;
  }
  .mainhead {
    flex-wrap: wrap;
  }
  .location {
    padding: 10px;
  }
}
@media (max-width: 800px) {
  body {
    min-width: 0;
  }
  header {
    padding: 0 14px;
    height: 64px;
  }
  .brand strong {
    font-size: 18px;
  }
  .local {
    display: none;
  }
  .toolbar {
    overflow-x: auto;
    flex-shrink: 0;
  }
  .toolbar .spacer {
    display: none;
  }
  .location {
    padding: 10px 12px;
  }
  .searchwrap {
    width: 220px;
    flex-shrink: 0;
  }
  .searchwrap kbd {
    display: none;
  }
  .workspace {
    grid-template-columns: 155px minmax(230px, 1fr) 200px;
    height: calc(100vh - 218px);
    min-height: 400px;
  }
  .panehead {
    padding: 12px;
    font-size: 12px;
  }
  .panehead .tag {
    display: none;
  }
  .filelabel {
    padding: 10px;
    font-size: 10px;
  }
  .filelabel b {
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .mainhead {
    padding: 16px 12px;
  }
  .mainhead p {
    font-size: 11px;
  }
  .actionbar {
    overflow-x: auto;
    flex-shrink: 0;
  }
  .actionbar input {
    min-width: 110px;
  }
  .actionbar .spacer {
    display: none;
  }
  .hint {
    padding: 9px 12px;
  }
  .treefoot {
    font-size: 10px;
    padding: 9px;
  }
  .scenario {
    overflow-x: auto;
    flex-shrink: 0;
  }
  .scenario button {
    font-size: 10px;
  }
  #properties {
    padding: 8px 12px;
  }
  .proptitle {
    font-size: 16px;
  }
  #results {
    width: min(490px, 90vw);
  }
  footer {
    padding: 0 10px;
    font-size: 10px;
  }
  footer > span:last-child {
    display: none;
  }
}
body {
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
header,
.toolbar,
.location,
footer {
  flex-shrink: 0;
}
.workspace {
  flex: 1;
  height: auto;
  min-height: 0;
}
.treepane,
main,
.inspector,
#tree,
#grid {
  min-height: 0;
}
.toolbar {
  min-height: 58px;
}
.location {
  min-height: 58px;
}

.browsenav {
  display: flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
}
.actionbar .navbutton {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border-color: transparent;
  background: transparent;
  color: #596276;
}
.actionbar .navbutton:hover:enabled {
  background: #f1effc;
  color: var(--accent);
  border-color: #ded8f5;
}
.actionbar .navbutton:disabled {
  opacity: 0.3;
}
.navdivider {
  width: 1px;
  background: var(--line);
  margin: 5px 5px 5px 2px;
  flex-shrink: 0;
}
.actionbar {
  align-items: center;
}

#sourceview {
  overflow: hidden;
}
#sourceview > .hint {
  flex-shrink: 0;
  gap: 12px;
}
.sourceeditor {
  position: relative;
  flex: 1;
  min-height: 0;
  background: #fcfcff;
  isolation: isolate;
}
#sourcehighlight,
#sourceview #source {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  margin: 0;
  border: 0;
  border-radius: 0;
  padding: 20px;
  font:
    13px/1.8 Consolas,
    'Cascadia Mono',
    'Microsoft YaHei',
    monospace;
  letter-spacing: normal;
  tab-size: 2;
  white-space: pre;
  overflow: auto;
  box-sizing: border-box;
  text-align: left;
  direction: ltr;
  word-break: normal;
  overflow-wrap: normal;
}
#sourcehighlight {
  color: #384258;
  pointer-events: none;
  z-index: 0;
}
#sourcecode {
  font: inherit;
  display: block;
  min-height: 100%;
  min-width: max-content;
}
#sourceview #source {
  z-index: 1;
  background: transparent;
  color: transparent;
  -webkit-text-fill-color: transparent;
  caret-color: #3d365e;
  resize: none;
  outline: 0;
}
#sourceview #source::selection {
  background: rgba(120, 100, 210, 0.22);
  color: transparent;
}
#sourceview #source:focus {
  box-shadow: inset 0 0 0 1px #d9d1f1;
}
.sourcestatus {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 16px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  color: #9296a7;
  flex-shrink: 0;
  background: #fafafd;
}
.syntax-tag,
.syntax-key {
  color: #7952bc;
}
.syntax-attribute {
  color: #a46828;
}
.syntax-string {
  color: #2a8067;
}
.syntax-number,
.syntax-entity {
  color: #b46b25;
}
.syntax-boolean,
.syntax-instruction {
  color: #3a72b7;
}
.syntax-null {
  color: #8c6c9d;
}
.syntax-comment {
  color: #929ba4;
}
.syntax-cdata {
  color: #288392;
}
.syntax-punctuation {
  color: #7d8798;
}
@media (forced-colors: active) {
  #sourcehighlight {
    display: none;
  }
  #sourceview #source {
    color: CanvasText;
    -webkit-text-fill-color: CanvasText;
    caret-color: CanvasText;
  }
}

#sourcecurrentline {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 0;
  background: #eeeafa;
  pointer-events: none;
}
#sourcecaretmeasure {
  position: absolute;
  left: 0;
  top: 0;
  visibility: hidden;
  white-space: pre;
  pointer-events: none;
}
#sourcehighlight {
  z-index: 1;
}
#sourceview #source {
  z-index: 2;
}
.sourcestatus #sourcelink.pending {
  color: #b07a32;
}
.sourcestatus {
  flex-wrap: wrap;
}
#sourcecaretmeasure:empty {
  width: 0;
}

.formatnotice {
  margin: 0 24px 12px;
  padding: 9px 12px;
  border: 1px solid #eadfbe;
  border-radius: 6px;
  background: #fffcf3;
  color: #9b7839;
  font-size: 11px;
  flex-shrink: 0;
}
input[readonly],
textarea[readonly] {
  background: #f5f5f8;
  color: #9094a2;
}
.formatnotice[hidden] {
  display: none;
}

.syntax-reference {
  color: #b064a1;
}

.workspace {
  --tree-default: 260;
  --inspector-width: 290px;
  grid-template-columns: var(--tree-width, 260px) minmax(0, 1fr) var(--inspector-width);
}
.treepane {
  position: relative;
}
.pane-resizer {
  position: absolute;
  right: -4px;
  top: 0;
  bottom: 0;
  width: 9px;
  cursor: col-resize;
  z-index: 8;
  touch-action: none;
  outline: 0;
}
.pane-resizer:after {
  content: '';
  position: absolute;
  left: 3px;
  top: 0;
  bottom: 0;
  width: 3px;
  border-radius: 2px;
  background: transparent;
  transition: background 0.12s;
}
.pane-resizer:hover:after,
.pane-resizer:focus-visible:after,
.pane-resizer.dragging:after {
  background: #a697e8;
}
.resizing-layout,
.resizing-layout * {
  cursor: col-resize !important;
  user-select: none !important;
}
.resizable-grid {
  table-layout: fixed;
}
.resizable-grid th,
.resizable-grid td {
  max-width: none;
}
.resizable-grid th {
  padding-right: 20px;
  overflow: hidden;
}
.column-label {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.column-resizer {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 10px;
  z-index: 2;
  cursor: col-resize;
  touch-action: none;
  outline: 0;
}
.column-resizer:after {
  content: '';
  position: absolute;
  right: 3px;
  top: 7px;
  bottom: 7px;
  width: 2px;
  border-radius: 2px;
  background: #dfe2eb;
}
.column-resizer:hover:after,
.column-resizer:focus-visible:after,
.column-resizer.dragging:after {
  background: #8d7bdc;
  width: 3px;
}
.resizable-grid td input {
  min-width: 0;
  width: calc(100% + 8px);
}
.resizable-grid .rownum {
  width: auto;
}
.treefoot span {
  color: #b0a5cd;
  font-size: 10px;
}
@media (min-width: 1500px) {
  .workspace {
    --tree-default: 285;
    --inspector-width: 320px;
  }
}
@media (max-width: 1050px) {
  .workspace {
    --tree-default: 220;
    --inspector-width: 250px;
  }
}
@media (max-width: 800px) {
  .workspace {
    --tree-default: 155;
    --inspector-width: 200px;
  }
}

.source-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
#sourceview > .hint {
  align-items: flex-start;
}
.validationpanel {
  flex-shrink: 0;
  max-height: min(240px, 35vh);
  overflow: auto;
  border-top: 1px solid var(--line);
  background: #fcfcff;
}
.validationhead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  position: sticky;
  top: 0;
  background: #fcfcff;
  z-index: 3;
  border-bottom: 1px solid #edf0f5;
}
.validationhead strong {
  font-size: 12px;
}
.validationhead p {
  font-size: 10px;
  margin-top: 3px;
}
.validationhead > div:last-child {
  display: flex;
  gap: 5px;
}
.validationhead button {
  padding: 3px 7px;
  font-size: 11px;
}
.validationpanel[data-state='ok'] .validationhead strong {
  color: #2b8c70;
}
.validationpanel[data-state='error'] .validationhead strong {
  color: #be5762;
}
.validationpanel[data-state='warning'] .validationhead strong,
.validationpanel[data-state='stale'] .validationhead strong {
  color: #ad803b;
}
#validationissues {
  padding: 8px 12px;
}
.diagnostic {
  display: block;
  white-space: normal;
  width: 100%;
  text-align: left;
  padding: 9px 11px;
  margin: 0 0 5px;
  border-left: 3px solid #d8828d;
  background: white;
}
.diagnostic strong {
  display: block;
  font-weight: 500;
  font-size: 11px;
}
.diagnostic span {
  display: block;
  color: #8a80af;
  font-size: 10px;
  margin-top: 3px;
}
.diagnostic small {
  display: block;
  color: #9296a4;
  font-size: 10px;
  overflow-wrap: anywhere;
  margin-top: 5px;
}
.diagnostic.warning {
  border-left-color: #d8b673;
}
.diagnostic:disabled {
  opacity: 0.55;
}
.validationpass,
.validationnote {
  padding: 3px 5px;
  font-size: 11px;
  color: #8b94a5;
}
.validationnote {
  font-size: 10px;
}
#validate[data-validation='ok'] {
  color: #2b8c70;
  border-color: #b9dacd;
}
#validate[data-validation='error'] {
  color: #be5762;
  border-color: #e4bcc4;
}
#validate[data-validation='warning'],
#validate[data-validation='stale'] {
  color: #ad803b;
  border-color: #dfcda8;
}

.inspector.validating {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.inspector.validating > .panehead {
  flex-shrink: 0;
}
.inspector.validating .validationpanel {
  flex: 1;
  min-height: 0;
  max-height: none;
  border-top: 0;
  overflow: auto;
}
.validationhead {
  flex-wrap: wrap;
}
.validationhead > div:first-child {
  min-width: 0;
  flex: 1 1 100px;
}
.validationhead > div:last-child {
  flex-shrink: 0;
}
.diagnostic strong,
.validationhead strong {
  overflow-wrap: anywhere;
}

.repair-tree {
  padding: 26px 12px;
  color: #8d95a5;
  font-size: 11px;
  line-height: 1.9;
}
.repair-tree strong {
  display: block;
  color: #a3844b;
  font-size: 12px;
  margin-bottom: 8px;
}
.repair-tree p {
  font-size: 11px;
}
.tabs button:disabled {
  cursor: default;
  opacity: 0.35;
}

#sourceview > .hint {
  flex-wrap: wrap;
}
.source-hint-text {
  flex: 1 1 240px;
}
.source-actions {
  flex-wrap: wrap;
  max-width: 100%;
  margin-left: auto;
}
#formatsource {
  color: #6754be;
}
#undoformat {
  color: #8b7bad;
  font-size: 11px;
}

.selectionbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 18px;
  border-bottom: 1px solid var(--line);
  background: #f8f6ff;
  font-size: 11px;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.selectionbar button {
  font-size: 11px;
  padding: 3px 8px;
}
.selectionbar small {
  margin-left: auto;
  color: #9290a5;
}
.select-column {
  text-align: center;
  padding: 8px !important;
}
.select-column input,
.resizable-grid .select-column input {
  appearance: auto;
  width: 16px;
  min-width: 16px;
  height: 16px;
  margin: 0;
  vertical-align: middle;
  accent-color: var(--accent);
  cursor: pointer;
}
.select-column .column-label {
  overflow: visible;
}
tbody tr:focus-visible {
  outline: 2px solid #bdb3f5;
  outline-offset: -2px;
}
.batch-node-list {
  font:
    11px/1.9 Consolas,
    'Microsoft YaHei',
    monospace;
  padding-left: 18px;
  overflow-wrap: anywhere;
  color: #7f7898;
  max-height: 280px;
  overflow: auto;
}
#duplicatedialog {
  width: min(850px, 92vw);
  max-height: 86vh;
  overflow: auto;
}
#duplicatedialog .dialogtitle {
  position: sticky;
  top: -24px;
  padding: 12px 0;
  background: white;
  z-index: 3;
  gap: 14px;
}
#duplicatedialog h2 {
  font-size: 17px;
  margin: 0;
}
.duplicate-note {
  font-size: 12px;
  line-height: 1.9;
  margin: 14px 0;
  padding: 12px;
  background: #fffcf3;
  border: 1px solid #eadfbe;
  border-radius: 6px;
  color: #94743c;
}
.duplicate-group {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  margin: 12px 0;
}
.duplicate-group h3 {
  font-size: 13px;
  margin: 0 0 5px;
}
.duplicate-path {
  font:
    11px/1.8 Consolas,
    'Microsoft YaHei',
    monospace;
  overflow-wrap: anywhere;
}
.duplicate-actions {
  display: flex;
  gap: 8px;
  margin: 10px 0;
}
.duplicate-actions button,
.duplicate-entry button {
  padding: 4px 9px;
  font-size: 11px;
}
.duplicate-entries {
  max-height: 240px;
  overflow: auto;
}
.duplicate-entry {
  display: flex;
  align-items: center;
  gap: 6px;
  border-top: 1px solid #f0eef7;
  padding: 7px 0;
}
.duplicate-entry span {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
  font:
    11px/1.8 Consolas,
    'Microsoft YaHei',
    monospace;
  color: #807397;
}
#moreduplicates {
  width: 100%;
  margin-top: 12px;
}

.evolutionbar {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  padding: 8px 18px;
  border-bottom: 1px solid var(--line, #e4e7ef);
  background: #f8f9fc;
}
.evolutionbar button {
  font-size: 12px;
  padding: 6px 9px;
}
.evolutionbar small {
  color: #687389;
  max-width: 250px;
}
.evolutionbar select {
  max-width: 200px;
}
.doc-tabs {
  display: flex;
  gap: 4px;
  overflow: auto;
  padding: 5px 18px;
  background: #f1f3fa;
}
.doc-tabs button.active {
  background: #7361e8;
  color: white;
}
.doc-tabs button {
  white-space: nowrap;
}
#dialogbody textarea {
  width: 100%;
  min-height: 100px;
  font-family: Consolas, monospace;
  box-sizing: border-box;
}
#dialogbody pre {
  max-height: 340px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
}
#dialogbody select {
  max-width: 100%;
}
#dialogbody .resultlist {
  max-height: 320px;
  overflow: auto;
}
#dialogbody .resultlist button {
  display: block;
  width: 100%;
  text-align: left;
  margin: 3px 0;
}
.evolutionbar [aria-pressed='true'] {
  background: #e9e4ff;
  border-color: #7966ce;
}
table td.pin,
table th.pin {
  position: sticky;
  left: 0;
  background: #f5f3ff;
  z-index: 1;
}
#schemafiles {
  display: block;
  margin: 8px 0;
}
.workspace {
  min-height: 300px;
}
body {
  min-height: 100vh;
}
nav.toolbar {
  flex-wrap: wrap;
}
dialog {
  max-width: min(850px, 90vw);
}

.language-picker {
  font: inherit;
  font-size: 12px;
  padding: 5px 8px;
  border: 1px solid #dedfeb;
  border-radius: 6px;
  background: white;
  color: #344159;
  max-width: 145px;
}
.dialogtitle .language-picker {
  margin-left: auto;
  flex-shrink: 0;
}
html[lang='en'] .toolbar {
  gap: 6px;
}
html[lang='en'] .evolutionbar button {
  font-size: 11px;
}
html[lang='en'] .local {
  flex-wrap: wrap;
}

.query-guide {
  padding: 10px 12px;
  border: 1px solid #ded8f5;
  border-radius: 8px;
  background: #f8f7ff;
  margin-bottom: 12px;
}
.query-guide summary {
  cursor: pointer;
  font-weight: 600;
}
.query-guide ul {
  margin: 8px 0;
  padding-left: 22px;
}
.query-guide li,
.query-guide p {
  margin: 5px 0;
  line-height: 1.5;
}
.query-guide code {
  font-size: 12px;
}
.query-guide + label,
#dialogbody fieldset > label {
  display: block;
  margin: 8px 0 4px;
}
#dialogbody fieldset select,
#dialogbody #qscope {
  width: 100%;
}
#dialogbody fieldset {
  border: 1px solid #e4e7ef;
  border-radius: 8px;
  margin: 12px 0;
  padding: 10px;
}

#dialog:has(.query-guide) {
  width: min(820px, 94vw);
  max-height: min(760px, calc(100dvh - 48px));
  overflow-y: auto;
}
#dialogbody:has(.query-guide) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 16px;
}
#dialogbody:has(.query-guide) > .query-guide,
#dialogbody:has(.query-guide) > label[for='qscope'],
#dialogbody:has(.query-guide) > #qscope {
  grid-column: 1/-1;
}
#dialogbody:has(.query-guide) > fieldset {
  min-width: 0;
}
@media (max-width: 650px) {
  #dialogbody:has(.query-guide) {
    grid-template-columns: 1fr;
  }
  #dialogbody:has(.query-guide) > fieldset {
    grid-column: 1/-1;
  }
}

#dialog:has(.query-guide) .dialogactions {
  position: sticky;
  bottom: -24px;
  background: #fff;
  padding: 12px 0 4px;
  margin-top: 0;
  z-index: 2;
}

#dialog.query-draggable .dialogtitle {
  position: sticky;
  top: -24px;
  z-index: 3;
  background: #fff;
  cursor: move;
  touch-action: none;
  padding: 4px 0;
}
#dialog.query-draggable .dialogtitle:focus-visible {
  outline: 2px solid #7966ce;
  outline-offset: 3px;
  border-radius: 4px;
}
#dialog.query-draggable .dialogtitle button,
#dialog.query-draggable .dialogtitle select {
  cursor: pointer;
}
.query-drag-hint {
  color: #8190a5;
  font-size: 11px;
  white-space: nowrap;
  margin-left: 8px;
}

@media (max-width: 650px) {
  .query-drag-hint {
    display: none;
  }
}

/* Drag targets distinguish sibling insertion from moving into a container. */
.drag-grip {
  display: inline-block;
  margin-left: 7px;
  color: #a398c7;
  cursor: grab;
  letter-spacing: -3px;
}
.node[draggable='true'],
#grid tbody tr[draggable='true'] .rowname {
  cursor: grab;
}
.dragging {
  opacity: 0.45;
}
.node.drop-before,
tr.drop-before td {
  box-shadow: inset 0 3px #6655d6;
}
.node.drop-after,
tr.drop-after td {
  box-shadow: inset 0 -3px #6655d6;
}
.node.drop-inside {
  background: #e8e3ff;
  outline: 2px solid #6655d6;
  outline-offset: -2px;
}
.drop-invalid {
  opacity: 0.55;
  cursor: not-allowed !important;
}
.assist-positions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
dialog:has(.assist-form) {
  width: min(720px, calc(100vw - 40px));
}
.assist-form > label {
  display: block;
  margin: 10px 0 4px;
}
.assist-form > select,
.assist-form > textarea {
  width: 100%;
  box-sizing: border-box;
}
.assist-form > textarea {
  height: 70px;
  min-height: 60px;
}
.assist-positions label {
  flex: 1 1 120px;
}
.assist-positions input {
  width: 100%;
  box-sizing: border-box;
}
.assist-context {
  position: fixed;
  z-index: 1000;
  padding: 6px;
  border: 1px solid #dedfeb;
  border-radius: 8px;
  background: white;
  box-shadow: 0 6px 24px #15234330;
}
.assist-context button {
  display: block;
  width: 100%;
  text-align: left;
}

/* Keep the companion editors discoverable without replacing the current document. */
.editor-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 auto 0 24px;
}
.editor-links a {
  padding: 7px 9px;
  border-radius: 6px;
  color: var(--accent);
  font-size: 12px;
  text-decoration: none;
  white-space: nowrap;
}
.editor-links a:hover {
  background: #f0edf9;
}
.editor-links a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
@media (max-width: 800px) {
  header:has(.editor-links) {
    height: auto;
    min-height: 62px;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .editor-links {
    margin-left: 0;
  }
}

/* Auto-index column & data-type cell background coloring */
#grid th.rownum-head,
#grid th:nth-child(2) {
  background: #e4dff8;
  color: #4b3ca3;
  font-weight: 700;
  text-align: center;
  border-left: 1px solid #d7d0f3;
  border-right: 1px solid #d7d0f3;
}
#grid td.rownum {
  background: #eeebfb;
  color: #5b4ab5;
  font-family: Consolas, monospace;
  font-weight: 600;
  text-align: center;
  border-left: 1px solid #e2dcf8;
  border-right: 1px solid #e2dcf8;
}
#grid td.rowname {
  background: #faf9fe;
  font-weight: 500;
}
#grid td[data-cell-type='string'] {
  background: #f4f8fd;
}
#grid td[data-cell-type='number'] {
  background: #eefaf3;
}
#grid td[data-cell-type='number'] input {
  font-family: Consolas, 'Microsoft YaHei', monospace;
  color: #185a3d;
}
#grid td[data-cell-type='boolean'] {
  background: #fef8e7;
}
#grid td[data-cell-type='boolean'] input {
  color: #8a5210;
  font-weight: 600;
}
#grid td[data-cell-type='date'] {
  background: #edf9fb;
}
#grid td[data-cell-type='date'] input {
  font-family: Consolas, 'Microsoft YaHei', monospace;
  color: #195d6b;
}
#grid td[data-cell-type='null'],
#grid td[data-cell-type='empty'] {
  background: #f5f5f7;
}
#grid td[data-cell-type='null'] input {
  color: #8b7da0;
  font-style: italic;
}
#grid td[data-cell-type='complex'] {
  background: #f6f2fc;
}
.chip[data-chip-type='number'] {
  background: #dff5e8;
  color: #185a3d;
}
.chip[data-chip-type='boolean'] {
  background: #fceec7;
  color: #8a5210;
}
.chip[data-chip-type='date'] {
  background: #dcf2f6;
  color: #195d6b;
}
.chip[data-chip-type='string'] {
  background: #e4effc;
  color: #23538a;
}
.chip[data-chip-type='null'],
.chip[data-chip-type='empty'] {
  background: #e9eaee;
  color: #6f7685;
}
#grid tr:hover td {
  filter: brightness(0.975);
}
#grid tr:hover td.rownum {
  background: #e3ddf9;
}
#grid tr.chosen td {
  background: #e9e4fc !important;
  filter: none;
}
#grid tr.chosen td.rownum {
  background: #d8d0f8 !important;
  color: #3f2e96;
}
#grid td input:hover,
#grid td input:focus {
  background: #fff;
}
.type-legend {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  margin-left: auto;
}
.selectionbar .type-legend + small {
  margin-left: 8px;
}
.type-legend [data-swatch] {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
  line-height: 1.4;
  border: 1px solid #e1e5ee;
}
.type-legend [data-swatch='index'] {
  background: #eeebfb;
  color: #5b4ab5;
  border-color: #d7d0f3;
  font-family: Consolas, 'Microsoft YaHei', monospace;
  font-weight: 600;
}
.type-legend [data-swatch='string'] {
  background: #f4f8fd;
  color: #24507e;
  border-color: #d5e4f7;
}
.type-legend [data-swatch='number'] {
  background: #eefaf3;
  color: #185a3d;
  border-color: #ccecd9;
}
.type-legend [data-swatch='boolean'] {
  background: #fef8e7;
  color: #8a5210;
  border-color: #f3dfb0;
}
.type-legend [data-swatch='date'] {
  background: #edf9fb;
  color: #195d6b;
  border-color: #c8e9ef;
}
.type-legend [data-swatch='null'] {
  background: #f5f5f7;
  color: #6e7584;
  border-color: #dfe1e7;
}
.type-legend [data-swatch='complex'],
.type-legend [data-swatch='blob'] {
  background: #f6f2fc;
  color: #6b4999;
  border-color: #e2d5f5;
}
.type-legend [data-swatch='formula'] {
  background: #fcf4ea;
  color: #7a5218;
  border-color: #edd7bc;
}

/* Progressive disclosure & high-density workspace layout (Scheme C+) */
header {
  height: 44px;
  min-height: 44px;
  padding: 0 14px;
  gap: 10px;
  justify-content: flex-start;
  background: #fff;
  position: relative;
  z-index: 20;
}
.brand {
  gap: 8px;
  flex-shrink: 0;
}
.logo {
  width: 26px;
  height: 26px;
  font-size: 18px;
  border-radius: 7px;
}
.brand strong {
  font-size: 15px;
  letter-spacing: -0.3px;
  white-space: nowrap;
}
header .toolbar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  border-bottom: 0;
  background: transparent;
  min-height: 0;
  flex-wrap: nowrap;
  flex-shrink: 0;
}
header .toolbar button {
  padding: 5px 9px;
  font-size: 12px;
}
header .toolbar .divider {
  height: 18px;
  margin: 0 3px;
}
header .searchwrap {
  width: 240px;
  flex: 0 1 260px;
  min-width: 140px;
  height: 30px;
  padding: 0 8px;
}
header .searchwrap input {
  padding: 4px 6px;
  font-size: 12px;
}
#results {
  top: 36px;
  left: 0;
  right: auto;
  width: min(490px, 90vw);
  z-index: 35;
}
.top-tools {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.toolbox-toggle {
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 500;
  background: #f6f4ff;
  border-color: #d8d1f8;
  color: #4d3ca6;
}
.toolbox-toggle.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.toolbox-toggle.readonly-on::after {
  content: ' · 🔒';
  font-size: 11px;
}
.sample-dropdown {
  position: relative;
}
.sample-toggle {
  padding: 5px 9px;
  font-size: 12px;
}
.sample-toggle.active {
  background: #f1effc;
  border-color: #c8c0f0;
  color: var(--accent);
}
.sample-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 200px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(24, 34, 56, 0.16);
  padding: 8px;
  z-index: 35;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sample-group,
.sample-menu .scenario {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
  padding: 0;
  border: 0;
  background: transparent;
}
.sample-menu .scenario {
  border-top: 1px solid var(--line);
  padding-top: 6px;
  margin-top: 2px;
}
.sample-group small,
.sample-menu .scenario > span {
  display: block !important;
  font-size: 10px;
  font-weight: 600;
  color: #8b94a6;
  padding: 2px 8px;
}
.sample-menu button {
  text-align: left;
  border: 0;
  background: transparent;
  padding: 5px 10px;
  font-size: 12px;
  color: var(--ink);
  border-radius: 6px;
}
.sample-menu button:hover {
  background: #f2effd;
  color: var(--accent);
}
header .editor-links {
  margin: 0 0 0 auto;
  gap: 3px;
  flex-shrink: 0;
  flex-wrap: nowrap;
}
header .editor-links a {
  padding: 4px 7px;
  font-size: 11px;
}
header .local {
  gap: 6px;
  font-size: 0;
  flex-shrink: 0;
}
header .local i {
  margin-right: 0;
}
header .local button,
header .local .language-picker {
  font-size: 12px;
  padding: 4px 8px;
}
.doc-tabs {
  padding: 4px 14px;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  background: #f4f5fa;
  flex-shrink: 0;
}
.doc-tabs button {
  padding: 4px 10px;
  font-size: 11px;
}
.evolutionbar {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  padding: 10px 14px;
  background: #f8f9fc;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.toolbox-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 8px;
  width: 100%;
}
.toolbox-cat {
  background: #fff;
  border: 1px solid #e6e9f2;
  border-radius: 8px;
  padding: 7px 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.toolbox-cat-title {
  font-size: 11px;
  font-weight: 600;
  color: #576278;
}
.toolbox-cat-items {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.toolbox-cat-items button {
  font-size: 11.5px;
  padding: 4px 8px;
  border-radius: 5px;
}
.toolbox-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 11px;
  color: #687389;
  padding: 0 2px;
}
.toolbox-status small {
  max-width: none;
}
.treepane .panehead {
  height: 36px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.treepane .filelabel {
  padding: 6px 12px;
  border-bottom: 1px solid #eef0f6;
  background: #f5f7fb;
}
.treepane .treefoot {
  padding: 6px 12px;
  font-size: 10px;
  line-height: 1.4;
}
.mainhead {
  padding: 8px 14px;
  border-bottom: 1px solid var(--line);
  background: #fffcf3;
}
.mainhead .eyebrow {
  display: none;
}
.mainhead > div:first-child {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.mainhead h1 {
  font-size: 14px;
  margin: 0;
}
.mainhead p {
  font-size: 12px;
}
.formatnotice {
  margin: 6px 14px 0;
  padding: 6px 10px;
}
.actionbar {
  height: 38px;
  min-height: 38px;
  padding: 0 10px;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  background: #fcfcfe;
  flex-shrink: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.actionbar::-webkit-scrollbar {
  display: none;
}
.actionbar #crumbs {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 0 1 200px;
  min-width: 70px;
  max-width: 240px;
  overflow-x: auto;
  scrollbar-width: none;
}
.actionbar #crumbs::-webkit-scrollbar {
  display: none;
}
.actionbar #crumbs button {
  padding: 3px 4px;
  font-size: 11.5px;
  flex-shrink: 0;
}
.actionbar button {
  padding: 3px 7px;
  font-size: 11.5px;
  flex-shrink: 0;
  white-space: nowrap;
}
.actionbar .navbutton {
  width: 24px;
  height: 24px;
  padding: 0;
}
.actionbar input#filter {
  flex: 1 1 110px;
  min-width: 95px;
  max-width: 150px;
  padding: 3px 8px;
  font-size: 11.5px;
  height: 26px;
}
.actionbar .tabs {
  padding: 2px;
  border-radius: 6px;
  flex-shrink: 0;
}
.actionbar .tabs button {
  padding: 3px 8px;
  font-size: 11.5px;
}
.actionbar .inspector-toggle {
  padding: 4px 8px;
  font-size: 11.5px;
  color: #596276;
  flex-shrink: 0;
}
.actionbar .inspector-toggle.active {
  background: #f0ecfc;
  border-color: #d3caf5;
  color: var(--accent);
  font-weight: 500;
}
.actionbar.repair-mode > :not(.tabs):not(.spacer):not(#inspectortoggle) {
  display: none !important;
}
.workspace.inspector-collapsed {
  --inspector-width: 0px !important;
  grid-template-columns: var(--tree-width, 260px) minmax(0, 1fr) 0px !important;
}
.workspace.inspector-collapsed > .inspector {
  display: none !important;
}
.inspector .panehead {
  height: 38px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.inspector-head-right {
  display: flex;
  align-items: center;
  gap: 6px;
}
.inspector .icon-close {
  font-size: 16px;
  line-height: 1;
  padding: 2px 6px;
  color: #7b8496;
  border-radius: 4px;
}
.inspector .icon-close:hover {
  background: #eeeef7;
  color: var(--ink);
}
.selectionbar {
  padding: 5px 14px;
  gap: 8px;
}
#grid th,
#grid td {
  padding: 7px 12px;
}
footer {
  height: 28px;
  min-height: 28px;
  padding: 0 14px;
  gap: 12px;
  font-size: 11px;
}
footer .type-legend {
  gap: 4px;
  margin-left: auto;
  margin-right: 4px;
}
footer .type-legend [data-swatch] {
  padding: 1px 5px;
  font-size: 10px;
  line-height: 1.3;
}
@media (max-width: 1150px) {
  header .editor-links {
    display: none;
  }
  .toolbox-grid {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }
  .actionbar #crumbs {
    max-width: 150px;
  }
}
@media (max-width: 800px) {
  header {
    height: auto;
    min-height: 42px;
    flex-wrap: wrap;
    padding: 6px 10px;
    gap: 6px;
  }
  .toolbox-grid {
    grid-template-columns: 1fr;
  }
  footer .type-legend {
    display: none;
  }
}
