:root {
    color-scheme: light;
    --bg: #f3f6fb;
    --surface: #ffffff;
    --surface-muted: #f7f9fc;
    --surface-strong: #eef3fb;
    --line: #d7e0ec;
    --line-strong: #c3d0e2;
    --text: #162235;
    --text-muted: #5e6d82;
    --accent: #5d738c;
    --accent-strong: #4b6179;
    --accent-soft: #eef2f6;
    --danger: #c53e3e;
    --success: #1e7f52;
    --warning: #996300;
    --shadow: 0 10px 28px rgba(18, 34, 53, 0.07);
    --panel-shadow: 0 1px 2px rgba(18, 34, 53, 0.04), 0 8px 20px rgba(18, 34, 53, 0.04);
    --radius: 7px;
    --header-height: 60px;
    --sidebar-width: clamp(200px, 18vw, 276px);
    --toc-width: 235px;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    height: 100%;
    min-height: 100%;
    background: var(--bg);
    color: var(--text);
    overflow: hidden;
}

[hidden] {
    display: none !important;
}

body {
    min-height: 100vh;
}

.app-shell {
    height: 100vh;
    min-height: 100vh;
    display: grid;
    grid-template-rows: auto 1fr auto;
}

.app-header {
    position: sticky;
    top: 0;
    z-index: 50;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    padding: 9px 14px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(215, 224, 236, 0.9);
}

.brand-group {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.brand-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: inherit;
    text-decoration: none;
    min-width: 0;
}

.brand-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
    flex: 0 0 auto;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.brand-product {
    font-size: 0.69rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
}

.brand-title {
    font-size: 0.92rem;
    font-weight: 600;
    white-space: nowrap;
}

.control-bar {
    display: flex;
    flex: 1 1 auto;
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 10px;
    align-items: center;
    min-width: 0;
}

.search-cluster,
.select-cluster {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    align-items: center;
    padding: 5px 7px;
    border: 1px solid #e2e9f1;
    border-radius: 8px;
    background: rgba(248, 250, 252, 0.88);
    min-width: 0;
}

.search-cluster {
    flex: 1 1 auto;
}

.select-cluster {
    flex: 0 1 auto;
}

.field-label {
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-left: 2px;
    white-space: nowrap;
}

#search-input,
select,
.primary-button,
.secondary-button {
    min-height: 30px;
    border-radius: 5px;
    border: 1px solid var(--line);
    font: inherit;
    font-size: 0.86rem;
}

#search-input,
select {
    background: var(--surface);
    color: var(--text);
    padding: 0 8px;
    box-shadow: inset 0 1px 1px rgba(18, 34, 53, 0.02);
}

select {
    flex: 0 1 auto;
}

#search-input {
    width: min(360px, 48vw);
    min-width: 140px;
    flex: 1 1 200px;
    height: 30px;
    max-height: 96px;
    padding-top: 5px;
    padding-bottom: 5px;
    line-height: 1.35;
    resize: none;
    overflow-y: hidden;
}

.ai-toggle-group {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding-right: 6px;
    margin-right: 2px;
    border-right: 1px solid #d8e0ea;
}

.ai-toggle {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}

.ai-toggle-text {
    font-size: 0.75rem;
    font-weight: 600;
    color: #5c6c80;
}

.ai-toggle input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.ai-toggle-switch {
    position: relative;
    width: 24px;
    height: 14px;
    border-radius: 999px;
    background: #d6dde7;
    box-shadow: inset 0 0 0 1px rgba(118, 136, 156, 0.12);
    transition: background-color 0.18s ease;
    flex: 0 0 auto;
}

.ai-toggle-switch::after {
    content: "";
    position: absolute;
    top: 1px;
    left: 1px;
    width: 4px;
    height: 12px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(18, 34, 53, 0.18);
    transition: transform 0.18s ease;
}

.ai-toggle input:checked + .ai-toggle-switch {
    background: #8ea1b5;
}

.ai-toggle input:checked + .ai-toggle-switch::after {
    transform: translateX(10px);
}

.ai-toggle input:disabled + .ai-toggle-switch {
    opacity: 0.55;
}

.ai-toggle input:disabled + .ai-toggle-switch + .ai-toggle-text {
    opacity: 0.55;
}

.primary-button,
.secondary-button {
    padding: 0 9px;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.nav-link-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.primary-button {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.primary-button:hover {
    background: var(--accent-strong);
    border-color: var(--accent-strong);
}

.secondary-button {
    background: #f4f7fa;
    border-color: #d5deea;
    color: #45586d;
}

.secondary-button:hover {
    background: #edf2f7;
    border-color: #c5d1df;
}

.primary-button:disabled,
.secondary-button:disabled,
select:disabled,
input:disabled,
textarea:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.compare-controls {
    display: flex;
    gap: 7px;
    align-items: center;
    min-width: 0;
    flex-wrap: nowrap;
}

.hotfix-controls {
    position: relative;
    display: flex;
    gap: 5px;
    align-items: center;
    min-width: 0;
    flex-wrap: nowrap;
}

.hotfix-controls[hidden],
#hotfix-select[hidden] {
    display: none;
}

#hotfix-select {
    width: 104px;
}

#language-select {
    width: 84px;
}

#version-select {
    width: 104px;
}

#compare-select {
    width: 118px;
}

.app-body {
    min-height: 0;
    display: grid;
    grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
    overflow: hidden;
    gap: 0;
    background: #e9eef4;
}

.sidebar {
    position: relative;
    min-height: 0;
    background: linear-gradient(180deg, #fbfcfe 0%, #f7faff 100%);
    border-right: 1px solid #d7e1ec;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: inset -1px 0 0 rgba(215, 225, 236, 0.9);
}

.sidebar-resizer {
    position: absolute;
    z-index: 2;
    top: 0;
    right: -6px;
    bottom: 0;
    width: 6px;
    cursor: col-resize;
    touch-action: none;
    background: transparent;
    outline: none;
}

.sidebar-resizer::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 1px;
    background: var(--line-strong);
    transition: background-color 0.15s ease;
}

.sidebar-resizer::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 6px;
    height: 40px;
    transform: translateY(-50%);
    border: 1px solid var(--line-strong);
    border-radius: 3px;
    background: var(--surface);
    box-shadow: 0 2px 7px rgba(18, 34, 53, 0.16);
    transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.sidebar-resizer:hover::after,
.sidebar-resizer:focus-visible::after,
.sidebar-resizer.is-active::after {
    background: var(--accent);
}

.sidebar-resizer:hover::before,
.sidebar-resizer:focus-visible::before,
.sidebar-resizer.is-active::before {
    border-color: var(--accent);
    background: var(--accent-soft);
    box-shadow: 0 2px 9px rgba(75, 97, 121, 0.28);
}

body.sidebar-resizing,
body.sidebar-resizing * {
    cursor: col-resize !important;
    user-select: none !important;
}

@media (min-width: 981px) {
    .sidebar {
        overflow: visible;
    }
}

.sidebar-head {
    padding: 10px 12px 9px 10px;
    border-bottom: 1px solid var(--line);
    background: #f5f8fb;
}

.sidebar-title {
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.tree-nav {
    min-height: 0;
    overflow: auto;
    padding: 10px 12px 12px 10px;
}

.tree-empty {
    color: var(--text-muted);
    font-size: 0.85rem;
    padding: 8px 4px;
}

.tree-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 2px;
}

.tree-list .tree-list {
    margin-left: 12px;
    padding-top: 2px;
}

.tree-item {
    position: relative;
}

.tree-row {
    display: grid;
    grid-template-columns: 14px minmax(0, 1fr);
    gap: 5px;
    align-items: start;
}

.tree-toggle,
.tree-spacer,
.tree-link {
    min-height: 24px;
}

.tree-toggle,
.tree-link,
.icon-button,
.icon-close {
    border: none;
    background: transparent;
    padding: 0;
    font: inherit;
}

.tree-toggle {
    color: var(--text-muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    font-size: 0;
    border-radius: 4px;
}

.tree-toggle::before {
    content: "";
    width: 6px;
    height: 6px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(-45deg);
    transition: transform 0.15s ease;
}

.tree-toggle[aria-expanded="true"]::before {
    transform: rotate(45deg) translateY(-1px);
}

.tree-toggle:hover {
    background-color: var(--surface-muted);
}

.tree-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    width: 100%;
    padding: 2px 7px 2px 8px;
    border-radius: 5px;
    cursor: pointer;
    text-align: left;
    color: var(--text);
    line-height: 1.25;
    font-size: 0.84rem;
    border: 1px solid transparent;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.tree-link:hover {
    background: #f3f6fa;
    border-color: #dde5ef;
}

.tree-link.active {
    background: #e3ebf3;
    color: #203244;
    font-weight: 700;
    border-color: #c8d4e0;
    box-shadow: 0 1px 2px rgba(18, 34, 53, 0.05);
}

.tree-link.item-new {
    border-color: transparent;
}

.tree-link.item-change {
    border-color: transparent;
}

.tree-link.children-change {
    border-color: transparent;
}

.tree-link.active.item-new,
.tree-link.active.item-change,
.tree-link.active.children-change {
    background-color: #e3ebf3;
    border-color: #c8d4e0;
}

.content-area {
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    padding: 12px;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    gap: 12px;
    background: #eef3f7;
}

.content-area.ai-mode {
    grid-template-rows: auto minmax(0, 1fr);
    overflow: hidden;
}

.status-banner,
.ai-panel,
.reader-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--panel-shadow);
}

.status-banner {
    padding: 9px 12px;
    color: var(--text);
}

.status-banner.is-error {
    border-color: rgba(197, 62, 62, 0.28);
    background: #fff6f6;
    color: #7b2222;
}

.status-banner.is-info {
    border-color: rgba(33, 91, 189, 0.22);
    background: #f7faff;
}

.ai-panel {
    padding: 14px;
    display: grid;
    grid-template-rows: auto auto auto auto minmax(0, 1fr);
    gap: 12px;
}

.content-area.ai-mode .ai-panel {
    min-height: 0;
    overflow: hidden;
    align-self: stretch;
}

.ai-panel-header,
.reader-header,
.app-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.ai-panel-kicker,
.reader-meta {
    margin: 0;
    font-size: 0.74rem;
    color: var(--text-muted);
}

