.about-elsie-shell {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.about-elsie-shell .about-elsie-window {
  max-width: 100%;
}

.about-elsie-shell .about-elsie-tree button,
.about-elsie-shell .about-elsie-toolbar button {
  cursor: pointer;
}

.about-ace-editor.is-fallback {
  padding: 16px;
  overflow: auto;
  outline: none;
  background: #1e1e1e;
  color: #d4d4d4;
  box-sizing: border-box;
  white-space: pre;
  tab-size: 2;
}

.about-elsie-terminal code {
  overflow-wrap: anywhere;
}

.about-elsie-shell .about-elsie-terminal {
  grid-template-columns: max-content minmax(0, 1fr);
  align-content: center;
}

#websiteFeedbackMessage {
  display: block;
  box-sizing: border-box;
}

.guideBase .desc {
  min-width: 0;
  overflow-wrap: anywhere;
}

/* Keep the demonstration a useful desktop ELSIE layout instead of squeezing
   the rendered webpage into a phone-width strip. */
@media only screen and (min-width: 981px) {
  .about-elsie-shell .about-elsie-window {
    height: min(560px, 70vh);
    min-height: 440px;
  }

  .about-elsie-shell .about-elsie-toolbar {
    gap: 12px;
  }

  .about-elsie-shell .about-elsie-path {
    display: none;
  }

  .about-elsie-shell .about-elsie-title {
    position: static;
    flex: 1 1 auto;
    transform: none;
    margin-left: 8px;
    text-align: center;
  }

  .about-elsie-shell .about-elsie-content {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .about-elsie-shell .about-elsie-main {
    grid-template-columns: minmax(250px, 0.8fr) minmax(360px, 1.2fr);
    grid-template-rows: minmax(0, 1fr) 88px;
  }
}

@media only screen and (max-width: 680px) {
  .guideBase {
    width: min(calc(100% - 24px), 680px) !important;
    max-width: none !important;
    margin: 18px auto 28px !important;
    padding: 18px 16px 24px !important;
    box-sizing: border-box;
  }

  .guideBase .desc {
    width: min(100%, 620px);
    margin-left: auto;
    margin-right: auto;
  }

  .guideBase ul {
    padding-left: clamp(18px, 6vw, 30px);
  }

  .about-elsie-shell .about-elsie-window {
    min-width: 0;
    min-height: 0;
  }

  .about-elsie-shell .about-elsie-terminal {
    grid-template-columns: 1fr;
  }

  .about-elsie-shell .about-elsie-toolbar {
    min-width: 0;
  }

  .about-elsie-shell .about-elsie-path {
    flex-basis: 100%;
  }
}

@media only screen and (max-width: 360px) {
  .guideBase {
    width: calc(100% - 16px) !important;
    padding: 14px 12px 20px !important;
  }

  .about-elsie-shell .about-elsie-actions {
    width: 100%;
  }

  .about-elsie-shell .about-elsie-actions button {
    min-width: 0;
  }
}
