:root {
  --default-node-width: 42rem;
  --wide-node-width: 55.2rem;
  --pop-easing: cubic-bezier(0.64, 0.57, 0.67, 1.53);
  --panel-easing: cubic-bezier(0,1,.5,1);
  --sidebar-width: 240px;
  --cm-100chars: 880px;
  --cm-80chars: 704px;
  --code-error-bg-color: #ffc3b4;
}
.katex-display {
    margin: 0;
}

.mw-read {
    max-width: var(--default-node-width);
}

.mw-wide {
    max-width: var(--wide-node-width);
}

.node-text p:last-child {
    margin-bottom: 0;
}

.ph-gutter {
  padding-left: 25px;
  padding-right: 25px;
}

.editor-active .ph-gutter {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
}
.editor-active .mh-gutter {
    margin-left: 2.5rem;
    margin-right: 2.5rem;
}

.gutter {
    position: absolute;
    flex-shrink: 0;
    width: 100%;
    left: 0;
    right: auto;
    top: 0;
    bottom: 0;
}

.heading-container .gutter {
    bottom: -2px;
}

.gutter-mw-read {
    max-width: calc(var(--default-node-width) + 5rem);
}
.gutter-mw-wide {
    max-width: calc(var(--wide-node-width) + 5rem);
}
.gutter-center {
    left: 50%;
    transform: translateX(-50%);
}

.appendix-section > .gutter {
    max-height: 1.2rem;
}
.appendix-begin {
    height: 1rem;
}

.gutter-actions,
.gutter-button {
    cursor: pointer;
    text-align: center;
    width: 28px;
    height: 22px;
    border: 0;
    background: #f2f2f2;
    border-radius: .25rem;
    transition:
    background .125s ease;
}

.gutter-button:hover {
    background: var(--teal-color);
    color: white;
}

.reference .gutter-button {
    opacity: 0;
}

.reference:hover .gutter-button {
    opacity: 1;
}

.gutter-actions {
    position: absolute;
    left: -10px;
    top: 0;
    z-index: 8;
    opacity: 0;
    transition:
    opacity .125s ease,
    background .125s ease;
}
.editor-active .gutter-actions {
  left: 4px;
}
.gutter-actions:hover,
.gutter-actions:active {
    background-color: var(--teal-color);
}
.gutter-actions:hover .icon {
    fill: white;
}
.gutter-actions.gutter-expand {
    opacity: 1;
}

.heading-container .gutter-actions {
    top: 3px;
}
.heading-container-1 .gutter-actions {
    top: 20px;
}
.heading-container-2 .gutter-actions {
    top: 8px;
}

.node:hover .gutter-actions,
.heading-container:hover .gutter-actions,
.appendix-section:hover > .gutter .gutter-actions,
.appendix-collapsed .gutter-actions,
.gutter-actions.active {
    opacity: 1;
}

.gutter-actions:focus {
  outline: none;
}

.slate-editor p:first-child,
.slate-editor ul:first-child {
    margin-top: 0;
}

.pe-off {
    pointer-events: none;
}

.no-shrink {
    flex-shrink: 0;
}
.shrink-1 {
    flex-shrink: 1;
}
.shrink-2 {
    flex-shrink: 2;
}

.editing {
    padding-top: 45px;
}

.appendix-collapsed .appendix-content {
    display: none;
}

.appendix-toggle {
    padding: 0;
    background: transparent;
    border: 0;
    width: 26px;
    height: 25px;
    cursor: pointer;
    margin-left: 7px;
}

.appendix-toggle:focus {
    outline: none;
}

.appendix-toggle .disclose {
    width: 0;
    height: 0;
    margin: 4px 0 0 10px;
}

.sel {
    box-shadow: 0 0 0 .25rem #96ccff;
}
.inline-sel {
    border-radius: 3px;
    box-shadow: 0 0 0 3px #96ccff;
}

@keyframes stripes {
    from {
        background-position: 1rem 0;
    }
    to {
        background-position: 0 0;
    }
}

.stripes-anim {
    background-image: linear-gradient(
        135deg, rgba(255, 255, 255, .5) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, .5) 50%,
        rgba(255, 255, 255, .5) 75%,
        transparent 75%,
        transparent
    );
    background-size: 1rem 1rem;
    background-color: transparent;
    animation: stripes 1s linear infinite;
}

.insert-menu {
    position: absolute;
    width: calc(var(--default-node-width) + 2.5rem);
    height: 20px;
    left: 0;
    bottom: 0;
    cursor: pointer;
    opacity: 0;
    transition: opacity .125s ease;
    z-index: 3;
}
.heading-container .insert-menu {
    bottom: 0px;
}

