body {
  font: 14px/1.4 var(--sk-font-ui),sans-serif;
}
.editor-workspace {
  display: flex;
  flex: 1 1 auto;
  min-block-size: 0;
  block-size: calc(100dvh - 2 * var(--sk-chrome-height) -
    env(safe-area-inset-bottom));
}
.editor {
  width: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
  --ed-surface: #fbfbfa;
  --ed-chrome: #f0f1f2;
  --ed-line: #dfe1e4;
  --ed-ink: #343a40;
  --ed-muted: #79818b;
  --ed-select: #e4eaf0;
  color: var(--ed-ink);
  background: var(--ed-surface);
}
:root[data-sk-theme="dark"] .editor {
  --ed-surface: #20242a;
  --ed-chrome: #282d34;
  --ed-line: #3b424b;
  --ed-ink: #dce1e7;
  --ed-muted: #98a2ad;
  --ed-select: #36414d;
}
.editor-title {
  height: 2rem;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 .8rem;
  background: var(--ed-chrome);
  border-bottom: 1px solid var(--ed-line);
  font-size: .75rem;
  color: var(--ed-muted);
}
.editor-shell {
  display: flex;
  flex: 1;
  min-height: 0;
}
.explorer {
  width: 10rem;
  flex: none;
  display: flex;
  flex-direction: column;
  gap: .65rem;
  padding: .75rem .6rem;
  background: var(--ed-chrome);
  color: var(--ed-muted);
  font-size: .72rem;
}
.explorer > div {
  font-size: .65rem;
  letter-spacing: .07em;
}
.explorer strong {
  color: var(--ed-ink);
  font-size: .68rem;
}
.explorer-file {
  padding: .3rem .4rem;
  margin: 0 -.4rem;
  border-radius: .2rem;
  background: var(--ed-select);
  color: var(--ed-ink);
}
.editor-content {
  display: flex;
  flex: 1;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
}
.editor-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--ed-chrome);
  border-bottom: 1px solid var(--ed-line);
  min-height: 2.4rem;
}
.file-tab {
  align-self: stretch;
  display: flex;
  align-items: center;
  padding: 0 1rem;
  background: var(--ed-surface);
  border-right: 1px solid var(--ed-line);
  font: .75rem ui-monospace,monospace;
}
.file-tab b {
  font: 700 .65rem var(--sk-font-ui);
  color: #8d7842;
}
.editor-bar .sk-button {
  min-height: 1.7rem;
  margin-right: .4rem;
  font-size: .72rem;
}
.breadcrumb {
  padding: .35rem .85rem;
  color: var(--ed-muted);
  font-size: .7rem;
}
.editing {
  position: relative;
  display: flex;
  flex: 1;
  min-height: 13rem;
  background: var(--ed-surface);
}
.gutter,
#draft {
  box-sizing: border-box;
  padding: .6rem 0;
  border: 0;
  font: 14px/1.6 ui-monospace,monospace;
  white-space: pre;
}
.gutter {
  width: 3rem;
  flex: none;
  text-align: right;
  padding-right: .75rem;
  color: var(--ed-muted);
  user-select: none;
  overflow: hidden;
}
#draft {
  width: 100%;
  min-height: 0;
  resize: none;
  outline: none;
  background: transparent;
  color: var(--ed-ink);
  caret-color: var(--ed-ink);
  padding-left: .5rem;
}
#draft::selection {
  background: #89a9c566;
}
.suggest-box {
  position: absolute;
  right: auto;
  bottom: auto;
  width: min(14rem,48%);
  max-height: 55%;
  overflow: auto;
  background: var(--ed-surface);
  border: 1px solid var(--ed-line);
  border-radius: .3rem;
  box-shadow: 0 5px 20px #0003;
  z-index: 2;
}
.suggest-box[hidden] {
  display: none;
}
.candidate {
  display: flex;
  justify-content: space-between;
  gap: .4rem;
  width: 100%;
  padding: .38rem .55rem;
  border: 0;
  background: transparent;
  color: var(--ed-ink);
  cursor: pointer;
  text-align: left;
  font: .8rem ui-monospace,monospace;
}
.candidate[aria-selected=true] {
  background: var(--ed-select);
}
.candidate:focus-visible {
  outline: 2px solid #8198aa;
  outline-offset: -2px;
}
.candidate small {
  color: var(--ed-muted);
  font: .7rem var(--sk-font-ui);
}
.editor-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  background: var(--ed-chrome);
  color: var(--ed-muted);
  font-size: .72rem;
  padding: .35rem .65rem;
  border-top: 1px solid var(--ed-line);
}
.status-right {
  white-space: nowrap;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
@media (max-width:760px) {
  .explorer {
    width: 7rem;
  }
  .gutter,
  #draft {
    font-size: 12px;
  }
  .editor-footer {
    font-size: .68rem;
  }
}
@media (max-width:480px) {
  .explorer {
    display: none;
  }
  .status-right {
    display: none;
  }
  .editor-title {
    height: 1.6rem;
  }
  .breadcrumb {
    padding: .2rem .6rem;
  }
}
@media (max-height:420px) {
  .editing {
    min-height: 6rem;
  }
  .gutter,
  #draft {
    padding-top: .25rem;
    font-size: 12px;
    line-height: 1.4;
  }
  .editor-title {
    height: 1.5rem;
  }
  .editor-bar {
    min-height: 1.8rem;
  }
  .breadcrumb {
    padding: .1rem .65rem;
  }
  .editor-footer {
    padding: .2rem .5rem;
  }
  .explorer {
    padding-top: .35rem;
    gap: .35rem;
  }
}

