.document-viewer-page {
    min-height: 100vh;
    background: #f5f7fa;
    color: #141824;
    font-family: "PublpageNotoSansKR", "Noto Sans KR", "Segoe UI", system-ui, sans-serif;
    padding: 34px 18px;
}

.document-viewer-message {
    width: min(920px, 100%);
    margin: 0 auto;
    border: 1px solid #e3e6ed;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.04);
}

.document-viewer {
    margin: 0 auto;
    border: 1px solid #e3e6ed;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.04);
}

.document-viewer.width-70 {
    width: min(70vw, 1120px);
}

.document-viewer.width-100 {
    width: min(100%, calc(100vw - 36px));
}

.document-viewer-header {
    position: relative;
    border-bottom: 1px solid #e3e6ed;
    padding: 24px 72px 24px 28px;
}

.document-viewer-title-block {
    min-width: 0;
}

.document-viewer-logo-link {
    position: absolute;
    top: 22px;
    right: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    text-decoration: none;
}

.document-viewer-logo-link img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.document-viewer-type-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    margin-bottom: 8px;
}

.document-viewer-type-row p {
    margin: 0 0 8px;
    color: #3874ff;
    font-size: 12px;
    font-weight: 900;
}

.document-viewer-type-row p {
    margin: 0;
}

.document-viewer-type-row span {
    color: #5f6b84;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.45;
}

.document-viewer-header h1 {
    margin: 0;
    color: #141824;
    font-size: 30px;
    line-height: 1.25;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.document-viewer-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-top: 10px;
}

.document-viewer-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #6e7891;
    font-size: 12px;
    font-weight: 800;
}

.document-viewer-meta-item i {
    color: #3874ff;
    font-size: 13px;
}

.document-preview-header-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.document-preview-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    border: 1px solid #d7dde8;
    border-radius: 6px;
    background: #f8fafc;
    color: #31374a;
    padding: 0 10px;
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
}

.document-preview-back:hover {
    border-color: #9eb8ff;
    background: #eff4ff;
    color: #1d4ed8;
}

.document-viewer-body {
    padding: 28px;
    color: #1f2937;
    font-size: 16px;
    line-height: 1.76;
}

.document-viewer-frame-wrap {
    padding: 18px;
}

.document-viewer-frame {
    width: 100%;
    min-height: 760px;
    border: 1px solid #e3e6ed;
    border-radius: 8px;
    background: #fff;
}

.document-viewer-body h1,
.document-viewer-body h2,
.document-viewer-body h3,
.document-viewer-body h4 {
    color: #111827;
    line-height: 1.25;
    font-weight: 900;
}

.document-viewer-body h1 {
    font-size: 28px;
}

.document-viewer-body h2 {
    margin-top: 32px;
    font-size: 23px;
}

.document-viewer-body h3 {
    margin-top: 26px;
    font-size: 19px;
}

.document-viewer-body p {
    margin: 0 0 16px;
}

.document-viewer-body a {
    color: #2563eb;
    font-weight: 800;
}

.document-viewer-body img {
    max-width: 100%;
    height: auto;
}

.document-viewer-body table {
    display: block;
    width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
}

.document-viewer-body th,
.document-viewer-body td {
    border: 1px solid #e3e6ed;
    padding: 8px 10px;
}

.document-viewer-body th {
    background: #f8fafc;
    color: #31374a;
    font-weight: 900;
}

.document-viewer-body pre {
    overflow-x: auto;
    border: 1px solid #e3e6ed;
    border-radius: 8px;
    background: #0f172a;
    color: #e5e7eb;
    padding: 14px;
}

.document-viewer-body code {
    border-radius: 5px;
    background: #f1f5f9;
    color: #0f172a;
    padding: 2px 5px;
    font-size: 0.92em;
}

.document-viewer-body pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}

.document-viewer-message {
    display: grid;
    gap: 8px;
    justify-items: center;
    padding: 54px 24px;
    text-align: center;
}

.document-viewer-message h1 {
    margin: 0;
    color: #141824;
    font-size: 24px;
    font-weight: 900;
}

.document-viewer-message p {
    margin: 0;
    color: #6e7891;
    font-size: 14px;
    font-weight: 800;
}

@media (max-width: 640px) {
    .document-viewer-page {
        padding: 14px;
    }

    .document-viewer-header,
    .document-viewer-body {
        padding: 20px;
    }

    .document-viewer-header {
        padding-right: 58px;
    }

    .document-viewer-logo-link {
        top: 18px;
        right: 20px;
    }

    .document-viewer-header h1 {
        font-size: 24px;
    }
}