@media (max-width: 770px) {
    .insert-menu {
        width: auto;
        right: 2.5rem;
    }
}

.drop-indicator {
  pointer-events: none;
  position: absolute;
  width: calc(var(--default-node-width) + 2.5rem);
  height: 20px;
  left: 0;
  bottom: 0;
  z-index: 3;
}
.drop-indicator::after {
  content: "";
  position: absolute;
  left: 2.5rem;
  right: 0;
  height: 3px;
  border-radius: 1px;
  top: 9px;
  background-color: var(--teal-color);
}

.node:hover .insert-menu,
.heading-container:hover .insert-menu,
.appendix-begin:hover .insert-menu,
.appendix-collapsed .insert-menu,
.insert-menu.active {
    opacity: 1;
}

.insert-indicator {
    position: absolute;
    left: 2.5rem;
    right: 0;
    height: 3px;
    top: 50%;
    border-radius: 2px;
    background: var(--teal-color);
    margin-top: -1px;
    opacity: 0;
    transition: opacity .125s ease;
}

.dragging .insert-menu,
.dragging .insert-button,
.dragging .gutter-actions {
  display: none;
}

.insert-button {
    left: 4px;
    top: 0;
    width: 35px;
    height: 20px;
    border: 0;
    background: url(/images/insert-knob-gray.svg) center center no-repeat;
    background-size: 35px 20px;
    transition: background .125s ease;
}

.insert-button:focus {
    outline: none;
}

.insert-menu:hover .insert-button,
.insert-menu.active .insert-button {
    background: url(/images/insert-knob-teal.svg) center center no-repeat;
}
.insert-menu:hover .insert-indicator,
.insert-menu.active .insert-indicator {
    opacity: 1;
}

.gutter-mw-wide .insert-menu {
    left: 50%;
    margin-left: calc(var(--default-node-width) / 2 * -1 - 2.5rem);
}

@media (max-width: 530px) {
    .insert-menu {
        width: 36px;
    }
    .insert-menu.active {
        width: auto;
    }
    .gutter-mw-wide .insert-menu {
        left: 0;
        margin-left: 0;
    }
}

.bar {
    background: #fafafa;
    border-bottom: 1px solid #ebe9ea;
    height: 43px;
}

.pop-shadow {
    box-shadow: 0 7px 15px rgba(0,0,0,.08);
}

.execution-info:hover {
    text-decoration: underline;
}

.disclose {
    content: "";
    border-style: solid;
    border-color: rgba(0,0,0,.4) transparent;
    border-width: 7px 4px 0;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}
.disclose:hover {
    border-color: rgba(0,0,0,.7) transparent;
}
.disclose.closed {
    transform: rotate(-90deg);
}

.hover-fade-bright,
.hover-fade-dark,
.hover-fade-gray {
    opacity: 1;
    transition: opacity 0.2s ease;
}
.hover-fade-bright:hover:not(:disabled),
.hover-fade-dark:hover:not(:disabled),
.hover-fade-gray:hover:not(:disabled) {
    opacity: 0.7;
}
.hover-fade-gray {
    opacity: 0.2;
}
.hover-fade-gray:hover:not(:disabled) {
    opacity: 0.5;
}

.pop {
    opacity: 0;
    transition: opacity 0.1s var(--pop-easing),
    transform 0.1s var(--pop-easing);
    transform: scale(0.7) translateY(-15%);
}
.pop.arrow-left {
    transform: scale(0.7) translateX(-15%);
    padding-left: 9px;
}
.pop.arrow-right {
    transform: scale(0.7) translateX(15%);
    padding-right: 9px;
}
.pop.arrow-top {
    transform: scale(0.7) translateY(-15%);
    padding-top: 9px;
}
.pop.arrow-bottom {
    transform: scale(0.7) translateY(15%);
    padding-bottom: 9px;
}

.pop-content {
    box-shadow: 0 8px 28px rgba(0,0,0,.3);
    border: 1px solid rgba(0,0,0,.2);
}
.visible .pop {
    opacity: 1;
    transform: scale(1) translateX(0) translateY(0);
}
.pop-arrow {
    position: absolute;
    border-style: solid;
    width: 0;
    height: 0;
}
.pop-arrow-left {
    left: 0;
    top: 50%;
    border-width: 10px 10px 10px 0;
    border-color: transparent #fff transparent transparent;
    margin-top: -10px;
    filter: drop-shadow(-8px 0 8px rgba(0,0,0,.3));
}
.pop-arrow-right {
    right: 0;
    top: 50%;
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent #fff;
    margin-top: -10px;
    filter: drop-shadow(8px 0 8px rgba(0,0,0,.3));
}
.pop-arrow-top {
    left: 50%;
    top: 0;
    border-width: 0 10px 10px 10px;
    border-color: transparent transparent #fff transparent;
    margin-left: -10px;
    filter: drop-shadow(0 -1px 1px rgba(0,0,0,.3));
}
.pop-arrow-bottom {
    left: 50%;
    bottom: 0;
    border-width: 10px 10px 0 10px;
    border-color: #fff transparent transparent transparent;
    margin-left: -10px;
    filter: drop-shadow(0 1px 1px rgba(0,0,0,.3));
}