.editing:focus-within .gutter {
  background: color-mix(in srgb, var(--ed-chrome) 65%, var(--ed-surface));
}
/* Workstation chrome and syntax remain separate from the native editable field. */
.editor {
  --ed-surface: #fcfcfb;
  --ed-chrome: #f4f5f5;
  --ed-line: #e0e3e4;
  --ed-ink: #313a43;
  --ed-muted: #7c8790;
  --ed-select: #e6ecee;
  border-radius: .7rem;
  box-shadow: 0 12px 32px #17212b0c;
}
:root[data-sk-theme="dark"] .editor {
  --ed-surface: #20262b;
  --ed-chrome: #282f34;
  --ed-line: #3b464c;
  --ed-ink: #e0e8e9;
  --ed-muted: #9aa9ad;
  --ed-select: #35454b;
}
.editor-title {
  height: 2.5rem;
  padding: 0 1rem;
  justify-content: flex-start;
  gap: .6rem;
  font-weight: 600;
  letter-spacing: .005em;
  color: var(--ed-ink);
}
.workspace-mark {
  width: .72rem;
  height: .72rem;
  border: 2px solid #8e9e9e;
  border-radius: .19rem;
  transform: rotate(45deg);
}
.workspace-caption {
  margin-left: auto;
  font-size: .6rem;
  letter-spacing: .1em;
  color: var(--ed-muted);
}
.explorer {
  width: 11.5rem;
  padding: 1.1rem .8rem;
  gap: .7rem;
}
.explorer > div {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .09em;
  margin-bottom: .4rem;
}
.explorer strong,
.explorer > span {
  padding-left: .25rem;
}
.explorer strong {
  letter-spacing: .03em;
}
.explorer-file {
  border-radius: .3rem;
  padding: .4rem .55rem!important;
  margin: 0 -.4rem;
}
.explorer-file b,
.tree-muted b {
  font: 700 .6rem var(--sk-font-ui);
  color: #a0884c;
}
.tree-muted {
  opacity: .65;
}
.tree-arrow {
  color: var(--ed-muted);
  margin-right: .2rem;
}
.explorer-bottom {
  margin-top: auto;
  font-size: .65rem;
  color: var(--ed-muted);
}
.editor-bar {
  min-height: 2.65rem;
}
.file-tab {
  border-top: 2px solid #91a9a7;
  padding: 0 1.15rem;
  font-weight: 600;
}
.breadcrumb {
  padding: .55rem 1rem;
  font-size: .7rem;
}
.editing {
  overflow: hidden;
}
.gutter,
#draft,
.syntax {
  font: 13px/1.75 ui-monospace,SFMono-Regular,Menlo,monospace;
  tab-size: 8;
}
.gutter {
  padding-top: .75rem;
  color: var(--ed-muted);
}
#draft,
.syntax {
  padding: .75rem .5rem;
}
#draft {
  position: relative;
  z-index: 1;
  background: transparent;
  color: transparent;
  caret-color: var(--ed-ink);
  -webkit-text-fill-color: transparent;
}
#draft::selection {
  background: #89a9c566;
}
.syntax {
  position: absolute;
  inset: 0 0 0 3rem;
  box-sizing: border-box;
  margin: 0;
  overflow: hidden;
  white-space: pre;
  color: var(--ed-ink);
  pointer-events: none;
}
.syntax code {
  font: inherit;
}
.token-keyword {
  color: #806092;
}
.token-string {
  color: #537d6d;
}
.token-number {
  color: #a07354;
}
.token-comment {
  color: #8c9698;
}
:root[data-sk-theme="dark"] .token-keyword {
  color: #d3abd8;
}
:root[data-sk-theme="dark"] .token-string {
  color: #a6cbb3;
}
:root[data-sk-theme="dark"] .token-number {
  color: #e4b38d;
}
.suggest-box {
  border-radius: .45rem;
  box-shadow: 0 8px 24px #101b2630,0 1px 4px #101b261a;
  padding: .25rem;
  border-color: var(--ed-line);
  z-index: 2;
}
.candidate {
  align-items: center;
  min-height: 1.85rem;
  padding: .35rem .5rem;
  border-radius: .25rem;
}
.candidate span:before {
  content: 'Aa';
  display: inline-grid;
  place-items: center;
  width: 1.25rem;
  height: 1.25rem;
  margin-right: .5rem;
  background: var(--ed-chrome);
  border-radius: .25rem;
  font: 600 .6rem var(--sk-font-ui);
  color: var(--ed-muted);
}
.candidate[aria-selected=true] {
  background: var(--ed-select);
  font-weight: 600;
}
.candidate small {
  font-weight: 400;
}
.editor-footer {
  padding: .45rem .85rem;
}
.editor-bar .sk-button {
  min-height: 1.8rem;
}
@media (max-width:760px) {
  .explorer {
    width: 8rem;
    padding: .7rem .55rem;
  }
  .gutter,
  #draft,
  .syntax {
    font-size: 12px;
  }
  .workspace-caption {
    font-size: .55rem;
  }
  .editor-title {
    height: 2rem;
  }
  .breadcrumb {
    padding: .35rem .75rem;
  }
}
@media (max-width:480px) {
  .explorer {
    display: none;
  }
  .workspace-caption {
    display: none;
  }
  .editor-title {
    height: 1.8rem;
  }
  .editor-bar {
    min-height: 2rem;
  }
  .breadcrumb {
    padding: .25rem .65rem;
  }
}
@media (max-height:420px) {
  .editor-title {
    height: 1.5rem;
  }
  .explorer {
    padding: .4rem .55rem;
    gap: .35rem;
  }
  .explorer > div {
    margin-bottom: 0;
  }
  .editor-bar {
    min-height: 1.7rem;
  }
  .breadcrumb {
    padding: .1rem .65rem;
  }
  .gutter,
  #draft,
  .syntax {
    font-size: 11px;
    line-height: 1.45;
    padding-top: .3rem;
  }
  .editor-footer {
    padding: .15rem .5rem;
  }
  .candidate {
    min-height: 1.45rem;
    padding: .15rem .35rem;
  }
}