.ai-panel-title,
.reader-title {
    margin: 4px 0 0;
    font-size: 1.08rem;
    line-height: 1.2;
    font-weight: 700;
}

.ai-panel-meta {
    font-size: 0.84rem;
    color: var(--text-muted);
}

.ai-panel-summary-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text);
    padding-top: 4px;
    margin-top: 2px;
    border-top: 1px solid #e4ebf3;
}

.ai-panel-results {
    display: grid;
    gap: 8px;
    align-content: start;
    min-height: 0;
    overflow: auto;
    padding-top: 2px;
}

.ai-result-item {
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfcfe;
}

.ai-result-title {
    margin: 0 0 6px;
    font-size: 0.9rem;
    line-height: 1.35;
}

.ai-result-title a {
    color: var(--accent-strong);
    text-decoration: none;
}

.ai-result-title a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.ai-result-quote {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.55;
}

.ai-panel-stream {
    margin: 0;
    padding: 12px 14px;
    border-radius: 7px;
    background: var(--surface-muted);
    border: 1px solid var(--line);
    white-space: normal;
    min-height: 0;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.ai-panel-stream a {
    color: var(--accent-strong);
}

.search-ai-summary {
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfcfe;
    box-shadow: var(--panel-shadow);
}

.search-ai-summary-title {
    margin-bottom: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--accent-strong);
}

.search-ai-summary-content {
    line-height: 1.55;
    color: var(--text);
    overflow-wrap: anywhere;
}

.search-ai-summary-content p:first-child {
    margin-top: 0;
}

.search-ai-summary-content p:last-child {
    margin-bottom: 0;
}

.search-ai-summary-content a {
    color: var(--accent-strong);
}

.ai-thinking-bounce {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.ai-thinking-bounce span {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #7b8ca0;
    animation: ai-bounce 1s infinite ease-in-out;
}

.ai-thinking-bounce span:nth-child(2) {
    animation-delay: 0.12s;
}

.ai-thinking-bounce span:nth-child(3) {
    animation-delay: 0.24s;
}

.ai-status-card {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfcfe;
}

.ai-status-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid #d7e9fb;
    border-top-color: #7491b1;
    border-radius: 50%;
    animation: ai-rotate 0.9s linear infinite;
    flex: 0 0 auto;
}

.ai-status-text {
    margin: 0;
    color: #2f3d4d;
    font-size: 0.88rem;
    line-height: 1.45;
}

@keyframes ai-rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.icon-close {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    cursor: pointer;
    color: var(--text-muted);
}

.icon-close:hover {
    background: var(--surface-muted);
    color: var(--text);
}

.reader-card {
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-color: #d6e0eb;
    background: linear-gradient(180deg, #fcfdff 0%, #ffffff 100%);
    box-shadow: 0 1px 2px rgba(18, 34, 53, 0.04), 0 10px 26px rgba(18, 34, 53, 0.05);
}

.reader-header {
    padding: 12px 14px 10px;
    border-bottom: 1px solid #dbe4ee;
    align-items: flex-start;
    background: #fbfcfe;
}

.reader-heading {
    min-width: 0;
}

.compare-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    justify-content: flex-end;
}

.compare-summary {
    font-size: 0.84rem;
    color: var(--text-muted);
    max-width: 480px;
    text-align: right;
}

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

.reader-content {
    min-height: 0;
    flex: 1 1 auto;
    overflow: auto;
    padding: 0 12px 24px;
    background: #fff;
}

.reader-content-document {
    overflow: hidden;
    padding-bottom: 0;
}

.doc-article,
.search-results {
    max-width: none;
    width: 100%;
    margin: 0;
    padding-top: 10px;
}

.search-results {
    display: grid;
    gap: 10px;
}

.empty-state {
    max-width: 720px;
    margin: 0 auto;
    padding-top: 14px;
    display: grid;
    gap: 12px;
}

.empty-state-title {
    margin: 0;
    font-size: 1.24rem;
    line-height: 1.2;
}

.empty-state-text {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.6;
}

.empty-state-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    width: fit-content;
    padding: 0 12px;
    border-radius: 7px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--text);
    text-decoration: none;
}

.empty-state-link:hover {
    background: var(--surface-muted);
    border-color: var(--line-strong);
}

.search-card {
    display: grid;
    gap: 6px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-muted);
}

.search-card-button {
    display: inline-block;
    border: none;
    background: transparent;
    padding: 0;
    font: inherit;
    text-align: left;
    color: var(--accent-strong);
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.search-card-button:hover {
    color: var(--accent);
    text-decoration: underline;
}

.search-card-snippet {
    color: var(--text-muted);
    line-height: 1.6;
}

.doc-article {
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--toc-width);
    column-gap: 24px;
    align-items: stretch;
    min-height: 0;
    height: 100%;
    color: var(--text);
    text-align: left;
    font-size: 0.96rem;
    line-height: 1.58;
}

.doc-article.doc-article-no-toc {
    grid-template-columns: minmax(0, 1fr);
}

.doc-article main,
.doc-article .bd-content,
.doc-article [class*="col-"] {
    width: auto;
    max-width: none;
    min-width: 0;
    margin: 0;
    padding: 0;
    float: none;
}

.doc-article > main {
    grid-column: 1;
    min-height: 0;
    height: 100%;
    overflow: auto;
    padding: 0 10px 50px 10px;
    max-width: 940px;
}

.doc-article > main > div {
    width: 100%;
}

.doc-article > main > div > *:last-child,
.doc-article section > *:last-child {
    margin-bottom: 0;
}

.doc-article section {
    margin: 0 0 24px;
}

.doc-article h1,
.doc-article h2,
.doc-article h3,
.doc-article h4,
.doc-article h5,
.doc-article h6 {
    margin: 24px 0 10px;
    color: #122133;
    line-height: 1.25;
    text-align: left;
}

.doc-article h1 {
    font-size: 1.72rem;
}

.doc-article h2 {
    font-size: 1.42rem;
    padding-bottom: 6px;
    border-bottom: 1px solid #e6edf5;
}

.doc-article h3 {
    font-size: 1.16rem;
    color: #303d4d;
}

.doc-article p,
.doc-article li,
.doc-article td,
.doc-article th,
.doc-article dd,
.doc-article blockquote,
.doc-article .line,
.doc-article .line-block,
.doc-article .guilabel,
.doc-article .program,
.doc-article .std,
.doc-article .std-ref {
    color: var(--text);
}

.doc-article p,
.doc-article ul,
.doc-article ol,
.doc-article dl,
.doc-article table,
.doc-article blockquote,
.doc-article .line-block {
    margin: 0 0 12px;
}

.doc-article ul,
.doc-article ol {
    padding-left: 42px;
    margin-left: 0;
    list-style-position: outside;
}

.doc-article ul.simple,
.doc-article ol.simple {
    padding-left: 42px;
    margin-left: 0;
}

.doc-article li::marker {
    color: #506274;
}

.doc-article li + li {
    margin-top: 4px;
}

.doc-article li > p {
    margin: 0;
}

.doc-article ul.simple li > p:has(> img:first-child),
.doc-article ol.simple li > p:has(> img:first-child) {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0 8px;
    text-align: left;
}

.doc-article ul.simple li > p > img:first-child,
.doc-article ol.simple li > p > img:first-child {
    display: inline-block;
    flex: 0 0 auto;
    max-width: none;
    margin: 0;
    vertical-align: middle;
}

.doc-article strong {
    color: #13263b;
}

.doc-article em {
    font-style: italic;
}

.doc-article .dfn {
    font-style: normal;
    font-weight: 700;
}

.doc-article .guilabel {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 8px;
    border-radius: 6px;
    background: #eef2f6;
    border: 1px solid #d8e0ea;
    font-style: normal;
    font-weight: 600;
}

.doc-article .program {
    font-weight: 600;
}

.doc-article mark,
.search-card mark {
    background: #fff1c7;
    color: inherit;
    padding: 0;
}

.doc-article blockquote {
    padding: 0 0 0 14px;
    border-left: 1px solid #e3eaf3;
}

.doc-article li blockquote {
    padding-left: 0;
    border-left: 0;
}

.doc-article blockquote > div {
    display: grid;
    gap: 10px;
}

.doc-article blockquote img {
    border: 1px solid #d9e3ee;
    box-shadow: 0 6px 18px rgba(18, 34, 53, 0.06);
}

.doc-article img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0;
    border-radius: 8px;
    background: #fff;
}

.doc-article p > img,
.doc-article li > p > img,
.doc-article .line > img {
    display: inline-block;
    max-width: 100%;
    margin: 0 4px;
    vertical-align: middle;
}

.doc-article table {
    width: 100%;
    border-collapse: collapse;
    display: table;
    table-layout: fixed;
    margin-bottom: 16px;
}

.doc-article th,
.doc-article td {
    border: 1px solid var(--line);
    padding: 8px 10px;
    vertical-align: top;
    text-align: left;
}

.doc-article thead th {
    background: #f5f8fb;
    font-weight: 700;
}

.doc-article pre {
    position: relative;
    overflow: auto;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid #d8e2ee;
    background: #f7f9fc;
    color: #1d2b3a;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.doc-article code,
.doc-article .samp,
.doc-article .samp .pre {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

.doc-article code:not(pre code) {
    padding: 0.15em 0.35em;
    border-radius: 4px;
    background: #eef3fb;
    color: var(--accent-strong);
}

.copy-button {
    position: absolute;
    top: 10px;
    right: 10px;
    min-height: 32px;
    padding: 0 10px;
    border-radius: 6px;
    border: 1px solid #c8d4e2;
    background: #ffffff;
    color: #42556b;
    cursor: pointer;
}

.copy-button:hover {
    background: #eef3f8;
    color: #172536;
}

.doc-article ins,
.doc-article del {
    text-decoration: none;
    padding: 0.05em 0.08em;
}

.doc-article ins {
    background: rgba(30, 127, 82, 0.18);
}

.doc-article del {
    background: rgba(197, 62, 62, 0.18);
}

.doc-article .compare-focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.doc-article .bd-toc {
    grid-column: 2;
    align-self: start;
    position: static;
    display: flex;
    flex-direction: column;
    min-height: 0;
    max-height: 100%;
    margin: 0;
    min-width: var(--toc-width);
    padding: 12px 12px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfcfe;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
    overflow: hidden;
}

.doc-article .toc-item {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.doc-article .tocsection,
.doc-article #bd-toc-nav,
.doc-article #bd-toc-nav a,
.doc-article #bd-toc-nav li {
    color: var(--text);
}

.doc-article .tocsection {
    padding: 4px 10px 10px;
    color: #8a97a7;
    font-size: 0.8rem;
    white-space: nowrap;
}

.doc-article #bd-toc-nav {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    padding-left: 10px;
    border-left: 1px solid #e6edf5;
}

.doc-article #bd-toc-nav ul {
    margin: 6px 0 0;
    padding-left: 14px;
}