.info-tip {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: 0;
    left: 50%;
    transition: 0.2s opacity ease, 0.2s transform ease;
    z-index: 9;
}
.info-tip-top {
    padding-bottom: 8px;
    transform: translateX(-50%) translateY(-90%) scale(0.95);
}
.info:hover .info-tip {
    visibility: visible;
    opacity: 1;
}
.info:hover .info-tip-top {
    transform: translateX(-50%) translateY(-100%) scale(1);
}
.info-content {
    background: rgb(218, 246, 255);
    border: 1px solid rgb(192, 217, 225);
    border-radius: 5px;
    padding: .5rem 1rem;
    box-shadow: 0 0 5px rgba(0,0,0,.2);
    font-size: 15px;
}
.info-arrow {
    position: absolute;
    border-style: solid;
    z-index: 1;
}
.info-arrow-top {
    left: 50%;
    bottom: 1px;
    border-width: 10px 10px 0 10px;
    border-color: rgb(218, 246, 255) transparent transparent transparent;
    filter: drop-shadow(0 1px 1px rgb(192, 217, 225));
    margin-left: -10px;
}
.info-icon {
    opacity: 0.4;
    transition: 0.125s opacity ease;
}
.info-icon:hover {
    opacity: 0.7;
}
.docs:hover {
    text-decoration: underline;
}

.intercom-bubble {
    width: 38px;
    height: 38px;
    border-radius: 20px;
    box-shadow: 0 0 1px rgba(0,0,0,.1), 0 0 16px rgba(0,0,0,.2);
    background: white;
    position: fixed;
    right: 7px;
    bottom: 7px;
    cursor: pointer;
    z-index: 880;
    border: 0;
    transition: all .125s ease;
}
.intercom-bubble:focus {
    outline: none;
}
.intercom-bubble:hover {
    transform: scale(1.1);
    box-shadow: 0 0 1px rgba(0,0,0,.15), 0 0 16px rgba(0,0,0,.25);
}
.intercom-bubble:active {
    transform: scale(0.95);
}
.intercom-bubble svg {
    width: 28px;
    height: 24px;
    position: absolute;
    top: 6px;
    left: 5px;
}

/* Notifications */

.notifications {
    position: fixed;
    top: 0;
    right: 0;
    max-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    z-index: 8;
}
.notification {
    width: 310px;
    max-height: 500px;
    margin: 10px 10px 0 10px;
}
.notification:last-of-type {
    margin-bottom: 10px;
}
.notification-content {
    border-radius: 3px;
    border: 1px solid #ebe9ea;
    padding: 10px 50px 10px 10px;
    position: relative;
    font-family: var(--sans-serif-font);
    font-size: 16px;
    background-color: white;
    background-repeat: no-repeat;
    background-position: 7px 7px;
    background-size: 35px 35px;
    box-shadow: 0 2px 5px 1px rgba(0, 0, 0, 0.1);
    margin: 0 5px 5px 0;
}
.notification.error .notification-content,
.notification.warn .notification-content {
    color: var(--dark-red-color);
}
.notification.info .notification-content {
    color: var(--teal-color);
}
.notification-description {
    margin-top: 3px;
    font-size: 85%;
}
.notification-dismiss {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 44px;
    border-left: 1px solid #ebe9ea;
    cursor: pointer;
    border-top-right-radius: 3px;
    border-bottom-right-radius: 3px;
    overflow: hidden;
}
.notification-dismiss:hover {
    background-color: rgba(0,0,0,.5);
}
.notification-enter {
    transform: translateX(100%);
    max-height: 0;
    opacity: 0;
    transition: max-height 0.3s ease-in-out 0s, transform 0.3s ease-in-out 0.3s, opacity 0.3s ease-in-out 0.3s;
}
.notification-enter-active {
    max-height: 500px;
    opacity: 1;
    transform: translateX(0);
}
.notification-leave {
    max-height: 500px;
    opacity: 1;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out 0s, opacity 0.3s ease-in-out 0s, max-height 0.3s ease-in-out 0.3s;
}
.notification-leave-active {
    max-height: 0;
    opacity: 0;
    transform: translateX(100%);
}

/* Outline */

