.doc-view {
    border: 1px solid #333;
    border-radius: 12px;
    padding: 16px;
    min-height: 70vh;
    background: #181818;
    white-space: pre-wrap;
    line-height: 1.6;
    overflow-y: auto;
}

.skill-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 16px;
    min-height: 70vh;
}

.skill-sidebar {
    border: 1px solid #333;
    border-radius: 12px;
    background: #181818;
    overflow: hidden;
}

.skill-layout img {
    max-width: 100%;
    height: auto;
    opacity: 0.8;
}

.skill-layout img:hover {
    position: fixed;
    left: 0%;
    transform: translate(0%, -50%);
    z-index: 10;
    height: auto;
    opacity: 1.0;
}

.skill-sidebar-header {
    padding: 14px 16px;
    border-bottom: 1px solid #333;
    font-weight: 600;
}

.skill-files {
    display: flex;
    flex-direction: column;
    padding: 8px;
    gap: 8px;
}

.skill-sidebar-actions {
    position: relative;
    padding: 0 8px 8px;
}

.skill-add {
    width: 100%;
    min-height: 42px;
    border: 1px dashed #4b4b4b;
    background: #202020;
    color: #eee;
    font-size: 24px;
    line-height: 1;
}

.skill-add-menu {
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 58px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px;
    border: 1px solid #333;
    border-radius: 12px;
    background: #151515;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.skill-add-menu[hidden] {
    display: none;
}

.skill-add-action {
    width: 100%;
    text-align: left;
    padding: 12px 14px;
    background: #202020;
    color: #eee;
}

.skill-file {
    width: 100%;
    text-align: left;
    padding: 12px 14px;
    border: 1px solid #333;
    background: #202020;
    color: #eee;
}

.skill-file.active {
    background: #2f6fed;
}

.skill-empty {
    padding: 12px 14px;
    color: #999;
}

.skill-editor-wrap {
    display: flex;
    flex-direction: column;
    border: 1px solid #333;
    border-radius: 12px;
    background: #181818;
    overflow: hidden;
}

.skill-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid #333;
}

.skill-toolbar-actions {
    display: flex;
    gap: 8px;
}

.skill-current-file {
    font-weight: 600;
}

.skill-status {
    min-height: 24px;
    padding: 10px 16px 0;
    color: #9fd3a8;
    background: #285d28;
}

.skill-status.error {
    color: #f5c4c4;
    background: darkred;
}

.skill-editor {
    flex: 1;
    min-height: 60vh;
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 16px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}


@media (max-width: 800px) {
    .skill-layout {
        grid-template-columns: 1fr;
    }
}