.doc-article .section-nav {
    padding-left: 0;
    border-bottom: none;
}

.doc-article .toc-entry {
    display: block;
    margin-bottom: 8px;
}

.doc-article .toc-entry:last-child {
    margin-bottom: 0;
}

.doc-article .toc-h2 > a,
.doc-article .toc-h2 > .nav-link {
    font-size: 0.84rem;
    line-height: 1.3;
}

.doc-article .toc-h3 > a,
.doc-article .toc-h3 > .nav-link {
    font-size: 0.76rem;
    line-height: 1.25;
}

.doc-article .toc-entry > a,
.doc-article .toc-entry .nav-link {
    color: #667386;
    text-decoration: none;
    border-bottom: none;
}

.doc-article .toc-entry > a:hover,
.doc-article .toc-entry .nav-link:hover,
.doc-article .toc-entry > a.active,
.doc-article .toc-entry .nav-link.active {
    color: #172536;
    text-decoration: none;
}

.headerlink {
    display: none !important;
}

.doc-article main a,
.doc-article main a.reference,
.doc-article main a.internal,
.doc-article main a.external,
.doc-article main a.std-ref,
.doc-article main a.guilabel,
.doc-article main a.menuselection,
.doc-article main a.kbd {
    color: #0b5f9f;
    font-weight: 500;
    text-decoration: underline;
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.18em;
}

.doc-article main a .std,
.doc-article main a .std-ref,
.doc-article main a .pre,
.doc-article main a code,
.doc-article main a span {
    color: inherit;
}

.doc-article main a:hover,
.doc-article main a.reference:hover,
.doc-article main a.internal:hover,
.doc-article main a.external:hover,
.doc-article main a.std-ref:hover,
.doc-article main a.guilabel:hover,
.doc-article main a.menuselection:hover,
.doc-article main a.kbd:hover {
    color: #084c80;
    text-decoration: none;
}

.doc-article .admonition,
.doc-article details.sd-dropdown,
.doc-article .sd-card {
    margin: 22px 0;
    border: 1px solid var(--line);
    border-left-width: 4px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--surface);
}

.doc-article .admonition.warning {
    border-left-color: #f0b429;
}

.doc-article .admonition.note,
.doc-article .admonition.important {
    border-left-color: #1e7f52;
}

.doc-article .admonition.error {
    border-left-color: #c53e3e;
}

.doc-article .admonition.seealso {
    border-left-color: var(--accent);
}

.doc-article .admonition-title,
.doc-article .sd-card-header,
.doc-article summary {
    margin: 0;
    padding: 12px 16px;
    font-weight: 700;
    background: var(--surface-muted);
}

.doc-article details.sd-dropdown > summary,
.doc-article details.sd-dropdown > .sd-summary-title.sd-card-header {
    cursor: pointer;
}

.doc-article details.sd-dropdown > .sd-summary-title .sd-summary-up,
.doc-article details.sd-dropdown > .sd-summary-title .sd-summary-down,
.doc-article details.sd-dropdown > .sd-summary-title .sd-summary-up svg,
.doc-article details.sd-dropdown > .sd-summary-title .sd-summary-down svg,
.doc-article details.sd-dropdown > .sd-summary-title .sd-octicon {
    display: none !important;
}

.doc-article .admonition p.admonition-title ~ * {
    padding: 0 16px 14px;
}

.doc-article .admonition ul,
.doc-article .admonition ol,
.doc-article .admonition table,
.doc-article .admonition blockquote {
    margin-bottom: 14px;
}

.doc-article .admonition p.admonition-title ~ ul,
.doc-article .admonition p.admonition-title ~ ol {
    padding-left: 42px;
    padding-right: 16px;
}

.doc-article .admonition > *:last-child {
    margin-bottom: 0;
}

.doc-article dl {
    margin: 16px 0;
}

.doc-article dt {
    font-weight: 700;
}

.doc-article dd {
    margin: 6px 0 12px 20px;
}

.doc-article .prev-next-area {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 28px 0 34px;
}

.doc-article > main > div > .prev-next-area:last-child {
    margin-bottom: 34px;
}

.doc-article .prev-next-area a {
    position: relative;
    min-height: 80px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--text);
    text-decoration: none;
    transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.doc-article .prev-next-area a:hover {
    background: #f8fafc;
    border-color: #bccadb;
    text-decoration: none;
}

.doc-article .prev-next-area i {
    display: none;
}

.doc-article .left-prev::before,
.doc-article .right-next::after {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: #eef3f7;
    color: #5f7184;
    flex: 0 0 auto;
    font-size: 0.88rem;
    font-weight: 700;
}

.doc-article .left-prev::before {
    content: "<";
}

.doc-article .right-next::after {
    content: ">";
}

.doc-article .prev-next-info {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.doc-article .left-prev {
    grid-column: 1;
    justify-content: flex-start;
    text-align: left;
}

.doc-article .left-prev .prev-next-info {
    margin-right: auto;
    text-align: left;
}

.doc-article .right-next {
    grid-column: 2;
    justify-content: flex-end;
    text-align: right;
}

.doc-article .right-next .prev-next-info {
    margin-left: auto;
    text-align: right;
    justify-items: end;
}

.doc-article .prev-next-subtitle {
    margin: 0;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
}

.doc-article .prev-next-title {
    margin: 0;
    color: var(--text);
    font-size: 0.92rem;
    line-height: 1.4;
    font-weight: 600;
}

.reader-content > *:first-child,
.reader-content .doc-article > *:first-child {
    margin-top: 0;
}

.doc-article .menuselection,
.doc-article .kbd {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 8px;
    border-radius: 6px;
    border: 1px solid var(--line);
    background: var(--surface-muted);
    color: var(--text);
}

.app-footer {
    min-height: 25px;
    padding: 4px 12px 5px;
    border-top: 1px solid #d7e1ec;
    background: #fff;
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.35;
    flex-wrap: wrap;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    box-shadow: 0 -1px 4px rgba(18, 34, 53, 0.05);
    gap: 10px;
}

.footer-legend,
.footer-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.footer-legend {
    flex: 1 1 auto;
    min-width: 0;
    margin-right: auto;
}

.footer-meta {
    flex: 0 0 auto;
    margin-left: auto;
    justify-content: flex-end;
    text-align: right;
    max-width: 100%;
}

#footer-copy {
    display: inline-block;
    white-space: nowrap;
}

.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
}

.legend-dot-added {
    background: #101828;
}

.legend-dot-changed {
    background: var(--success);
}

.legend-dot-children {
    background: #8a3ffc;
}

.footer-feedback {
    color: var(--accent);
    text-decoration: none;
}

.footer-feedback:hover {
    text-decoration: underline;
}

.footer-feedback[aria-disabled="true"] {
    cursor: not-allowed;
    opacity: 0.55;
    pointer-events: none;
}

.loading-overlay {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(243, 246, 251, 0.58);
    backdrop-filter: blur(2px);
    z-index: 100;
}

.spinner {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 3px solid rgba(33, 91, 189, 0.18);
    border-top-color: var(--accent);
    animation: spin 0.8s linear infinite;
}