.outline-wrapper {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.outline-node {
    position: relative;
    cursor: ns-resize;
    padding: 0.225rem 0;
}
.outline-leaf,
.outline-section,
.outline-nesting {
    transition: background-color 0.2s ease;
}
.outline-nesting {
    position: absolute;
    top: -5px;
    bottom: 2px;
    width: 1px;
    background: #d8e1e2;
    margin-left: 4px;
}
.outline-leaf {
    position: absolute;
    top: 50%;
    margin-top: -3px;
    width: 6px;
    height: 6px;
    border-radius: 3px;
    background: #d8e1e2;
    margin-left: 2px;
}
.outline-node:hover .outline-leaf {
    background: #095960;
}
.section-item:hover .outline-leaf,
.section-item:hover .outline-section,
.section-item:hover .outline-nesting,
.drag-helper .outline-leaf,
.drag-helper .outline-section,
.drag-helper .outline-nesting {
    background: #095960;
}
.drag-helper {
    background: rgba(255,255,255,.8);
}
.outline-section {
    position: absolute;
    top: 9px;
    width: 9px;
    height: 9px;
    border-radius: 4.5px;
    background: #d8e1e2;
    margin-left: 0;
}
.section-item.section-item-root:hover .outline-leaf,
.section-item.section-item-root:hover .outline-section,
.section-item.section-item-root:hover .outline-nesting {
    background: #d8e1e2;
}
.section-item .outline-node {
    cursor: move;
}
.section-item .outline-node-root {
    cursor: default;
}
.outline-item-image-preview {
    margin: 0.3rem 0.5rem 0.3rem 0;
    width: 100px;
    height: 50px;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px rgba(0,0,0,.15);
    border-radius: 5px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
}
.outline-item-image-caption p {
    display: inline-block;
    margin: 0;
}
.outline-item .katex-display {
    font-size: 0.6rem;
}
.outline-item-text {
    overflow: auto;
    white-space: normal;
    text-overflow: none;
}
.outline-item-text div[data-slate-editor] {
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}
.outline-item-text div[data-slate-editor] p {
    display: none;
}
.outline-item-text div[data-slate-editor] p:first-child {
    white-space: nowrap;
    margin-bottom: 0;
    display: inline;
}
.outline-item-text div[data-slate-editor] p:first-child a,
.outline-item-text div[data-slate-editor] p:first-child .ref {
    cursor: inherit;
}
.outline-item-text div[data-slate-editor] ul {
    margin: 0;
    padding-left: 0;
    padding-right: 0;
    display: inline;
    white-space: nowrap;
}
.outline-item-text div[data-slate-editor] ul li {
    position: relative;
    font-size: 14px;
    display: inline-flex;
    padding-left: 1rem;
}
.outline-item-text div[data-slate-editor] ul li::before {
    position: absolute;
    left: 7px;
    top: 0;
    content: "•";
}

/* Hovering Menu */

.hovering-menu {
    background: var(--near-black-color);
    border-radius: 3px;
    position: absolute;
    font-family: sans-serif;
    padding: 5px;
    z-index: 3;
}
.hovering-menu::before {
    content: "";
    position: absolute;
    left: 50%;
    margin-left: -9px;
    border-style: solid;
    border-color: var(--near-black-color) transparent;
    display: block;
    width: 0;
    z-index: 0;
}
.hovering-menu-top {
    margin-top: -8px;
}
.hovering-menu-top::before {
    bottom: -8px;
    border-width: 9px 9px 0;
}
.hovering-menu-bottom::before {
    top: -8px;
    border-width: 0 9px 9px;
}
.hovering-menu-buttons {
    overflow: hidden;
    height: 24px;
    display: flex;
}
.hovering-menu-buttons + .hovering-menu-buttons {
    border-left: 1px solid #585857;
    padding-left: 5px;
    margin-left: 5px;
}
.hovering-menu-button {
    width: 24px;
    height: 24px;
    overflow: hidden;
    margin-right: 1px;
    opacity: 0.85;
}
.hovering-menu-button:hover {
    opacity: 1;
    cursor: pointer;
}
.hovering-menu-button-image-normal,
.hovering-menu-button-image-polaroid,
.hovering-menu-button-image-wide {
    width: auto;
    text-indent: 0;
    padding-left: 7px;
    padding-right: 7px;
}
.hovering-menu-button-image-normal,
.hovering-menu-button-image-polaroid {
    border-right: 1px solid rgba(255,255,255,.2);
    margin-right: 5px;
    padding-right: 11px;
}
.hovering-menu.link-editor {
    padding: 0;
}
.hovering-menu-button-label {
    white-space: nowrap;
    color: #fff;
    font-size: 14px;
    text-align: center;
    display: inline-block;
    line-height: 24px;
}
.active .hovering-menu-button-label {
    color: var(--teal-color);
}
.hovering-menu-link-editor {
    display: flex;
    width: 240px;
}
.hovering-menu-link-editor .hovering-menu-link-input {
    background: transparent;
    height: 24px;
    line-height: 24px;
    font-size: 16px;
    color: #fff;
    appearance: none;
    border: none;
    margin: 5px;
}
.hovering-menu-link-editor .hovering-menu-link-input:focus {
    outline: none;
}
.hovering-menu-link-editor .hovering-menu-link-btn {
    background: transparent;
    width: 26px;
    height: 34px;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: 20px 20px;
    opacity: 0.85;
    cursor: pointer;
    border-left: 1px solid rgba(255,255,255,.2);
}
.hovering-menu-link-editor .hovering-menu-link-btn:hover {
    opacity: 1;
}
.link-editor {
    z-index: 4;
}
.modal {
    z-index: 4;
}

/* Markers */

.ref-marker {
  line-height: 1.3;
}

.ref-marker-content {
  position: relative;
  border-bottom: 2px solid rgba(201, 239, 244, 1.000);
  margin-right: 3px;
}
.ref-marker-data {
  padding: 0 2px;
}
.ref-marker-content:hover {
  cursor: pointer;
  background-color: rgba(201, 239, 244, 0.2);
}

.ref-marker-selected .ref-marker-content {
  background-color: rgba(201, 239, 244, 0.3);
  border-color: rgba(0, 156, 171, 1.000);
}

.ref-marker-follow,
.ref-marker-source {
  position: relative;
  display: block;
  background: rgba(228, 248, 250, 1.000);
  border-radius: 2px;
  padding: 0 4px;
  font-size: 9px;
  font-family: var(--sans-serif-font);
  height: 12px;
  line-height: 12px;
  white-space: nowrap;
}

.ref-marker-follow.selected {
  background: white !important;
  color: black !important;
}

.ref-marker-follow:hover {
  cursor: pointer;
  background-color: var(--teal-color);
  color: white;
}

.ref-marker-follow.selected:hover {
  background: rgba(255,255,255,.7) !important;
  color: black !important;
}

.ref-marker-arrow {
  position: relative;
  top: 1px;
}
.ref-marker-name {
  margin-right: 3px;
}
.ref-marker-file {
  background: url(/images/file-ref.svg) left center no-repeat;
}
.ref-marker-image {
  background: url(/images/image-ref.svg) left center no-repeat;
}
.ref-marker-plot {
  background: url(/images/plot-ref.svg) left center no-repeat;
}
.ref-marker-missing {
  background: url(/images/missing-ref.svg) left center no-repeat;
}
.ref-marker-file,
.ref-marker-image,
.ref-marker-plot {
  background-size: 10px 10px;
  padding-left: 9px;
}
.ref-marker-content.ref-marker-missing {
  border-color: var(--dark-red-color);
  color: var(--dark-red-color);
  padding-left: 12px;
  background-size: 12px 12px;
}
.ref-marker-missing:hover {
  background-color: transparent;
  cursor: default;
}
.ref-marker-selected .ref-marker-missing {
  border-color: var(--teal-color);
}
.slate-editor .ref-marker-data {
  font-size: 16px;
  padding-bottom: 1px;
}
.visible .pop.ref-marker-popover {
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%) translateY(0) scale(1);
  z-index: 881;
}
.sidebar-runtime .ref-marker-source {
  margin-left: 0 !important;
}
.number-marker {
  border-bottom: 2px solid rgba(0,0,0,.1);
  transition: border-color 0.2s ease;
}
.number-marker.scrubbing-number:hover {
  border-color: rgba(0,0,0,.2);
  cursor: ew-resize;
}
.inline-marker-selected .number-marker {
  border-color: var(--teal-color);
  background: var(--teal-transparent-color);
}
.inline-marker .formula {
  padding: 3px;
  border-radius: 5px;
  border: 2px solid transparent;
}
.inline-marker-selected .formula {
  border-color: rgba(0, 156, 170, 0.6);
}

