body {
    margin: 0;
    overflow-x: hidden;
}

.iotdoor-admin-shell {
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
}

.iotdoor-admin-sidebar {
    position: static;
    width: 100%;
}

.iotdoor-admin-main {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

@media (min-width: 1280px) {
    .iotdoor-admin-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 290px;
        height: 100vh;
        overflow-y: auto;
    }

    .iotdoor-admin-main {
        margin-left: 290px;
        width: calc(100% - 290px);
    }
}

.iotdoor-editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.iotdoor-editor-toolbar button {
    border: 1px solid #d0d5dd;
    background: #ffffff;
    color: #344054;
    border-radius: 0.75rem;
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1;
    transition: all 0.2s ease;
}

.iotdoor-editor-toolbar button:hover,
.iotdoor-editor-toolbar button.is-active {
    border-color: #9cb9ff;
    background: #ecf3ff;
    color: #3641f5;
}

.iotdoor-editor-surface {
    border: 1px solid #d0d5dd;
    border-radius: 1rem;
    background: #ffffff;
    overflow: hidden;
}

.iotdoor-editor-surface .ProseMirror {
    min-height: 520px;
    padding: 1.5rem;
    outline: none;
    color: #1d2939;
    line-height: 1.8;
}

.iotdoor-editor-surface .ProseMirror p {
    margin: 0 0 1rem;
}

.iotdoor-editor-surface .ProseMirror h1,
.iotdoor-editor-surface .ProseMirror h2,
.iotdoor-editor-surface .ProseMirror h3 {
    color: #101828;
    font-weight: 700;
    margin: 1.5rem 0 1rem;
}

.iotdoor-editor-surface .ProseMirror h1 {
    font-size: 2rem;
}

.iotdoor-editor-surface .ProseMirror h2 {
    font-size: 1.5rem;
}

.iotdoor-editor-surface .ProseMirror h3 {
    font-size: 1.25rem;
}

.iotdoor-editor-surface .ProseMirror blockquote {
    margin: 1rem 0;
    padding: 0.75rem 1rem;
    border-left: 4px solid #9cb9ff;
    background: #f9fafb;
    color: #475467;
}

.iotdoor-editor-surface .ProseMirror ul,
.iotdoor-editor-surface .ProseMirror ol {
    padding-left: 1.5rem;
}

.iotdoor-editor-surface .ProseMirror img {
    max-width: 100%;
    height: auto;
    border-radius: 1rem;
}

.iotdoor-editor-image-node {
    position: relative;
    margin: 1.25rem 0;
}

.iotdoor-editor-image-node.is-representative::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 1rem;
    background: linear-gradient(180deg, rgba(70, 95, 255, 0.18), rgba(22, 25, 80, 0.3));
    pointer-events: none;
}

.iotdoor-editor-image-node.is-representative::after {
    content: "대표 이미지";
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 0.875rem;
    border-radius: 999px;
    background: rgba(16, 24, 40, 0.85);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.iotdoor-editor-image-node.ProseMirror-selectednode img {
    box-shadow: 0 0 0 4px rgba(70, 95, 255, 0.18);
}