.icon-button {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.icon-button span {
    position: absolute;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: var(--text);
}

.icon-button span:nth-child(1) {
    transform: translateY(-5px);
}

.icon-button span:nth-child(3) {
    transform: translateY(5px);
}

.mobile-only {
    display: none;
    position: relative;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.fd-ui-tooltip {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1200;
    max-width: 320px;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(22, 29, 45, 0.96);
    color: #ffffff;
    font-size: 12px;
    line-height: 1.45;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.26);
    opacity: 0;
    pointer-events: none;
    transform: translateY(4px);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.fd-ui-tooltip.visible {
    opacity: 1;
    transform: translateY(0);
}

.fd-ui-tooltip__content {
    white-space: normal;
}

.fd-ui-tooltip__arrow {
    position: absolute;
    left: var(--fd-tooltip-arrow-left, 24px);
    bottom: -6px;
    width: 12px;
    height: 12px;
    background: rgba(22, 29, 45, 0.96);
    transform: translateX(-50%) rotate(45deg);
    border-radius: 2px;
}

.fd-ui-tooltip.is-bottom .fd-ui-tooltip__arrow {
    top: -6px;
    bottom: auto;
}

.context-menu {
    position: fixed;
    z-index: 1300;
    min-width: 164px;
    padding: 5px;
    border: 1px solid var(--line-strong);
    border-radius: 7px;
    background: var(--surface);
    box-shadow: 0 14px 34px rgba(18, 34, 53, 0.18);
}

.context-menu-item {
    display: block;
    width: 100%;
    min-height: 30px;
    padding: 0 10px;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: var(--text);
    font: inherit;
    font-size: 0.84rem;
    text-align: left;
    cursor: pointer;
}

.context-menu-item:hover {
    background: var(--accent-soft);
    color: var(--accent-strong);
}

.image-viewer {
    position: fixed;
    inset: 0;
    z-index: 1250;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 36px;
    background: rgba(10, 17, 28, 0.78);
}

.image-viewer-img {
    max-width: min(100%, 1200px);
    max-height: 100%;
    object-fit: contain;
    border-radius: 6px;
    background: #ffffff;
    box-shadow: 0 20px 58px rgba(0, 0, 0, 0.35);
}

.image-viewer-close {
    position: fixed;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 6px;
    background: rgba(15, 23, 42, 0.82);
    color: #ffffff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.doc-article img {
    cursor: zoom-in;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes ai-bounce {
    0%, 80%, 100% {
        transform: scale(0.72);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

@media (max-width: 1200px) {
    .app-header {
        grid-template-columns: minmax(0, 1fr);
        align-items: flex-start;
    }

    .control-bar {
        width: 100%;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .search-cluster,
    .select-cluster,
    .hotfix-controls,
    .compare-controls {
        flex-wrap: wrap;
    }
}

@media (max-width: 1400px) and (min-width: 1201px) {
    .app-header {
        gap: 14px;
        padding: 10px 14px;
    }

    .brand-link,
    .brand-group,
    .control-bar,
    .search-cluster,
    .select-cluster,
    .hotfix-controls,
    .compare-controls {
        min-width: 0;
    }

    .control-bar {
        flex: 1 1 auto;
        flex-wrap: nowrap;
        gap: 10px;
    }

    .search-cluster,
    .select-cluster {
        flex-wrap: nowrap;
        gap: 8px;
        padding: 5px 7px;
    }

    .search-cluster {
        flex: 1 1 auto;
    }

    .select-cluster {
        flex: 0 1 auto;
    }

    .field-label,
    .ai-toggle-text {
        font-size: 0.76rem;
    }

    .ai-toggle-group {
        gap: 8px;
        padding-right: 6px;
        margin-right: 0;
    }

    #search-input,
    select,
    .primary-button,
    .secondary-button {
        min-height: 30px;
        font-size: 0.87rem;
    }

    #search-input {
        width: auto;
        min-width: 150px;
        flex-basis: 180px;
    }

    #language-select {
        width: 84px;
    }

    #version-select {
        width: 104px;
    }

    #compare-select {
        width: 120px;
    }

    .primary-button,
    .secondary-button {
        padding: 0 9px;
    }
}

@media (max-width: 980px) {
    .mobile-only {
        display: inline-flex;
    }

    .app-body {
        grid-template-columns: minmax(0, 1fr);
    }

    .sidebar-resizer {
        display: none;
    }

    .sidebar {
        position: fixed;
        inset: 80px auto 0 0;
        width: min(82vw, 340px);
        transform: translateX(-100%);
        transition: transform 0.18s ease;
        z-index: 60;
        box-shadow: var(--shadow);
    }

    body.sidebar-open .sidebar {
        transform: translateX(0);
    }
}

@media (max-width: 820px) {
    .search-cluster,
    .select-cluster,
    .hotfix-controls,
    .compare-controls {
        width: 100%;
    }

    #search-input,
    select {
        flex: 1 1 180px;
        width: auto;
    }

    .reader-header,
    .ai-panel-header,
    .app-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .compare-summary {
        text-align: left;
    }

    .reader-content {
        padding: 0 16px 22px;
    }

    .reader-content-document {
        overflow: auto;
    }

    .doc-article {
        grid-template-columns: minmax(0, 1fr);
        align-items: start;
        height: auto;
    }

    .doc-article > main,
    .doc-article .bd-toc {
        grid-column: auto;
    }

    .doc-article > main {
        height: auto;
        overflow: visible;
        padding: 0 6px 34px;
    }

    .doc-article .bd-toc {
        position: static;
        height: auto;
        max-height: none;
        min-width: 0;
        margin-top: 8px;
    }

    .doc-article #bd-toc-nav {
        max-height: none;
    }

    .doc-article .prev-next-area {
        grid-template-columns: minmax(0, 1fr);
    }

    .doc-article .left-prev,
    .doc-article .right-next {
        grid-column: 1;
    }

    .footer-legend,
    .footer-meta {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        justify-content: flex-start;
        text-align: left;
    }

    #footer-copy {
        white-space: normal;
    }
}

/* Visual compatibility with the classic documentation viewer. */
:root {
    --bg: #fff;
    --surface: #fff;
    --surface-muted: #f7f7f7;
    --surface-strong: #f2f2f2;
    --line: #ccc;
    --line-strong: #bbb;
    --text: #333;
    --text-muted: #6f6f6f;
    --accent: #004675;
    --accent-strong: #004675;
    --accent-soft: #f9ffe5;
    --shadow: none;
    --panel-shadow: none;
    --radius: 0;
    --header-height: 35px;
    --sidebar-width: 329px;
    --toc-width: 235px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}

html,
body {
    min-width: 100%;
    width: 100%;
    background: #fff;
    color: #333;
}

body {
    font-size: 15px;
    line-height: 1.65;
}

.app-shell {
    grid-template-rows: 36px minmax(0, 1fr) 25px;
}

.app-header {
    position: relative;
    display: flex;
    height: 36px;
    min-height: 36px;
    gap: 0;
    padding: 0 5px 0 2px;
    background: #fff;
    border-bottom: 1px solid #ccc;
    backdrop-filter: none;
}

.brand-group,
.brand-link {
    gap: 0;
}

.brand-group {
    flex: 0 0 auto;
}

.brand-link {
    display: inline-block;
    height: 35px;
}

.brand-logo {
    width: 31px;
    height: 31px;
    margin-top: 2px;
    object-fit: contain;
}

.brand-copy {
    display: none;
}

.control-bar {
    display: flex;
    flex: 1 1 auto;
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 0;
    height: 35px;
    margin-right: 0;
    color: #6f6f6f;
    font-size: 13px;
    line-height: 33px;
    white-space: nowrap;
}

.search-cluster,
.select-cluster {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    min-width: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.search-cluster-inner {
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    align-content: flex-start;
    min-width: 0;
}

.search-cluster {
    position: relative;
    flex: 0 1 auto;
    gap: 0;
    align-self: flex-start;
    margin: 4px 10px 0 0;
    padding-right: 15px;
    border-right: 0;
}

.search-cluster::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    height: 27px;
    border-right: 1px dashed #bbb;
    pointer-events: none;
}

.select-cluster {
    flex: 0 0 auto;
    gap: 5px;
    width: auto;
}

.field-label {
    margin: 0 0 0 2px;
    color: #6f6f6f;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.2px;
    line-height: 33px;
    text-shadow: 1px 1px 1px #fff;
}

#search-input,
select,
.primary-button,
.secondary-button {
    min-height: 26px;
    height: 26px;
    border-radius: 2px;
    font-size: 14px;
}

#search-input {
    position: relative;
    display: block;
    width: 100%;
    min-width: 0;
    max-height: 64px;
    padding: 3px 42px 2px 6px;
    border: 1px solid #ccc;
    border-radius: 2px;
    background: #fff;
    box-shadow: none;
    color: #444;
    font: inherit;
    line-height: 19px;
    outline: none;
    resize: none;
}

.search-input-wrap {
    position: relative;
    display: inline-block;
    flex: 0 1 250px;
    width: 250px;
    min-width: 0;
    min-height: 26px;
    height: auto;
    vertical-align: top;
}

#search-clear {
    position: absolute;
    z-index: 13;
    top: 0;
    right: 2px;
    width: 20px;
    min-width: 20px;
    height: 26px;
    min-height: 26px;
    padding: 0;
    overflow: hidden;
    border: 0;
    background: url("../resources/clear.png") no-repeat center;
    box-shadow: none;
    color: transparent;
    font-size: 0;
    opacity: 0.5;
}

#search-clear:hover {
    border: 0;
    background-color: transparent;
    opacity: 0.8;
}

#search-submit {
    display: none;
}

select {
    flex: 0 1 auto;
    min-height: 24px;
    height: 24px;
    width: auto;
    min-width: 0;
    padding: 0 10px;
    border: 1px solid #ccc;
    background: linear-gradient(to bottom, #fff 0%, #e6e6e6 100%);
    box-shadow: inset 0 1px 1px #fff, 0 1px 3px rgba(123, 123, 123, 0.39);
    color: #444;
    cursor: pointer;
    line-height: 20px;
    outline: none;
}

select:hover {
    background: #f9ffe5;
}

#language-select,
#version-select,
#compare-select {
    width: auto;
    min-width: 0;
}

#version-select {
    width: 81px;
}

#version-label {
    margin-left: 0;
}

#language-select {
    width: 94px;
}

#compare-select {
    margin-left: 5px;
}

#download-button {
    min-height: 26px;
    height: 26px;
    width: auto;
    min-width: 0;
    margin: 5px;
    padding: 0 10px;
    border: 0;
    border-radius: 2px;
    background: #2196f3;
    box-shadow: none;
    color: #fff;
    font-size: 13px;
    line-height: 26px;
    white-space: nowrap;
}

#download-button:hover {
    border: 0;
    background: #1c83d4;
}

.compare-controls {
    position: relative;
    flex-wrap: nowrap;
    gap: 5px;
    margin-right: 3px;
}

