.tutorial-viewer {
    display: flex;
    align-items: stretch;
    gap: 8px;
    padding: 12px 0 24px;
}

.tutorial-sidebar {
    flex: 0 0 260px;
    max-width: 260px;
    padding: 4px 24px 16px 4px;
    border-right: 1px solid #e6e9ed;
    max-height: 75vh;
    overflow-y: auto;
}

.tutorial-content {
    flex: 1 1 auto;
    min-width: 0;
    padding: 4px 4px 16px 24px;
}

.tutorial-tree,
.tutorial-tree ul {
    list-style: none;
    margin: 0;
    padding-left: 18px;
}

.tutorial-sidebar > .tutorial-tree {
    padding-left: 0;
}

.tutorial-tree li {
    margin: 2px 0;
}

.tutorial-folder-label {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    font-weight: 600;
    color: #4d4d4d;
}

.tutorial-folder-label .fa {
    color: #c8a96a;
}

.tutorial-file-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    border-radius: 4px;
    text-decoration: none;
    color: #5a5a5a;
    transition: background-color .15s ease, color .15s ease;
}

.tutorial-file-link:hover {
    background-color: #f3f6f9;
    color: #1f8de2;
}

.tutorial-file-link.active {
    background-color: #eaf4fd;
    color: #1f8de2;
    font-weight: 600;
}

.tutorial-file-link .fa {
    flex: 0 0 auto;
    opacity: .7;
}

.tutorial-content-title {
    font-size: 1.4rem;
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e6e9ed;
}

.tutorial-content-body {
    line-height: 1.6;
}

.tutorial-content-body h1,
.tutorial-content-body h2,
.tutorial-content-body h3,
.tutorial-content-body h4 {
    font-weight: 600 !important;
    letter-spacing: 0 !important;
    padding-left: 0 !important;
    margin: 1.6em 0 .6em !important;
    color: #6b6b6b !important;
}

.tutorial-content-body h1 {
    font-size: 1.2rem !important;
    padding-bottom: .4em !important;
    border-bottom: 2px solid #e6e9ed !important;
}

.tutorial-content-body h2 {
    font-size: 1.1rem !important;
    padding-bottom: .3em !important;
    border-bottom: 1px solid #e6e9ed !important;
}

.tutorial-content-body h3 {
    font-size: 1rem !important;
}

.tutorial-content-body h4 {
    font-size: .95rem !important;
}

.tutorial-content-body h1:first-child,
.tutorial-content-body h2:first-child,
.tutorial-content-body h3:first-child,
.tutorial-content-body h4:first-child {
    margin-top: 0;
}

.tutorial-content-body img {
    max-width: 100%;
}

.tutorial-content-body pre,
.tutorial-content-body code {
    background-color: #f6f8fa;
    border-radius: 4px;
}

.tutorial-content-body pre {
    padding: 12px;
    overflow-x: auto;
}

.tutorial-content-body code {
    padding: 2px 5px;
}

.tutorial-empty,
.tutorial-placeholder {
    color: #999;
    padding: 8px;
}