/* Code */

.CodeMirror {
    padding: 5px 0;
    margin: 0;
    height: auto;
    background: none;
    font-family: var(--code-font);
    font-size: 14px;
    line-height: 1.5;
}
.CodeMirror-lines {
    padding: 0;
}
.CodeMirror pre {
    padding: 0 7px;
}
.CodeMirror-selected {
    background-color: Highlight !important;
}
.CodeMirror-matchingbracket {
    color: inherit !important;
    border-bottom: 2px solid var(--teal-color);
}
.CodeMirror-matchingtag {
    background: inherit !important;
    border-bottom: 2px solid var(--teal-color);
}
.CodeMirror pre.CodeMirror-placeholder {
    color: rgba(0,0,0,.3);
}
.wrap-pre pre {
    white-space: pre-wrap;
    word-wrap: break-word;
}
.mw-100-chars {
    max-width: var(--cm-100chars);
}
.stdout-toggle {
    transition: all 0.125s ease;
}
.stdout-toggle:hover {
    background: rgba(0,0,0,.15);
    border-color: rgba(0,0,0,.15);
}
.line-error-popup {
    background: var(--code-error-bg-color);
    padding: 5px 30px 5px 7px;
    z-index: 4;
    line-height: 1.4;
}
.line-error-popup .line-error-message {
    word-wrap: break-word;
    max-height: 247px;
    overflow-y: auto;
}
.line-error-close {
    width: 20px;
    height: 20px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: rgba(0,0,0,.1);
}
.line-error-close:hover {
    background-color: rgba(0,0,0,.2);
}
.line-error-teaser {
    width: 30px;
    height: 18px;
    line-height: 18px;
    z-index: 2;
}
.line-error-bg {
  background-color: #ffe8e2;
}
.code-iframe-result {
    border: none;
    width: 100%;
    height: 0;
    margin-top: 1rem;
}
.collapsed .code-iframe-result {
    margin-top: 0;
}
.code-iframe-content {
    display: none;
}
.code-plotly-result {
    overflow-x: auto;
}
.result-placeholder {
    position: relative;
    min-height: 17px;
}
.result-placeholder.plotly {
    background-color: #ffffff;
    background-size: 20px 20px, 20px 20px;
    background-position: -2px -2px, -2px -2px, -1px -1px, -1px -1px;
    border: 1px solid #eee;
    background-image: linear-gradient(#eee 1px, transparent 1px),
    linear-gradient(90deg, #eee 1px, transparent 1px);
    height: 450px;
}
.plotly .modebar {
    display: none;
}
.grayscale-filter {
    -webkit-filter: grayscale(100%);
    -moz-filter: grayscale(100%);
    -ms-filter: grayscale(100%);
    -o-filter: grayscale(100%);
    filter: grayscale(100%);
}
.exec-state-indicator:hover {
    position: relative;
}
.exec-state-indicator:hover .tip,
.exec-duration:hover .tip {
    display: block;
    top: 26px;
    left: -2px;
}
.dots-loading,
.dots-loading:before,
.dots-loading:after {
    border-radius: 50%;
    width: 0.8em;
    height: 0.8em;
    animation-fill-mode: both;
    animation: dots-loading 1.8s infinite ease-in-out;
}
.dots-loading {
    font-size: 10px;
    position: relative;
    text-indent: -9999em;
    transform: translateZ(0);
    animation-delay: -0.16s;
    margin-top: -1.8em;
}
.dots-loading:before,
.dots-loading:after {
    content: "";
    position: absolute;
    top: 0;
}
.dots-loading:before {
    left: -1.2em;
    animation-delay: -0.32s;
}
.dots-loading:after {
    left: 1.2em;
}
@keyframes dots-loading {
    0%,
    80%,
    100% {
        box-shadow: 0 1em 0 -1.3em;
    }
    40% {
        box-shadow: 0 1em 0 0;
    }
}

.autocompleter-choice:last-of-type {
    border-bottom-left-radius: .25rem;
    border-bottom-right-radius: .25rem;
}
.autocompleter-choice em {
    font-style: normal;
    font-weight: bold;
}

.slate-preview div {
    display: inline;
}

.runtime {
    display: flex;
    flex-direction: column;
    line-height: 1.4;
}
.runtime-badge:first-of-type {
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
}
.runtime-badge:last-of-type {
    border-bottom-left-radius: 3px;
    border-bottom-right-radius: 3px;
}
@media (min-width: 680px) {
    .runtime {
        flex-direction: row;
        line-height: 1.2;
    }
    .runtime-badge:first-of-type {
        border-top-left-radius: 3px;
        border-bottom-left-radius: 3px;
        border-top-right-radius: 0;
    }
    .runtime-badge:last-of-type {
        border-top-right-radius: 3px;
        border-bottom-right-radius: 3px;
    }
    .runtime-badge + .runtime-badge {
        border-bottom-left-radius: 0;
    }
}
.runtime-badge-sm {
    padding: 0 5px;
    height: 16px;
    line-height: 17px;
    font-size: 11px;
    color: white;
    border: 0;
    background: var(--teal-color);
    border-radius: 0.15rem;
    margin-top: 1px;
}
.runtime-badge-sm:focus {
    outline: none;
}
.runtime-badge-editable:hover {
    background: #00c2d3;
}

.import-marker-container {
    width: 100%;
    display: inline-block;
    padding: 0;
}
.import-marker {
    background: rgba(0,0,0,.03);
    border-bottom: 1px solid rgba(0,0,0,.09);
    border-top: 1px solid rgba(0,0,0,.06);
    padding: 3px 7px 0 7px;
    margin: 5px -7px;
    min-height: 31px;
}
.import-marker .CodeMirror-cursors {
  display: none !important;
}
.import-marker .import-marker {
  background: none;
  border: none;
  min-height: auto;
  margin: 0 -7px;
}
.import-marker .import-marker .nj-button--goto {
  display: none;
}
.import-marker.expanded {
    border-bottom: 1px solid rgba(0,0,0,.06);
    padding-bottom: 3px;
}
.import-marker .CodeMirror {
    padding: 0;
}
.import-marker .CodeMirror-line {
    padding-left: 0;
}
.cm-preview .CodeMirror-line {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.import-preview {
    height: 33px;
    overflow: hidden;
}
.import-preview-gradient {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    bottom: 0;
    background: linear-gradient(rgba(243, 243, 245, 0.1), rgba(243, 243, 245, 0.8));
    z-index: 5;
}

.dot {
    display: inline-block;
    position: relative;
}
.dot1,
.dot2 {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border-radius: 6px;
    position: absolute;
    left: 0;
    top: 0;
}
@keyframes dot {
    0%, 100% { transform: scale(0); opacity: 1;}
    50% { transform: scale(1); opacity: 0.6; }
}
@keyframes dot-downloading {
    0% { transform: scale(0) translateY(-120%); opacity: 0; }
    50% { transform: scale(0.8) translateY(0%); opacity: 1; }
    100% { transform: scale(0.3) translateY(120%); opacity: 0; }
}
@keyframes dot-uploading {
    0% { transform: scale(0) translateY(120%); opacity: 0; }
    50% { transform: scale(0.8) translateY(0%); opacity: 1; }
    100% { transform: scale(0.3) translateY(-120%); opacity: 0; }
}
.dot.downloading .dot1,
.dot.downloading .dot2 {
    animation: dot-downloading 2s infinite linear;
}
.dot.downloading .dot2 {
    animation-delay: -1s;
}
.dot.uploading .dot1,
.dot.uploading .dot2 {
    animation: dot-uploading 2s infinite linear;
}
.dot.uploading .dot2 {
    animation-delay: -1s;
}
.dot.animating .dot1,
.dot.animating .dot2 {
    opacity: 0.6;
    animation: dot 2s infinite ease-in-out;
}
.dot.animating .dot2 {
    animation-delay: -1s;
}
.bg-off {
    background-color: #a3a3a3;
}
.bg-on {
    background-color: #73c080;
}
.bg-error {
    background: #ff4940;
}
.bg-enqueued {
    background-color: #ffcd40;
}
.dot-dark-bg {
    width: 10px;
    height: 10px;
    border-radius: 8px;
    box-shadow: 0 0 0 2px rgba(255,255,255,.9);
    display: flex;
    align-items: center;
    background: white;
}
.reference .result-view {
  margin-top: 3px !important;
}
.outline-node .result-view {
  margin-top: 0px !important;
}
.result-view {
  padding: 5px 0;
}
.result-view .gutter-actions {
  opacity: 0;
  left: -38px;
}
.result-view:hover .gutter-actions {
  opacity: 1;
}
.copy::after {
  position: absolute;
  content: "";
  left: 0;
  top: 0;
  right: 0;
  border: 2px solid rgba(0,0,0,.05);
  border-radius: 5px;
  opacity: 0;
}
.copy:hover::after {
  bottom: 0;
  opacity: 1;
}

#topbar,
#topbar-edit {
  height: 58px;
  z-index: 881;
}
.loading-overlay {
  top: 58px;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
}
@media screen and (max-width: 860px) {
  #topbar-edit {
    height: 74px;
  }
  #topbar-loading {
    position: absolute;
    top: 60px;
    left: 7px;
  }
  .home-link {
    margin-right: 0 !important;
  }
  #topbar-edit .logo-desktop {
    position: absolute;
    top: 10px;
    left: 10px;
  }
  #topbar-edit .logo-mobile {
    position: absolute;
    top: 10px;
    left: 10px;
  }
  #status {
    position: absolute;
    top: 40px;
    left: 10px;
    right: 5px;
    display: block;
  }
  #tools {
    position: absolute;
    right: 90px;
    top: 7px;
  }
  #avatar-dropdown {
    position: absolute;
    right: 10px;
    top: 5px;
  }
  #loading-overlay {
    top: 74px;
  }
}
.article-info {
  margin-top: 2rem;
}
@media (max-width: 860px) {
  .article-info {
    margin-top: 4rem;
  }
}
.sidebar-collapsed {
  height: 37px;
  bottom: auto;
}
#sidebar-container {
  position: fixed;
  top: 0;
  bottom: 20px;
  z-index: 880;
}
#sidebar-container.collabs {
  bottom: 45px !important;
}
@media (max-width: 860px) {
  .sidebar-collapsed #sidebar-container {
    bottom: auto;
  }
  #sidebar-container {
    bottom: 0;
  }
}
.sidebar {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 260px;
}
@media (max-width: 860px) {
  #sidebar-container {
    width: 100%;
  }
  .sidebar {
    width: auto;
    bottom: 0;
    margin-top: 15px;
  }
  .sidebar-collapsed .sidebar {
    left: 0;
    bottom: auto;
  }
  .sidebar-collapsed .sidebar-toggle {
    justify-content: flex-end;
    margin-top: 15px;
  }
}
.sidebar-content {
  max-height: 2000px;
  height: auto;
  transition: max-height 0.4s var(--snap-easing);
}
.sidebar-collapsed .sidebar-content {
  max-height: 0;
}
.sidebar-content-wrapper {
  opacity: 1;
  transition: opacity 1s var(--snap-easing);
}
.sidebar.sidebar-collapsed .sidebar-content-wrapper {
  opacity: 0;
}
.sidebar-visible .article-info {
  padding-right: var(--sidebar-width);
}