.compare-toggle {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.compare-toggle-box {
    position: relative;
    width: 18px;
    height: 18px;
    margin-left: 4px;
    border-radius: 2px;
    background: linear-gradient(to bottom, #fff 0%, #dadada 100%);
    box-shadow: inset 0 1px 1px #fff, 0 1px 3px rgba(2, 2, 2, 0.39);
    cursor: pointer;
}

.compare-toggle-box::after {
    content: "";
    position: absolute;
    box-sizing: content-box;
    top: 4px;
    left: 4px;
    width: 8px;
    height: 5px;
    border: 3px solid #0065a9;
    border-top: 0;
    border-right: 0;
    opacity: 0;
    transform: rotate(-45deg);
}

.compare-toggle:checked + .compare-toggle-box::after {
    opacity: 1;
}

.compare-toggle:disabled + .compare-toggle-box {
    cursor: not-allowed;
    opacity: 0.55;
}

.ai-toggle-group {
    gap: 4px;
    align-items: flex-start;
    margin: 0 4px 0 0;
    padding: 0;
    border: 0;
}

.ai-toggle {
    flex-direction: row-reverse;
    align-items: flex-start;
    gap: 0;
}

.ai-toggle + .ai-toggle {
    margin-left: 4px;
}

.ai-toggle-text {
    position: relative;
    top: -1px;
    display: flex;
    box-sizing: content-box;
    align-items: center;
    height: 26px;
    border-bottom: 1px dotted rgba(33, 96, 159, 0.35);
    color: #6f6f6f;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.2px;
    line-height: 16px;
    margin-right: 5px;
    text-shadow: 1px 1px 1px #fff;
    cursor: help;
}

#ai-search-toggle-text::before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 4px;
    background: url("../resources/ai/ic_ai_filled_24.svg") no-repeat center;
    vertical-align: middle;
}

.ai-toggle-switch {
    width: 28px;
    height: 16px;
    margin: 4px 5px 0 0;
    border-radius: 8px;
    background: #ddd;
    box-shadow: none;
}

.ai-toggle-switch::after {
    top: 2px;
    left: 2px;
    width: 12px;
    height: 12px;
}

.ai-toggle input:checked + .ai-toggle-switch {
    background: #2196f3;
}

.ai-toggle input:checked + .ai-toggle-switch::after {
    transform: translateX(12px);
}

.app-body {
    display: grid;
    grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
    gap: 0;
    background: #fff;
}

.sidebar {
    position: relative;
    width: auto;
    min-height: 0;
    overflow: visible;
    border-right: 1px solid #e5e5e5;
    background: #fdfdfd;
    box-shadow: none;
}

.sidebar-head {
    display: none;
}

.tree-nav {
    height: 100%;
    padding: 10px 15px 10px 10px;
    background: #fdfdfd;
    color: #000;
    font-size: 14px;
}

.tree-list {
    display: block;
}

.tree-list .tree-list {
    position: relative;
    margin-left: 11px;
    padding: 0 0 0 11px;
    border-left: 1px solid #bbb;
}

.tree-row {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 0;
}

.tree-toggle,
.tree-spacer,
.tree-link {
    min-height: 25px;
}

.tree-toggle,
.tree-spacer {
    display: block;
    width: 24px;
    height: 25px;
    border-radius: 0;
    background: url("../resources/help-round.png") no-repeat center 5px / 16px;
}

.tree-toggle {
    background-image: url("../resources/plus-round.png");
}

.tree-toggle[aria-expanded="true"] {
    background-image: url("../resources/minus-round.png");
}

.tree-toggle::before {
    display: none;
}

.tree-toggle:hover {
    background-color: transparent;
}

.tree-link {
    display: block;
    width: 100%;
    padding: 1px 1px 1px 2px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #004675;
    font-size: 14px;
    font-weight: 400;
    line-height: 23px;
}

.tree-link:hover,
.tree-link.active,
.tree-link.active.item-new,
.tree-link.active.item-change,
.tree-link.active.children-change {
    border: 0;
    background: transparent;
    box-shadow: none;
    color: #e32e00;
    font-weight: 400;
}

.tree-link.item-new::before,
.tree-link.item-change::before,
.tree-link.children-change::after {
    content: "";
    position: absolute;
    left: -5px;
    top: 9px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    opacity: 0.8;
}

.tree-link.item-new::before {
    background: #000;
}

.tree-link.item-change::before {
    background: #008805;
}

.tree-link.children-change::after {
    background: #9c27b0;
}

.sidebar-resizer {
    z-index: 9;
    top: 0;
    right: -3px;
    bottom: 0;
    width: 4px;
    border-right: 1px solid #e5e5e5;
    border-left: 1px solid #e5e5e5;
    background: #f9f9f9;
    cursor: e-resize;
}

.sidebar-resizer::before,
.sidebar-resizer::after {
    display: none;
}

.sidebar-resizer:hover,
.sidebar-resizer:focus-visible,
.sidebar-resizer.is-active {
    background: #00bcd4;
}

.content-area,
.content-area.ai-mode {
    position: relative;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 0;
    min-height: 0;
    padding: 0;
    overflow: hidden;
    background: #fff;
}

.status-banner {
    z-index: 20;
    width: min(600px, 95%);
    margin: 5px auto;
    padding: 5px;
    border: 0;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 0 5px 0 rgba(169, 167, 167, 0.75);
    color: #4a4a4a;
    font-size: 16px;
    line-height: 20px;
}

.status-banner.is-info,
.status-banner.is-error {
    border: 0;
    background: #fff;
    color: #4a4a4a;
}

.reader-card {
    min-height: 0;
    height: 100%;
    border: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
}

.reader-header {
    position: relative;
    z-index: 10;
    flex-direction: row;
    flex: 0 0 60px;
    min-height: 60px;
    padding: 5px 10px;
    border: 0;
    background: #fff;
    box-shadow: 0 1px 5px 0 #c4c4c4;
}

.reader-heading {
    align-self: center;
}

.reader-meta {
    display: none;
}

.reader-title {
    margin: 0;
    color: #130654;
    font-size: 30px;
    font-weight: 400;
    line-height: 49px;
}

.reader-content {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
    padding: 0;
    overflow: hidden;
    background: #fff;
    text-align: left;
}

.reader-content-document {
    overflow: hidden;
}

.doc-article,
.search-results {
    width: 100%;
    max-width: none;
    height: 100%;
    margin: 0;
    padding-top: 0;
    color: #333;
    font-size: 15px;
    line-height: 1.65;
}

.doc-article {
    grid-template-columns: minmax(0, 1fr) var(--toc-width);
    column-gap: 0;
}

.doc-article *,
.doc-article *::before,
.doc-article *::after {
    box-sizing: content-box;
}

.doc-article > main,
.doc-article > main[class*="col-"] {
    flex: 1 1 auto;
    box-sizing: border-box;
    width: calc(100% - 3px);
    max-width: none;
    height: 100%;
    padding-top: 0;
    padding-right: 10px;
    padding-bottom: 50px;
    padding-left: 10px;
    overflow-x: auto;
    overflow-y: auto;
}

.doc-article-no-toc > main,
.doc-article-no-toc > main[class*="col-"] {
    width: calc(100% - 3px);
}

.doc-article section {
    margin-bottom: 0;
}

.doc-article h1,
.doc-article h2,
.doc-article h3,
.doc-article h4,
.doc-article h5,
.doc-article h6 {
    padding-bottom: 0;
    border-bottom: 0;
    text-align: left;
}

.doc-article h1 {
    font-size: 30px;
    font-weight: 400;
}

.doc-article h2 {
    margin: 0.83em 0;
    color: #130654;
    font-size: 26px;
    font-weight: 400;
    line-height: 1.65;
}

.doc-article h3 {
    margin: 1em 0;
    color: #333;
    font-size: 22px;
    font-weight: 400;
    line-height: 1.65;
}

.doc-article p,
.doc-article li,
.doc-article td,
.doc-article th,
.doc-article dd,
.doc-article blockquote,
.doc-article .line,
.doc-article .line-block,
.doc-article .guilabel,
.doc-article .program,
.doc-article .std,
.doc-article .std-ref {
    color: #333;
}

.doc-article p {
    margin: 1em 0;
}

.doc-article ul,
.doc-article ol,
.doc-article ul.simple,
.doc-article ol.simple {
    margin: 1em 0;
    padding-left: 40px;
}

.doc-article ul,
.doc-article ul.simple {
    list-style: disc !important;
}

.doc-article li {
    margin-left: 10px !important;
}

.doc-article li + li {
    margin-top: 0;
}

.doc-article li > p {
    margin-top: 2px;
    margin-bottom: 0;
}

.doc-article .line-block {
    margin-top: 1em;
    margin-bottom: 1em;
}

.doc-article blockquote {
    clear: left;
    margin: 0 0 1rem;
    padding: 0 1em;
    border: 0;
}

.doc-article blockquote > div {
    display: block;
    gap: normal;
}

.doc-article li::marker {
    color: #333;
}

.doc-article img {
    max-width: 100%;
    padding: 5px 0;
    border: 0;
    border-radius: 0;
    vertical-align: middle;
}

.doc-article table {
    width: auto;
    table-layout: auto;
    border-collapse: collapse;
}

.doc-article th,
.doc-article td {
    width: auto;
    padding: 0;
    border: 0;
    border-top: 1px solid #dee2e6;
}

.doc-article table.table th,
.doc-article table.table td {
    padding: 0.75rem;
    border-top: 1px solid #dee2e6;
    border-right: 1px solid #dee2e6;
}

.doc-article table.table th:first-child,
.doc-article table.table td:first-child {
    border-left: 1px solid #dee2e6;
}

.doc-article table.table tr:last-child {
    border-bottom: 1px solid #dee2e6;
}

.doc-article thead th {
    background: transparent;
}

.doc-article pre {
    margin: 1.5em 0;
    padding: 10px;
    border: 1px solid #c9c9c9;
    border-radius: 0;
    background: #fafafa;
    box-shadow: 1px 1px 1px #d8d8d8;
    color: #222;
    font-size: 13px;
    line-height: 1.2em;
}

.doc-article code:not(pre code) {
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: #0063b1;
    font-size: 16px;
}

.doc-article .guilabel {
    display: inline;
    min-height: 0;
    margin: auto 2px;
    padding: 2.4px 6px;
    border: 1px solid #7fbbe3;
    border-radius: 4px;
    background: #e7f2fa;
    font-family: sans-serif;
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
}

.doc-article main a,
.doc-article main a.reference,
.doc-article main a.internal,
.doc-article main a.external,
.doc-article main a.std-ref,
.doc-article main a.guilabel,
.doc-article main a.menuselection,
.doc-article main a.kbd {
    color: #004675;
    font-weight: inherit;
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

.doc-article main a:hover,
.doc-article main a.reference:hover,
.doc-article main a.internal:hover,
.doc-article main a.external:hover,
.doc-article main a.std-ref:hover,
.doc-article main a.guilabel:hover,
.doc-article main a.menuselection:hover,
.doc-article main a.kbd:hover {
    color: #e32e00;
    text-decoration: none;
    border-bottom-color: #e32e00;
}

.doc-article .bd-toc {
    position: static;
    min-width: var(--toc-width);
    max-height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
}

.doc-article .tocsection {
    width: 100%;
    padding: 15px 0 0 10px;
    color: #a4a6a7;
    font-size: inherit;
}

.doc-article #bd-toc-nav {
    padding-left: 0;
    border-left: 0;
}

.doc-article .section-nav {
    margin: 5px 0 0;
    padding: 0;
    border-left: 1px solid #eee;
}

.doc-article .section-nav ul {
    padding-left: 1rem;
}

.doc-article li.toc-entry {
    margin-bottom: 8px !important;
}

.doc-article .toc-h4.toc-entry {
    margin-bottom: 0 !important;
}

.doc-article .toc-entry > a,
.doc-article .toc-entry .nav-link {
    color: #666;
    line-height: 15px;
}

.doc-article ul.section-nav .toc-entry > a.nav-link,
.doc-article ul.section-nav .toc-entry > .nav-link {
    font-size: 13.6px !important;
    line-height: 15px !important;
}

.doc-article .toc-entry > a:hover,
.doc-article .toc-entry .nav-link:hover,
.doc-article .toc-entry > a.active,
.doc-article .toc-entry .nav-link.active {
    color: #000;
}

.doc-article .admonition,
.doc-article details.sd-dropdown,
.doc-article .sd-card {
    border-radius: 0.1rem;
}

.doc-article .admonition {
    margin: 10px 0;
    padding: 0 0.6rem 0.8rem !important;
    overflow: hidden;
    border: 0;
    border-left: 0.2rem solid;
    border-radius: 0.1rem;
    background: transparent;
    box-shadow: 0 0.2rem 0.5rem rgb(0 0 0 / 5%), 0 0 0.05rem rgb(0 0 0 / 10%);
    break-inside: avoid;
    transition: color 0.25s, background-color 0.25s, border-color 0.25s;
}

.doc-article .admonition-title {
    position: relative;
    margin: 0 -0.6rem !important;
    padding: 0.4rem 0.6rem 0.4rem 2rem;
    background: transparent;
    font-weight: 700;
}

.doc-article .admonition p.admonition-title ~ * {
    padding: 0 1.4rem;
}

.doc-article .admonition p.admonition-title ~ ul,
.doc-article .admonition p.admonition-title ~ ol {
    padding: 0 1.4rem;
}

.doc-article .admonition .admonition-title + * {
    margin-top: 0.4em;
}

.doc-article .admonition > *:last-child {
    margin-bottom: 0;
}

.doc-article details.sd-dropdown {
    position: relative;
}

.doc-article details.sd-dropdown.sd-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    margin: 0;
    overflow: visible;
    border: 1px solid rgba(0, 0, 0, 0.125);
    border-radius: 0.25rem;
    background: transparent;
    color: inherit;
    word-wrap: break-word;
}

