.embed-view,
.embed-view * {
    box-sizing: border-box;
}

body.embed-view {
    margin: 0;
    padding: 12px;
    background: #fff;
    color: #333;
    font: 14px/1.5 Arial, sans-serif;
}

.embed-view a {
    color: #387b35;
}

.embed-card {
    max-width: 640px;
    margin: 0 auto;
    padding: 16px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    overflow-wrap: anywhere;
}

.embed-header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px;
    color: #666;
    font-size: 12px;
}

.embed-header a {
    font-weight: bold;
    text-decoration: none;
}

.embed-header time {
    margin-left: auto;
}

.embed-title {
    margin: 14px 0 8px;
    font-size: 16px;
}

.embed-content {
    margin-top: 12px;
}

.embed-content pre {
    overflow-x: auto;
}

.embed-content img,
.embed-image {
    max-width: 100%;
    height: auto;
}

.embed-image {
    display: block;
    margin-top: 12px;
}

.embed-options {
    padding-left: 24px;
}

.embed-test-questions > li {
    margin-bottom: 12px;
}

.embed-test-options {
    margin-top: 6px;
    padding-left: 24px;
}

.embed-test-note {
    color: #666;
    font-size: 12px;
}

.embed-card footer {
    margin-top: 16px;
    font-size: 12px;
}

.embed-code h1 {
    margin: 0 0 8px;
    font-size: 20px;
}

.embed-code {
    padding: 20px;
    overflow-wrap: anywhere;
}

.embed-code p {
    margin: 0 0 16px;
}

.embed-code h2 {
    margin: 20px 0 8px;
    font-size: 16px;
}

.embed-code label {
    display: grid;
    gap: 6px;
    font-weight: bold;
}

.embed-code textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #c8c8c8;
    border-radius: 3px;
    font: 13px/1.4 monospace;
    resize: vertical;
}

.embed-preview {
    display: block;
    width: 100%;
    height: 400px;
    margin-bottom: 12px;
    border: 1px solid #d9d9d9;
}