#sidebar-container {
  right: 50%;
  margin-right: calc(-1000px/2);
}
.layout-centered #sidebar-container {
  margin-right: calc(-1190px/2);
}
.sidebar-content {
  border-left: 1px solid rgba(0,0,0,.05);
  overflow-y: auto;
  padding-right: 20px;
  -webkit-backdrop-filter: blur(10px);
  background: rgba(255,255,255,.8);
}
.sidebar-content-wrapper {
  padding-left: 10px;
}
@media (max-width: 1001px) {
  #sidebar-container {
    right: 0;
    margin-right: 0;
  }
  .sidebar-content {
    padding-left: 7px;
    padding-right: 18px;
    border: 1px solid rgba(0,0,0,.1);
    border-bottom: none;
    box-shadow: 0 1px 3px rgba(0,0,0,.05);
  }
  .sidebar-toggle {
    border-right: 1px solid rgba(0,0,0,.1);
    border-bottom: 1px solid rgba(0,0,0,.1);
    border-left: 1px solid rgba(0,0,0,.1);
    box-shadow: 0 1px 3px rgba(0,0,0,.05);
  }
  .sidebar-collapsed .sidebar-content {
    box-shadow: none;
    border: none;
  }
}
@media (max-width: 1200px) {
  .layout-centered #sidebar-container {
    right: 0;
    margin-right: 0;
  }
  .layout-centered .sidebar-content {
    padding-left: 7px;
    padding-right: 7px;
    border: 1px solid rgba(0,0,0,.1);
    box-shadow: 0 1px 3px rgba(0,0,0,.05);
  }
}
.sidebar-toggle {
  width: 100%;
  height: 40px;
  -webkit-backdrop-filter: blur(10px);
  background: rgba(255,255,255,.8);
  border-left: 1px solid rgba(0,0,0,.05);
}
.sidebar-toggle-button {
  height: 20px;
  width: 24px;
}
.sidebar-toggle-button:hover {
  border-color: rgba(0,0,0,.15);
}
.sidebar-collapsed .sidebar-toggle {
  border: none;
  height: 37px;
}
@media (max-width: 860px) {
  .sidebar-content {
    background: rgba(255,255,255,.9);
  }
  .sidebar-collapsed .sidebar-toggle {
    background: transparent;
    border: 0;
    box-shadow: none;
  }
}

.history-open {
  padding-left: 240px;
}
.history-open #sidebar-container {
  margin-right: calc(-960px / 2 - 120px);
}
.code-name-input {
  border: 1px solid rgba(0,0,0,.05);
  border-radius: 3px;
  background: transparent;
  padding: 3px 5px !important;
  margin-right: 5px;
  font-family: var(--monospace-font);
}
.code-name-input:hover {
  border-color: rgba(0,0,0,.1);
}
.code-name-input:focus {
  border-color: rgba(0,0,0,.1);
  outline: none;
}
.code-name-input::placeholder {
  color: rgba(0,0,0,.3);
}
.parinfer-paren-trail {
  color: #dbdbcf;
}
.parinfer-error {
  background: #ffbebd;
}