.doc-article details.sd-dropdown:not([open]).sd-card {
    padding: 0;
    border: 0;
}

.doc-article details.sd-dropdown summary {
    padding: 1em;
    list-style: none;
    background: transparent;
}

.doc-article details.sd-dropdown .sd-summary-title {
    padding-right: 3em !important;
    font-weight: 700;
    user-select: none;
}

.doc-article details.sd-dropdown:not([open]) > .sd-card-header {
    border: 1px solid rgba(0, 0, 0, 0.125);
    border-radius: 0.25rem;
}

.doc-article details.sd-dropdown .sd-summary-up,
.doc-article details.sd-dropdown .sd-summary-down,
.doc-article details.sd-dropdown .sd-summary-up svg,
.doc-article details.sd-dropdown .sd-summary-down svg,
.doc-article details.sd-dropdown .sd-summary-icon {
    display: block !important;
}

.doc-article details.sd-dropdown .sd-summary-icon {
    margin-right: 0.5em;
}

.doc-article details.sd-dropdown .sd-summary-up,
.doc-article details.sd-dropdown .sd-summary-down {
    position: absolute;
    top: 1em;
    right: 1em;
    pointer-events: none;
}

.doc-article details.sd-dropdown:not([open]) > .sd-summary-title .sd-summary-up,
.doc-article details.sd-dropdown[open] > .sd-summary-title .sd-summary-down {
    visibility: hidden;
}

.doc-article .prev-next-area {
    display: block;
    margin: 20px 0;
}

.doc-article .prev-next-area p {
    margin: 0 0.3em;
    line-height: 1.3em;
}

.doc-article .prev-next-area i {
    display: inline-block;
    font-size: 1.2em;
}

.doc-article .prev-next-area a {
    position: static;
    display: flex;
    align-items: center;
    justify-content: normal;
    gap: 0;
    min-height: 0;
    max-width: 45%;
    padding: 10px;
    border: 0;
    border-bottom: 1px solid transparent;
    border-radius: 0;
    background: #fff;
    color: #004675;
    overflow-x: hidden;
    text-decoration: none;
    transition: none;
}

.doc-article .prev-next-area a:hover {
    border-bottom-color: transparent;
    background: #fff;
    text-decoration: none;
}

.doc-article .prev-next-area a .prev-next-info {
    display: block;
    gap: 0;
    margin: 0 0.5em;
}

.doc-article .left-prev {
    float: left;
}

.doc-article .right-next {
    float: right;
}

.doc-article .left-prev::before,
.doc-article .right-next::after {
    display: none;
    content: none;
}

.doc-article .prev-next-subtitle {
    color: #000;
    font-size: inherit;
    letter-spacing: normal;
    text-transform: capitalize;
}

.doc-article .prev-next-title {
    margin: 0 0.3em;
    border-bottom: 1px solid transparent;
    color: #005b81;
    font-size: 1.1em;
    font-weight: 600;
}

.doc-article .prev-next-area a:hover .prev-next-title {
    border-bottom-color: #e32e00;
    color: #e32e00;
}

.doc-article .menuselection,
.doc-article .kbd {
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: grey;
    font-style: italic;
}

.ai-panel,
.search-ai-summary {
    margin: 15px 10px;
    padding: 10px;
    border: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.1);
}

.ai-panel-title,
.search-ai-summary-title {
    color: #130654;
    font-size: 16px;
    font-weight: 400;
}

.app-footer {
    min-height: 25px;
    height: 25px;
    padding: 0 5px;
    border-top: 1px solid #ccc;
    background: #fff;
    box-shadow: 0 2px 5px 0 #d1d1d1;
    color: #6f6f6f;
    font-size: 12px;
    line-height: 22px;
    letter-spacing: 0.2px;
    flex-flow: row nowrap;
    justify-content: flex-end;
    gap: 0;
}

.footer-legend,
.footer-meta {
    width: auto;
    flex: 0 0 auto;
    flex-wrap: nowrap;
    gap: 5px;
    margin: 0;
    justify-content: flex-end;
    text-align: right;
}

.footer-legend {
    margin-left: auto;
    margin-right: 5px;
}

.legend-dot {
    width: 8px;
    height: 8px;
}

.legend-dot-added {
    background: #000;
}

.legend-dot-changed {
    background: #008805;
}

.legend-dot-children {
    background: #9c27b0;
}

.footer-feedback {
    padding: 0 10px;
    background: #2196f3;
    color: #fff;
    text-decoration: none;
}

.footer-feedback:hover {
    background: #1c83d4;
    text-decoration: none;
}

.loading-overlay {
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: none;
}

.spinner {
    display: flex;
    width: auto;
    height: auto;
    border: 0;
    border-radius: 0;
    animation: none;
}

.spinner span {
    position: relative;
    display: flex;
    width: 20px;
    height: 20px;
    margin: 7px;
    border-radius: 50%;
    background: #3f90b9;
}

.spinner span::before {
    content: "";
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: inherit;
    opacity: 0.7;
    animation: classic-loader-scale 2s infinite cubic-bezier(0, 0, 0.49, 1.02);
}

