.content-page {
    max-width: 1060px;
    margin: 0 auto;
    padding: 40px 24px 120px;
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.content-nav,
.content-breadcrumb,
.content-toc {
    background: none;
    border-bottom: 0;
    height: auto;
    min-height: 0;
    position: static;
    overflow: visible;
    z-index: auto;
    align-items: flex-start;
}

.content-side { flex: 0 0 200px; position: sticky; top: 72px; max-height: calc(100dvh - 92px); overflow-y: auto; }
.content-side-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--dim); margin-bottom: 10px; }
.content-side-title + .content-nav { margin-bottom: 26px; }
.content-nav { display: block; }
.content-nav a { display: flex; align-items: center; justify-content: flex-start; padding: 8px 10px; border-radius: 6px; color: var(--muted); font-size: 13px; text-decoration: none; text-align: left; }
.content-nav a::before { content: "\00b7"; color: var(--dim); margin-right: 8px; }
.content-nav a:hover { color: var(--text); background: var(--surface); text-decoration: none; }
.content-nav a:hover::before { color: var(--muted); }
.content-nav a.active { color: var(--green); background: var(--surface); font-weight: 600; }
.content-nav a.active::before { color: var(--green); }

.content-body { flex: 1; min-width: 0; }
.content-breadcrumb { display: block; font-size: 12px; color: var(--dim); margin-bottom: 14px; }
.content-breadcrumb a { color: var(--muted); text-decoration: none; }
.content-breadcrumb a:hover { color: var(--text); text-decoration: underline; }
.content-breadcrumb span { margin: 0 6px; }

.content-body h1 { font-size: 22px; color: #fff; margin: 0 0 6px; }
.content-body .intro { color: var(--muted); font-size: 13px; margin-bottom: 28px; }
.content-body h2 {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--green);
    margin: 34px 0 10px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 8px;
}
.content-body p { margin-bottom: 10px; font-size: 13px; line-height: 1.65; }
.content-body ul { margin: 0 0 12px 18px; font-size: 13px; }
.content-body ol { margin: 0 0 12px 18px; font-size: 13px; }
.content-body li { margin-bottom: 6px; line-height: 1.6; }
.content-body a { color: var(--green); text-underline-offset: 3px; }
.content-body code { font-size: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 4px; padding: 1px 5px; }
.content-body pre {
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: 10px;
    padding: 14px 16px;
    margin: 0 0 12px;
    font-size: 12px;
    line-height: 1.7;
    overflow-x: auto;
}
.content-body pre code { background: none; border: none; padding: 0; }
.content-body table { width: 100%; border-collapse: collapse; font-size: 13px; margin-bottom: 12px; }
.content-body th, .content-body td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.content-body th { color: var(--dim); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }

.content-toc { display: block; }
.content-toc a { display: block; padding: 5px 10px; border-left: 1px solid var(--border); color: var(--dim); font-size: 12px; line-height: 1.45; text-decoration: none; }
.content-toc a:hover { color: var(--text); border-left-color: var(--muted); text-decoration: none; }
.content-toc a.active { color: var(--green); border-left-color: var(--green); }

.content-body h2 { position: relative; scroll-margin-top: 76px; }
.content-anchor { color: var(--dim); text-decoration: none; margin-left: 8px; opacity: 0; transition: opacity .12s ease; font-weight: 700; }
.content-body h2:hover .content-anchor, .content-anchor:focus { opacity: 1; }
.content-anchor:hover { color: var(--green); text-decoration: none; }

.content-pre-wrap { position: relative; }
.content-copy {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--muted);
    font: inherit;
    font-size: 11px;
    padding: 3px 9px;
    cursor: pointer;
    opacity: 0;
    transition: opacity .12s ease, color .12s ease, border-color .12s ease;
}
.content-pre-wrap:hover .content-copy, .content-copy:focus { opacity: 1; }
.content-copy:hover { color: var(--green); border-color: var(--green); }

.content-guide { margin: 0 0 14px; }
.content-guide video { display: block; width: 100%; max-width: 640px; background: #000; border: 1px solid var(--border); border-radius: 10px; }

.badge-list { display: flex; flex-direction: column; gap: 12px; margin: 0 0 16px; }
.badge-entry {
    display: flex;
    gap: 22px;
    align-items: flex-start;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    padding: 18px;
}
.badge-art { display: flex; flex-direction: column; gap: 10px; flex: 0 0 auto; width: 268px; }
.badge-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px 14px;
}
.badge-stage span { display: flex; flex-direction: column; align-items: center; gap: 7px; }
.badge-stage img { display: block; }
.badge-stage em {
    font-family: var(--font-mono);
    font-style: normal;
    font-size: 10px;
    color: var(--dim);
    letter-spacing: .06em;
}
.badge-chatline {
    display: flex;
    align-items: center;
    gap: 5px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 9px 12px;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
}
.badge-chatline img { flex: 0 0 auto; display: block; }
.badge-chatline b { font-weight: 700; }
.badge-chatline span { color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.badge-copy { flex: 1 1 auto; min-width: 0; }
.content-body .badge-copy h3 { font-size: 15px; font-weight: 700; color: #fff; margin: 0 0 6px; }
.content-body .badge-copy p { font-size: 13px; margin-bottom: 8px; }
.content-body .badge-copy p:last-child { margin-bottom: 0; }
.content-body .badge-how { color: var(--text); }

@media (max-width: 760px) {
    .badge-entry { flex-direction: column; gap: 16px; }
    .badge-art { width: 100%; }
    .badge-stage { gap: 18px; }
}

.content-index-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-top: 24px; }
.content-index-card {
    display: block;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 18px;
    background: var(--surface);
    text-decoration: none;
    transition: transform .15s ease, border-color .15s ease;
}
.content-index-card:hover { transform: translateY(-3px); border-color: var(--accent-mid); text-decoration: none; }
.content-index-title { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.content-index-summary { font-size: 13px; color: var(--muted); line-height: 1.6; }
.content-crosslink { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border); font-size: 13px; color: var(--muted); }

@media (max-width: 760px) {
    .content-page { flex-direction: column; gap: 20px; }
    .content-side { position: static; flex: none; width: 100%; max-height: none; overflow: visible; }
    .content-side-title { display: none; }
    .content-nav { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 0; }
    .content-side-title + .content-nav { margin-bottom: 0; }
    .content-nav a::before { display: none; }
    .content-toc { display: none; }
    .content-anchor { display: none; }
    .content-copy { opacity: 1; }
}