.spinner span:nth-child(1)::before { animation-delay: 0.2s; }
.spinner span:nth-child(2) { background: #eec368; }
.spinner span:nth-child(2)::before { animation-delay: 0.4s; }
.spinner span:nth-child(3) { background: #3db39e; }
.spinner span:nth-child(3)::before { animation-delay: 0.6s; }
.spinner span:nth-child(4) { background: #eead68; }
.spinner span:nth-child(4)::before { animation-delay: 0.8s; }
.spinner span:nth-child(5) { background: #f44336; }
.spinner span:nth-child(5)::before { animation-delay: 1s; }

@keyframes classic-loader-scale {
    0% { transform: scale(1); }
    50%, 75% { transform: scale(2.5); }
    78%, 100% { opacity: 0; }
}

@media (min-width: 801px) {
    .reader-content {
        flex: 0 0 calc(100% - 57px);
    }
}

@media (max-width: 1000px) {
    .brand-link {
        display: none;
    }

    .mobile-only {
        display: inline-flex;
    }

    .icon-button {
        width: 34px;
        height: 34px;
        border-radius: 0;
    }

    .icon-button span {
        width: 30px;
        height: 3px;
        border-radius: 0;
        background: #544b83;
    }

    .app-body {
        grid-template-columns: minmax(0, 1fr);
    }

    .reader-card {
        width: calc(100% - 4px);
        margin-left: 4px;
    }

    .sidebar {
        position: fixed;
        inset: 36px auto 25px 0;
        z-index: 60;
        width: min(100vw, var(--sidebar-width));
        transform: translateX(-100%);
        border-right: 1px solid #c3c3c3;
        box-shadow: none;
    }

    body.sidebar-open .sidebar {
        transform: translateX(0);
    }
}

@media (max-width: 859px) {
    #compare-label {
        display: none;
    }
}

@media (max-width: 800px) {
    .reader-header {
        flex-basis: auto;
        width: calc(100% - 4px);
        min-height: 31px;
        padding-bottom: 5px;
    }

    .reader-title,
    .doc-article h1 {
        font-size: 20px;
        line-height: 20px;
    }

    .doc-article h2,
    .doc-article h3,
    .doc-article h4 {
        font-size: 18px;
        line-height: 18px;
    }

    .doc-article {
        display: block;
        height: 100%;
    }

    .reader-content {
        margin-top: 2px;
    }

    .doc-article > main,
    .doc-article > main[class*="col-"] {
        height: 100%;
        padding-bottom: 0;
        overflow: auto;
    }

    .doc-article-no-toc > main,
    .doc-article-no-toc > main[class*="col-"] {
        width: calc(100% - 2.5px);
    }

    .doc-article .bd-toc {
        display: none;
    }

    .doc-article .prev-next-area {
        display: flex;
        flex-flow: column nowrap;
    }

    .doc-article .prev-next-area a {
        width: 100%;
        max-width: 100%;
    }

    .doc-article .prev-next-area a.left-prev {
        justify-content: flex-start;
    }

    .doc-article .prev-next-area a.right-next {
        justify-content: flex-end;
    }

    .doc-article .prev-next-info {
        font-size: 14px;
    }
}

@media (max-width: 778px) {
    #version-label,
    #language-label {
        display: none;
    }
}

@media (max-width: 679px) {
    .hotfix-controls,
    .compare-controls {
        display: none;
    }
}

@media (max-width: 520px) {
    .search-cluster {
        position: fixed;
        z-index: 99;
        top: 35px;
        left: 0;
        width: 100%;
        min-height: 36px;
        height: auto;
        box-sizing: content-box;
        align-items: flex-start;
        margin: 4px 10px 0 0;
        padding: 0 15px 0 0;
        border-right: 0;
        border-bottom: 1px solid #c3c3c3;
        background: #fff;
    }

    .search-cluster::after {
        display: none;
    }

    .search-cluster-inner {
        text-align: center;
    }

    .search-input-wrap {
        flex: 0 1 95%;
        width: 95%;
        min-width: 0;
    }

    .reader-card {
        padding-top: 38px;
    }
}

/* Keep the reader content from changing the classic toolbar geometry. */
.app-shell {
    grid-template-rows: 36px minmax(0, 1fr) 25px !important;
}

.app-shell > .app-header {
    position: sticky !important;
    z-index: 50 !important;
    top: 0 !important;
    box-sizing: border-box !important;
    align-self: start;
    height: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
    padding: 0 5px 0 2px !important;
}

.app-shell > .app-header .control-bar {
    box-sizing: border-box;
    align-items: center;
    height: 35px !important;
    min-height: 35px !important;
    max-height: 35px !important;
}

/* Classic search and AI result views. */
.reader-content-search {
    display: block;
    flex: 1 1 auto;
    padding: 0 10px;
    overflow: auto;
}

.search-results {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
    overflow: visible;
    color: #333;
    font-size: 15px;
    line-height: 1.65;
}

.search-card {
    display: block;
    margin: 10px 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.search-card-button {
    display: block;
    padding: 0;
    border: 0;
    background: transparent;
    color: #004675;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    text-align: left;
    text-decoration: none;
}

.search-card-button:hover {
    color: #e32e00;
    text-decoration: none;
}

.search-card-snippet {
    margin: 5px 0 0;
    color: #888;
    font-size: 15px;
    line-height: 1.65;
}

.search-card mark,
.search-card-button mark {
    padding: 0;
    background: transparent;
    color: inherit;
}

.content-area.ai-mode {
    grid-template-rows: minmax(0, 1fr);
    background: #fff;
}

.ai-panel {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-height: 0;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
}

.ai-panel-header {
    z-index: 10;
    flex: 0 0 60px;
    min-height: 60px;
    padding: 5px 10px;
    background: #fff;
    box-shadow: 0 1px 5px 0 #c4c4c4;
}

.ai-panel-kicker {
    display: none;
}

.ai-panel-title {
    margin: 0;
    color: #130654;
    font-size: 30px;
    font-weight: 400;
    line-height: 49px;
}

.ai-panel-meta {
    flex: 0 0 auto;
    margin: 5px 10px 0;
    color: #4a4a4a;
    font-size: 15px;
    line-height: 20px;
}

.ai-panel-meta:empty {
    display: none;
}

.ai-panel-body {
    display: flex;
    flex: 1 1 auto;
    flex-flow: column nowrap;
    min-width: 0;
    min-height: 0;
    overflow: auto;
    padding: 0 10px;
}

.ai-panel-results {
    order: 3;
    display: block;
    flex: 0 0 auto;
    min-height: auto;
    margin: 0;
    padding: 0;
    overflow: visible;
}

.ai-result-item {
    display: block;
    margin: 10px 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.ai-result-title {
    margin: 0 0 5px;
    color: #717171;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.3;
}

.ai-result-title a {
    color: #004675;
    font-weight: 700;
    text-decoration: none;
}

.ai-result-title a:hover {
    color: #e32e00;
    text-decoration: none;
}

.ai-result-quote {
    margin: 0;
    padding: 0;
    color: #888;
    font-size: 15px;
    line-height: 1.65;
}

.ai-panel-stream,
.search-ai-summary {
    order: 2;
    display: flex;
    flex: 0 1 auto;
    flex-flow: column nowrap;
    min-width: 0;
    margin: 15px 0;
    padding: 10px;
    border: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: 0 2px 10px 0 rgb(0 0 0 / 10%);
}

.ai-panel-stream {
    flex: 0 0 auto;
}

.search-ai-summary {
    display: block;
    margin-right: 0;
    margin-left: 0;
}

.ai-panel-summary-title,
.search-ai-summary-title {
    display: flex;
    align-items: center;
    min-height: 24px;
    margin: 0 0 10px;
    padding: 0;
    border: 0;
    color: #130654;
    font-family: Roboto;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.65;
}

.ai-panel-summary-title::before,
.search-ai-summary-title::before {
    content: "";
    display: inline-block;
    width: 24px;
    height: 24px;
    margin-right: 6px;
    background: url("../resources/ai/ic_ai_filled_24.svg") no-repeat center / 24px;
}

.ai-panel-stream-content,
.search-ai-summary-content {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    min-height: 40px;
    color: #000;
    font-family: Roboto;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.7;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.ai-panel-stream-content > *,
.search-ai-summary-content > * {
    max-width: 100%;
}

.ai-panel-stream-content pre,
.search-ai-summary-content pre {
    white-space: pre-wrap;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.ai-panel-stream-content img,
.search-ai-summary-content img,
.ai-panel-stream-content table,
.search-ai-summary-content table {
    max-width: 100%;
}

.ai-panel-stream a,
.search-ai-summary-content a {
    color: #004675;
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

.ai-panel-stream a:hover,
.search-ai-summary-content a:hover {
    color: #e32e00;
    border-bottom-color: #e32e00;
}

.ai-status-card {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 24px 0 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.ai-panel-stream .ai-status-card,
.search-ai-summary .ai-status-card {
    margin-top: 0;
}

.ai-status-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid #d7e9fb;
    border-top-color: #2196f3;
    border-radius: 50%;
}

.ai-status-text {
    margin: 0;
    color: #2f3440;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
}

.ai-thinking-bounce {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 20px;
}

.ai-thinking-bounce span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #006bb3;
    animation: ai-bounce 1.4s infinite ease-in-out;
}

.ai-thinking-bounce span:nth-child(2) {
    animation-delay: 0.2s;
}

.ai-thinking-bounce span:nth-child(3) {
    animation-delay: 0.4s;
}

.icon-close {
    width: 25px;
    height: 25px;
    margin: 14px 0 0 auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #6f6f6f;
    font-size: 20px;
    line-height: 25px;
}

.icon-close:hover {
    background: transparent;
    color: #e32e00;
}

.ai-panel-header .icon-close {
    display: none;
}

/* Match the compact classic documentation rendering. */
.doc-article img,
.doc-article blockquote img {
    display: inline;
    max-width: 100%;
    padding: 5px 0;
    border: 0 !important;
    border-radius: 0;
    background: transparent;
    box-shadow: none !important;
    vertical-align: middle;
}

.code-block-shell {
    position: relative;
}

.copy-button {
    position: absolute;
    z-index: 1;
    top: 0.3em;
    right: 0.5em;
    display: flex;
    width: 1.7em;
    min-height: 0;
    height: 1.7em;
    padding: 0;
    border: 1px solid #e1e1e1;
    border-radius: 0.4em;
    outline: 0;
    background: #f5f5f5;
    opacity: 0;
    transition: opacity 0.3s, border-color 0.3s, background-color 0.3s;
    cursor: pointer;
    user-select: none;
}

.copy-button img {
    width: 100%;
    padding: 0 !important;
    cursor: pointer;
    pointer-events: none;
}

.code-block-shell:hover .copy-button,
.copy-button:focus,
.copy-button.copied {
    opacity: 1;
}

.copy-button:hover,
.copy-button:focus {
    background: #e9e9e9;
    color: inherit;
}

.doc-article .menuselection {
    display: inline;
    min-height: 0;
    margin: auto 2px;
    padding: 2.4px 6px;
    border: 1px solid #fce9e9;
    border-radius: 4px;
    background: #fff5f5;
    box-shadow: none;
    color: inherit;
    font: 80% sans-serif;
    font-style: normal;
    font-weight: normal !important;
}

.tree-list .tree-list {
    border-left: 0;
}

.doc-article .toc-h2 > a,
.doc-article .toc-h2 > .nav-link {
    font-size: 13.6px !important;
    line-height: 15px !important;
}

.doc-article .toc-h3 > a,
.doc-article .toc-h3 > .nav-link,
.doc-article .toc-h4 > a,
.doc-article .toc-h4 > .nav-link {
    font-size: 12px !important;
    line-height: 15px !important;
}

/* Restore classic Sphinx design-system components. */
.doc-article .sd-card-body {
    flex: 1 1 auto;
    padding: 1rem;
}

.doc-article .admonition.warning .admonition-title {
    background-color: rgba(255, 193, 7, 0.1);
}

.doc-article .admonition.note .admonition-title,
.doc-article .admonition.important .admonition-title {
    background-color: rgba(40, 167, 69, 0.1);
}

.doc-article .admonition.error .admonition-title {
    background-color: rgba(220, 53, 69, 0.1);
}

.doc-article .admonition.seealso .admonition-title {
    background-color: rgba(0, 123, 255, 0.1);
}

.doc-article .admonition .admonition-title::before {
    position: absolute;
    left: 0.6rem;
    width: 1rem;
    height: 1rem;
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}

.doc-article .admonition.warning .admonition-title::before {
    color: rgb(255, 193, 7);
    content: "\f071";
}

.doc-article .admonition.note .admonition-title::before {
    color: rgb(40, 167, 69);
    content: "\f0eb";
}

.doc-article .admonition.important .admonition-title::before {
    color: rgb(40, 167, 69);
    content: "\f06a";
}

.doc-article .admonition.error .admonition-title::before {
    color: rgb(220, 53, 69);
    content: "\f057";
}

.doc-article .admonition.seealso .admonition-title::before {
    color: rgb(0, 123, 255);
    content: "\f05a";
}

.tree-toggle,
.tree-toggle:hover {
    background: transparent url("../resources/plus-round.png") no-repeat center 5px / 16px;
}

.tree-toggle[aria-expanded="true"],
.tree-toggle[aria-expanded="true"]:hover {
    background-image: url("../resources/minus-round.png");
}

/* Comparison results use a separate summary row, as in the classic reader. */
.reader-header {
    flex: 0 0 auto;
    flex-wrap: wrap;
    align-items: center;
}

.reader-heading,
.compare-toolbar {
    flex: 0 0 100%;
}

.compare-toolbar {
    justify-content: flex-start;
    padding: 0 0 6px;
}

.compare-summary {
    max-width: none;
    text-align: left;
}

/* Keep the comparison control at the classic 18px checkbox size. */
.compare-controls {
    align-items: center;
}

.compare-toggle-box {
    flex: 0 0 18px;
    box-sizing: border-box;
    margin-top: 0;
    margin-bottom: 0;
}

.compare-toggle:focus-visible + .compare-toggle-box {
    outline: 2px solid #0065a9;
    outline-offset: 2px;
}

/* The right contents panel keeps its visible hierarchy and can be resized. */
.doc-article {
    position: relative;
}

.doc-article .tocsection,
.doc-article .section-nav {
    border-left: 1px solid #eee;
}

.doc-article .toc-resizer {
    position: absolute;
    top: 0;
    right: var(--toc-width);
    bottom: 0;
    z-index: 2;
    width: 4px;
    box-sizing: border-box;
    background: #f9f9f9;
    border-right: 1px solid #e5e5e5;
    border-left: 1px solid #e5e5e5;
    cursor: e-resize;
    touch-action: none;
}

.doc-article .toc-resizer:hover,
.doc-article .toc-resizer.is-active,
.doc-article .toc-resizer:focus-visible {
    background: #00bcd4;
    outline: none;
}

body.toc-resizing {
    cursor: e-resize;
    user-select: none;
}

/* Restore compact list flow and the original nested-list alignment. */
.doc-article .admonition.warning {
    border-left-color: rgb(255, 193, 7);
}

.doc-article .admonition.note,
.doc-article .admonition.important {
    border-left-color: rgb(40, 167, 69);
}

.doc-article .admonition.error {
    border-left-color: rgb(220, 53, 69);
}

.doc-article .admonition.seealso {
    border-left-color: rgb(0, 123, 255);
}

.doc-article li {
    margin-left: 10px !important;
}

.doc-article li > ul,
.doc-article li > ol {
    margin-top: 0;
    margin-bottom: 0;
}

/* Match the classic rendering of inline literal fragments. */
.doc-article code:not(pre code) {
    color: #0000ff;
    font-family: monospace;
    font-size: 13.125px;
}

.doc-article code:not(pre code) > .pre {
    color: #004eff !important;
    font-size: 13px;
}

/* Open Sphinx Design cards retain the divider between header and body. */
.doc-article details.sd-dropdown[open].sd-card > .sd-card-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

/* Sphinx puts the expand/collapse arrows inside the summary heading. */
.doc-article details.sd-dropdown > .sd-summary-title .sd-summary-up svg,
.doc-article details.sd-dropdown > .sd-summary-title .sd-summary-down svg,
.doc-article details.sd-dropdown > .sd-summary-title .sd-octicon {
    display: block !important;
    opacity: 0.6;
}

.doc-article details.sd-dropdown > .sd-summary-title .sd-summary-up,
.doc-article details.sd-dropdown > .sd-summary-title .sd-summary-down {
    display: block !important;
    position: absolute;
    top: 1em;
    right: 1em;
    pointer-events: none;
}

.doc-article details.sd-dropdown:not([open]) > .sd-summary-title .sd-summary-up,
.doc-article details.sd-dropdown[open] > .sd-summary-title .sd-summary-down {
    visibility: hidden;
}

.doc-article details.sd-dropdown > .sd-summary-title:hover .sd-summary-up svg,
.doc-article details.sd-dropdown > .sd-summary-title:hover .sd-summary-down svg {
    opacity: 1;
}

@media (max-width: 800px) {
    .doc-article .toc-resizer {
        display: none;
    }
}

@media (max-width: 800px) {
    .ai-panel-header {
        flex-basis: auto;
        width: calc(100% - 4px);
        min-height: 31px;
        padding-bottom: 5px;
    }

    .ai-panel-title {
        font-size: 20px;
        line-height: 20px;
    }

    .ai-panel-results {
        padding: 0;
    }

    .ai-panel-body {
        padding: 0 10px 50px;
    }

    .ai-panel-stream {
        margin: 15px 0;
    }

    .search-ai-summary {
        margin-right: 0;
        margin-left: 0;
    }
}

/* Classic comparison layout. */
.reader-card.reader-card-compare {
    position: relative;
}

.reader-card.reader-card-compare .reader-header {
    flex: 0 0 32px;
    min-height: 32px;
    padding: 0;
    box-shadow: none;
}

.reader-card.reader-card-compare .reader-heading {
    display: none;
}

.reader-card.reader-card-compare .compare-toolbar {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    padding: 0;
}

.reader-card.reader-card-compare .compare-summary {
    display: block;
    box-sizing: border-box;
    width: 100%;
    padding: 8px 8px 8px 20px;
    background: #fff;
    color: #130654;
    font-size: 13px;
    font-weight: 100;
    line-height: 20px;
}

.reader-card.reader-card-compare .compare-summary b {
    font-weight: 400;
}

.reader-card.reader-card-compare .reader-content {
    flex: 1 1 auto;
}

.reader-card.reader-card-compare .doc-article h1 {
    margin: 20.1px 0;
    color: #333;
    font-size: 30px;
    font-weight: 700;
    line-height: 49.5px;
}

.reader-card.reader-card-compare .doc-article ins,
.reader-card.reader-card-compare .doc-article del {
    position: relative;
    z-index: 2;
    display: inline-block;
    min-width: 10px;
    min-height: 10px;
    padding: 0;
    text-decoration: none !important;
}

.reader-card.reader-card-compare .doc-article ins {
    background: rgb(196, 255, 196);
}

.reader-card.reader-card-compare .doc-article del {
    background: rgb(255, 185, 153);
}

.reader-card.reader-card-compare .doc-article ins > img {
    border: 4px solid rgb(196, 255, 196);
}

.reader-card.reader-card-compare .doc-article del > img {
    border: 4px solid rgb(255, 185, 153);
}

/* Comparison navigation uses the classic floating toolbar. */
#scroll-toolbar {
    display: inline-block;
    box-sizing: content-box;
    position: absolute;
    top: 95px;
    right: 25px;
    z-index: 999;
}

#scroll-toolbar[hidden] {
    display: none;
}

#scroll-toolbar .scroll-btn {
    position: relative;
    display: inline-block;
    box-sizing: content-box;
    width: 26px;
    height: 26px;
    margin-right: 5px;
    padding: 4px;
    border: 0;
    background: #f7f7f7;
    box-shadow: 0 1px 10px 0 rgb(160, 160, 160);
    cursor: pointer;
}

#scroll-toolbar .scroll-btn:hover {
    background: #ececec;
}

#scroll-toolbar .scroll-btn img {
    box-sizing: content-box;
    position: absolute;
    top: 5px;
    left: 5px;
}

.reader-card.reader-card-compare .doc-article .compare-focus {
    outline: 0;
    background: yellow;
}

.reader-card.reader-card-compare .doc-article .compare-focus img {
    border-color: yellow;
}

/* Match the classic comparison checkbox structure. */
.compare-controls {
    display: inline-block;
    position: relative;
    box-sizing: content-box;
    flex: 0 0 auto;
    min-width: 0;
    height: 33px;
    margin: 0;
}

.compare-toggle {
    position: static;
    width: auto;
    height: auto;
    margin: 3px 3px 3px 4px;
    opacity: 1;
    visibility: hidden;
}

.compare-toggle-box {
    position: absolute;
    top: 7px;
    left: 4px;
    box-sizing: content-box;
    margin: 0 5px 0 0;
}

#compare-label {
    display: inline;
    box-sizing: content-box;
    margin: 0 5px;
    padding-right: 5px;
}

#compare-select {
    margin-left: -5px;
    margin-right: 0;
}

@media (max-width: 859px) {
    .compare-controls {
        min-width: 27px;
    }
}

/* Comparison summary geometry matches the classic absolute header. */
.reader-card.reader-card-compare .reader-header {
    position: relative;
    flex: 0 0 32px;
    min-height: 32px;
    height: 32px;
    overflow: visible;
}

.reader-card.reader-card-compare .compare-toolbar {
    position: absolute;
    top: 0;
    z-index: 55;
    display: block;
    width: 100%;
    min-width: 100%;
    padding: 0;
}

.reader-card.reader-card-compare .compare-summary {
    position: relative;
    top: -2px;
    z-index: 10;
    display: block;
    box-sizing: content-box;
    width: calc(100% - 28px);
    min-width: 0;
    margin: 0 0 8.7px;
    padding: 8px 8px 8px 20px;
    background: #fff;
    box-shadow: 0 1px 5px 0 rgb(196, 196, 196);
    color: #130654;
    font-size: 13px;
    font-weight: 100;
    line-height: 21.45px;
}

/* Right-hand contents panel follows the classic Sphinx layout. */
.doc-article .bd-toc {
    align-self: auto;
    min-height: auto;
    max-height: none;
    background: transparent;
}

.doc-article .bd-toc .toc-item {
    min-height: auto;
}

.doc-article .bd-toc .toc-item:last-child {
    display: none;
}

.doc-article .bd-toc .onthispage {
    padding: 15px 24px 0 10px;
}

.doc-article .bd-toc .section-nav {
    display: block;
    margin: 5px 0 0;
    padding: 0;
    border-left: 1px solid #eee;
}

.doc-article .bd-toc #bd-toc-nav {
    flex: 0 1 auto;
    min-height: auto;
    max-height: none;
    padding-left: 0;
    border-left: 0;
}

.doc-article .bd-toc #bd-toc-nav > .section-nav {
    margin: 5px 0 0;
    padding-left: 0;
}

.doc-article .bd-toc li.toc-entry,
.doc-article .bd-toc li.toc-entry:last-child {
    display: block;
    margin-bottom: 8px !important;
    font-size: 13.6px;
    line-height: 22.44px;
}

.doc-article .bd-toc #bd-toc-nav .toc-entry > a,
.doc-article .bd-toc #bd-toc-nav .toc-entry .nav-link {
    display: block;
    padding-right: 20px;
    border-bottom: 0;
    color: #666 !important;
    font-size: 13.6px !important;
    line-height: 15px !important;
    text-decoration: none;
}

.doc-article .bd-toc #bd-toc-nav .toc-entry > a:hover,
.doc-article .bd-toc #bd-toc-nav .toc-entry .nav-link:hover,
.doc-article .bd-toc #bd-toc-nav .toc-entry > a.active,
.doc-article .bd-toc #bd-toc-nav .toc-entry .nav-link.active {
    color: #000 !important;
}
