:root {
    --bg-top: #eff3f8;
    --bg-mid: #f7f9fc;
    --bg-bottom: #e9eef6;
    --panel: rgba(255, 255, 255, 0.88);
    --panel-strong: rgba(255, 255, 255, 0.96);
    --ink: #122033;
    --muted: #56657a;
    --accent: #0b5cab;
    --accent-deep: #0f2f57;
    --accent-soft: #e3eefb;
    --line: rgba(18, 32, 51, 0.1);
    --line-strong: rgba(18, 32, 51, 0.16);
    --shadow: 0 24px 60px rgba(25, 42, 70, 0.10);
    --shadow-soft: 0 12px 28px rgba(25, 42, 70, 0.06);
    --radius-lg: 26px;
    --radius-md: 18px;
    --radius-sm: 14px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Source Han Sans SC", "Noto Sans SC", sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(11, 92, 171, 0.18), transparent 24%),
        radial-gradient(circle at 85% 10%, rgba(15, 47, 87, 0.10), transparent 20%),
        linear-gradient(180deg, var(--bg-top) 0%, var(--bg-mid) 42%, var(--bg-bottom) 100%);
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.site-header,
.page-shell {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 24px;
    padding: 42px 0 20px;
}

.site-title h1,
.hero-card h2 {
    margin: 0;
    font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
    letter-spacing: -0.035em;
}

.site-title h1 {
    font-size: clamp(34px, 4.4vw, 52px);
    color: var(--accent-deep);
}

.site-subtitle {
    margin: 12px 0 0;
    max-width: 760px;
    color: var(--muted);
    line-height: 1.8;
    font-size: 15px;
}

.eyebrow,
.hero-kicker {
    margin: 0 0 10px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.site-nav {
    display: flex;
    gap: 16px;
    align-items: center;
    padding-bottom: 8px;
}

.site-nav a {
    padding: 11px 16px;
    border: 1px solid rgba(11, 92, 171, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: var(--shadow-soft);
    color: var(--accent-deep);
    font-weight: 600;
}

.site-nav a.is-active {
    background: linear-gradient(135deg, rgba(11, 92, 171, 0.22), rgba(15, 47, 87, 0.18));
    border-color: rgba(11, 92, 171, 0.36);
    box-shadow: 0 12px 26px rgba(11, 92, 171, 0.24);
}

.page-shell {
    display: grid;
    gap: 22px;
    padding-bottom: 48px;
    min-width: 0;
}

.path-text {
    font-size: 14px;
    line-height: 1.55;
    overflow-wrap: anywhere;
    word-break: break-word;
    font-family: "JetBrains Mono", "Fira Code", "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.special-entry-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 24px 28px;
}

.special-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 18px;
    border-radius: 14px;
    border: 1px solid rgba(11, 92, 171, 0.22);
    background: rgba(255, 255, 255, 0.96);
    color: var(--accent-deep);
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(25, 42, 70, 0.08);
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.special-link:hover {
    text-decoration: none;
    background: rgba(227, 238, 251, 0.88);
    border-color: rgba(11, 92, 171, 0.32);
    box-shadow: 0 10px 22px rgba(25, 42, 70, 0.10);
}

.special-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.special-card {
    padding: 20px;
    display: grid;
    gap: 12px;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(25, 42, 70, 0.08);
}

.special-card-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.special-card-head h3 {
    margin: 0;
    font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
    color: var(--accent-deep);
    font-size: 24px;
}

.special-card-head span {
    color: var(--muted);
    font-size: 13px;
    white-space: nowrap;
}

.special-card-meta {
    margin: 0;
    color: var(--muted);
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    font-size: 14px;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.special-card-text {
    margin: 0;
    line-height: 1.7;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.special-gap {
    border-left: 3px solid rgba(11, 92, 171, 0.38);
    padding-left: 10px;
    color: var(--accent-deep);
    font-weight: 600;
}

.special-metric-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.special-metric-grid div {
    border: 1px solid rgba(11, 92, 171, 0.14);
    border-radius: 12px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.88);
    display: grid;
    gap: 4px;
}

.special-metric-grid span {
    display: block;
    color: var(--muted);
    font-size: 12px;
}

.special-metric-grid strong {
    font-size: 18px;
    color: var(--accent-deep);
}

.special-card-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    border-top: 1px dashed rgba(11, 92, 171, 0.20);
    padding-top: 10px;
}

.special-foot-note {
    max-width: 72%;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.special-detail-panel {
    padding: 22px;
    display: grid;
    gap: 10px;
}

.special-detail-panel p {
    margin: 0;
    line-height: 1.75;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.database-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: 16px;
}

.database-panel {
    padding: 22px;
    display: grid;
    gap: 14px;
}

.database-card-list {
    display: grid;
    gap: 12px;
}

.database-panel .source-details {
    margin-top: 2px;
}

.database-panel .source-details .database-card-list {
    margin-top: 12px;
}

.database-card {
    padding: 16px;
    border-radius: 14px;
    border: 1px solid rgba(11, 92, 171, 0.12);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 8px 20px rgba(25, 42, 70, 0.05);
}

.database-card strong {
    display: block;
    margin-bottom: 8px;
    color: var(--accent-deep);
    font-size: 16px;
    overflow-wrap: anywhere;
}

.database-card p {
    margin: 0;
    line-height: 1.7;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.database-panel-compact {
    padding: 18px;
    gap: 12px;
}

.database-panel-compact .panel-head {
    margin-bottom: 12px;
}

.database-panel-compact .panel-head h3 {
    font-size: 22px;
}

.database-panel-compact .panel-head span {
    font-size: 13px;
}

.database-panel-compact .database-card-list {
    gap: 10px;
}

.database-panel-compact .database-card {
    padding: 14px;
    border-radius: 12px;
}

.database-panel-compact .database-card strong {
    margin-bottom: 6px;
    font-size: 15px;
}

.database-panel-compact .database-card p {
    font-size: 14px;
    line-height: 1.6;
}

.database-stack-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.database-stack-title {
    margin: 0 0 10px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.special-note-list {
    margin: 0;
    padding-left: 20px;
    display: grid;
    gap: 8px;
}

.special-table td,
.special-table th {
    vertical-align: top;
    line-height: 1.55;
    white-space: normal;
    min-width: 180px;
}

.ad-highlight-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.ad-highlight-card {
    padding: 20px;
    display: grid;
    gap: 10px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(240, 247, 253, 0.98));
}

.ad-highlight-card h4 {
    margin: 0;
    color: var(--accent-deep);
    font-size: 20px;
    letter-spacing: -0.01em;
}

.ad-highlight-main {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: var(--accent-deep);
}

.ad-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ad-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    border: 1px solid rgba(11, 92, 171, 0.2);
    background: rgba(255, 255, 255, 0.9);
    color: var(--accent-deep);
}

.ad-drug-list {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 8px;
}

.ad-drug-list li {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: baseline;
}

.ad-drug-list code {
    font-size: 12px;
    color: var(--muted);
}

.ad-conclusion-list {
    margin: 0;
    padding-left: 22px;
    display: grid;
    gap: 10px;
    line-height: 1.7;
}

.hero-card,
.panel,
.metric-card {
    background: var(--panel);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
}

.hero-card {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.8fr);
    gap: 28px;
    padding: 34px;
    position: relative;
    overflow: hidden;
}

.hero-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(11, 92, 171, 0.08), transparent 38%),
        linear-gradient(0deg, rgba(255, 255, 255, 0.08), transparent);
    pointer-events: none;
}

.hero-copy h2 {
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.08;
    max-width: 780px;
    color: var(--accent-deep);
    overflow-wrap: anywhere;
}

.hero-summary {
    margin: 18px 0 0;
    max-width: 760px;
    font-size: 16px;
    line-height: 1.9;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(11, 92, 171, 0.12);
    color: var(--accent-deep);
    font-size: 13px;
    font-weight: 600;
    box-shadow: var(--shadow-soft);
    overflow-wrap: anywhere;
    word-break: break-word;
}

.hero-aside {
    display: grid;
    gap: 14px;
}

.hero-meta {
    padding: 20px 22px;
    border-radius: var(--radius-md);
    background: linear-gradient(180deg, rgba(244, 248, 253, 0.98), rgba(255, 255, 255, 0.96));
    border: 1px solid rgba(11, 92, 171, 0.10);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.hero-meta span {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 13px;
}

.hero-meta strong {
    display: block;
    font-size: 22px;
    line-height: 1.35;
    color: var(--accent-deep);
    overflow-wrap: anywhere;
    word-break: break-word;
}

.hero-meta .path-text {
    font-size: 13px;
    line-height: 1.55;
    font-weight: 600;
}

.muted {
    color: var(--muted);
}

.section-intro {
    padding: 4px 2px 0;
}

.section-kicker {
    margin: 0 0 8px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.section-intro h3 {
    margin: 0;
    font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
    font-size: 28px;
    letter-spacing: -0.02em;
    color: var(--accent-deep);
}

.section-intro p:last-child {
    margin: 10px 0 0;
    line-height: 1.8;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.metric-card {
    padding: 24px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 249, 253, 0.98));
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.metric-card::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), #74aee6);
}

.metric-label {
    display: block;
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 13px;
    letter-spacing: 0.03em;
}

.metric-card strong {
    display: block;
    margin-bottom: 10px;
    font-size: clamp(30px, 3.2vw, 42px);
    line-height: 1.05;
    color: var(--accent-deep);
}

.metric-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
    font-size: 14px;
}

.panel {
    padding: 24px;
    min-width: 0;
}

.panel-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.detail-grid {
    align-items: start;
}

.detail-grid .panel {
    overflow: hidden;
}

.full-span {
    grid-column: 1 / -1;
}

.json-block {
    margin: 0;
    max-width: 100%;
    overflow: auto;
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid rgba(15, 47, 87, 0.10);
    background: rgba(11, 92, 171, 0.04);
    color: var(--accent-deep);
    font-size: 12px;
    line-height: 1.65;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
    box-sizing: border-box;
}

.source-grid {
    align-items: start;
}

.bottom-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.panel-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: baseline;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.panel-head h3 {
    margin: 0;
    font-size: 24px;
    color: var(--accent-deep);
}

.panel-head span {
    color: var(--muted);
    font-size: 14px;
    overflow-wrap: anywhere;
}

.source-panel {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 254, 0.96));
}

.source-rank-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin: 18px 0 16px;
}

.source-rank-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border-radius: var(--radius-md);
    background: rgba(15, 47, 87, 0.04);
    border: 1px solid rgba(15, 47, 87, 0.12);
    min-height: 96px;
    min-width: 0;
}

.rank-badge {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(11, 92, 171, 0.15);
    color: var(--accent-deep);
    font-weight: 700;
    font-size: 18px;
}

.rank-content strong {
    display: block;
    font-size: 16px;
    margin-bottom: 4px;
    color: var(--accent-deep);
    overflow-wrap: anywhere;
}

.rank-content {
    min-width: 0;
}

.rank-content span {
    color: var(--muted);
    font-size: 13px;
    overflow-wrap: anywhere;
}

.source-details summary {
    cursor: pointer;
    list-style: none;
    display: block;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--accent-deep);
}

.source-details[open] summary {
    background: rgba(11, 92, 171, 0.08);
}

.source-details summary::after {
    content: "展开";
    float: right;
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
}

.source-details[open] summary::after {
    content: "收起";
}

.pending-panel {
    background:
        radial-gradient(circle at top right, rgba(11, 92, 171, 0.06), transparent 26%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(245, 249, 253, 0.97));
}

.pending-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.pending-summary-card {
    padding: 18px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(15, 47, 87, 0.10);
    background: rgba(15, 47, 87, 0.04);
}

.pending-summary-card span {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 13px;
}

.pending-summary-card strong {
    display: block;
    color: var(--accent-deep);
    font-size: 24px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.pending-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.pending-card {
    padding: 20px;
    border-radius: 20px;
    border: 1px solid rgba(15, 47, 87, 0.10);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-soft);
}

.pending-card-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: start;
}

.pending-card-kicker {
    margin: 0 0 8px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.pending-card h4 {
    margin: 0;
    font-size: 24px;
    color: var(--accent-deep);
    overflow-wrap: anywhere;
}

.pending-card-note {
    margin: 14px 0 0;
    color: var(--muted);
    line-height: 1.8;
}

.pending-tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.pending-tag {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(11, 92, 171, 0.07);
    border: 1px solid rgba(11, 92, 171, 0.12);
    color: var(--accent-deep);
    font-size: 12px;
    font-weight: 600;
}

.pending-fact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.pending-fact {
    padding: 14px;
    border-radius: 16px;
    background: rgba(11, 92, 171, 0.05);
    border: 1px solid rgba(11, 92, 171, 0.10);
}

.pending-fact span {
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 12px;
}

.pending-fact strong {
    display: block;
    color: var(--accent-deep);
    font-size: 15px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.pending-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.pending-links a {
    display: inline-flex;
    align-items: center;
    padding: 9px 14px;
    border-radius: 999px;
    border: 1px solid rgba(11, 92, 171, 0.14);
    background: rgba(255, 255, 255, 0.96);
    color: var(--accent-deep);
    font-weight: 600;
}

.pending-empty {
    padding: 20px;
    border-radius: 18px;
    border: 1px dashed rgba(11, 92, 171, 0.24);
    background: rgba(255, 255, 255, 0.82);
}

.pending-empty strong {
    display: block;
    margin-bottom: 10px;
    color: var(--accent-deep);
    font-size: 20px;
}

.pending-empty p {
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.8;
}

.pending-file-path {
    font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
    font-size: 13px;
    overflow-wrap: anywhere;
}

.type-panel {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 249, 253, 0.96));
}

.type-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin: 18px 0 16px;
}

.type-card {
    padding: 18px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(15, 47, 87, 0.10);
    background: rgba(15, 47, 87, 0.04);
}

.type-card-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: baseline;
    margin-bottom: 12px;
}

.type-card-head strong {
    font-size: 17px;
    color: var(--accent-deep);
}

.type-card-head span {
    color: var(--accent);
    font-weight: 700;
    font-size: 14px;
}

.type-card-bar {
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: rgba(11, 92, 171, 0.08);
    overflow: hidden;
}

.type-card-bar span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent), #74aee6);
}

.type-card p {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.schema-panel {
    background:
        radial-gradient(circle at top left, rgba(11, 92, 171, 0.06), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 253, 0.98));
}

.schema-topbar {
    display: grid;
    gap: 14px;
    margin-bottom: 16px;
}

.schema-status {
    color: var(--muted);
    font-size: 14px;
}

.schema-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.schema-legend span {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(11, 92, 171, 0.07);
    border: 1px solid rgba(11, 92, 171, 0.12);
    color: var(--accent-deep);
    font-size: 13px;
    font-weight: 600;
}

.schema-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.65fr);
    gap: 18px;
    align-items: stretch;
}

.schema-canvas {
    min-height: 660px;
    height: 660px;
    overflow: hidden;
    border-radius: 22px;
    border: 1px solid rgba(15, 47, 87, 0.10);
    background:
        radial-gradient(circle at 20% 20%, rgba(11, 92, 171, 0.06), transparent 26%),
        linear-gradient(180deg, rgba(248, 251, 255, 0.98), rgba(239, 245, 251, 0.96));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.schema-sidecard {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(15, 47, 87, 0.10);
    box-shadow: var(--shadow-soft);
}

.schema-side-kicker {
    margin: 0;
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.schema-sidecard h4 {
    margin: 0;
    font-size: 28px;
    color: var(--accent-deep);
    overflow-wrap: anywhere;
}

.schema-sidecard p {
    margin: 0;
    line-height: 1.8;
}

.schema-relations {
    display: grid;
    gap: 10px;
}

.side-entity-panel {
    display: grid;
    gap: 12px;
    padding-top: 6px;
    border-top: 1px solid rgba(15, 47, 87, 0.08);
}

.side-panel-head {
    margin-top: 4px;
}

.side-panel-head h3 {
    font-size: 18px;
}

.side-entity-filter {
    gap: 4px;
}

.side-entity-shell {
    max-height: 430px;
    overflow: auto;
}

.side-entity-shell .entity-card {
    padding: 14px;
    border-radius: 14px;
}

.side-entity-shell .entity-card h4 {
    font-size: 16px;
}

.side-entity-shell .entity-card p {
    font-size: 13px;
}

.side-entity-shell .entity-pill {
    font-size: 11px;
    padding: 6px 10px;
}

.side-entity-shell .entity-action-row {
    align-items: stretch;
}

.side-entity-pagination {
    padding-top: 2px;
}

.schema-relations-head {
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.schema-relation-list {
    display: grid;
    gap: 10px;
    max-height: 300px;
    overflow: auto;
    padding-right: 4px;
}

.schema-relation-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(11, 92, 171, 0.05);
    border: 1px solid rgba(11, 92, 171, 0.10);
}

.schema-relation-item span {
    color: var(--accent-deep);
    font-size: 15px;
    overflow-wrap: anywhere;
}

.schema-relation-item strong {
    color: var(--accent);
    font-size: 15px;
    white-space: nowrap;
}

.schema-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.schema-metric-card {
    padding: 14px;
    border-radius: 16px;
    background: rgba(11, 92, 171, 0.05);
    border: 1px solid rgba(11, 92, 171, 0.1);
    min-width: 0;
}

.schema-metric-card span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 6px;
}

.schema-metric-card strong {
    display: block;
    color: var(--accent-deep);
    font-size: 22px;
    line-height: 1.2;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.explorer-panel {
    display: grid;
    gap: 16px;
}

.entity-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
    align-items: center;
}

.entity-chip-row,
.entity-pill-row,
.workbench-tab-row,
.entity-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.entity-chip,
.workbench-tab,
.pager-button,
.secondary-action-button {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(11, 92, 171, 0.15);
    background: rgba(11, 92, 171, 0.06);
    color: var(--accent-deep);
    border-radius: 999px;
    padding: 10px 14px;
    font: inherit;
    cursor: pointer;
    text-decoration: none;
    transition: transform 140ms ease, background 140ms ease, border-color 140ms ease;
}

.entity-chip:hover,
.workbench-tab:hover,
.pager-button:hover,
.secondary-action-button:hover {
    transform: translateY(-1px);
    background: rgba(11, 92, 171, 0.10);
    border-color: rgba(11, 92, 171, 0.22);
}

.entity-chip.is-active,
.workbench-tab.is-active {
    background: rgba(11, 92, 171, 0.16);
    border-color: rgba(11, 92, 171, 0.28);
    color: var(--accent);
    font-weight: 700;
}

.pager-button[disabled] {
    cursor: not-allowed;
    opacity: 0.45;
    transform: none;
}

.entity-filter-label {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 13px;
}

.entity-filter-label select {
    min-width: 220px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(15, 47, 87, 0.12);
    background: rgba(255, 255, 255, 0.95);
    color: var(--accent-deep);
    font: inherit;
}

.entity-list-shell,
.workbench-shell {
    display: grid;
    gap: 14px;
}

.entity-card,
.workbench-card,
.workbench-template {
    border-radius: 18px;
    border: 1px solid rgba(15, 47, 87, 0.10);
    background: rgba(255, 255, 255, 0.92);
}

.entity-card,
.workbench-card {
    padding: 18px;
}

.workbench-template {
    padding: 18px;
    display: grid;
    gap: 14px;
}

.entity-card-head,
.workbench-template-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: start;
}

.entity-card h4,
.workbench-template h4,
.workbench-card h5 {
    margin: 0;
    color: var(--accent-deep);
}

.entity-card h4 {
    font-size: 20px;
}

.workbench-card h5 {
    font-size: 17px;
}

.entity-card p,
.workbench-card p,
.workbench-template p {
    margin: 0;
    line-height: 1.7;
}

.entity-card-summary {
    color: var(--accent-deep);
}

.entity-pill {
    display: inline-flex;
    align-items: center;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(11, 92, 171, 0.08);
    border: 1px solid rgba(11, 92, 171, 0.12);
    color: var(--accent-deep);
    font-size: 12px;
    font-weight: 600;
}

.entity-pill-soft {
    background: rgba(86, 101, 122, 0.08);
    border-color: rgba(86, 101, 122, 0.12);
    color: var(--muted);
}

.secondary-action-button,
.secondary-inline-link {
    color: var(--accent);
}

.secondary-inline-link {
    text-decoration: none;
    font-weight: 700;
}

.secondary-inline-link:hover {
    text-decoration: underline;
}

.entity-pagination {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.entity-pagination-meta {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.entity-pagination-jump {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pager-input {
    width: 88px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(15, 47, 87, 0.12);
    background: rgba(255, 255, 255, 0.95);
    color: var(--accent-deep);
    font: inherit;
    text-align: center;
}

.pager-input:focus {
    outline: 2px solid rgba(11, 92, 171, 0.18);
    border-color: rgba(11, 92, 171, 0.32);
}

.entity-empty {
    padding: 18px;
    border-radius: 16px;
    background: rgba(11, 92, 171, 0.04);
    border: 1px dashed rgba(11, 92, 171, 0.14);
}

.workbench-card-list {
    display: grid;
    gap: 12px;
}

.workbench-kind-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.workbench-kind-badge.kind-real {
    background: rgba(11, 92, 171, 0.10);
    color: var(--accent);
}

.workbench-kind-badge.kind-derived {
    background: rgba(185, 114, 40, 0.12);
    color: #8a5417;
}

.workbench-kind-badge.kind-candidate {
    background: rgba(127, 86, 217, 0.12);
    color: #6244b5;
}

.vis-network:focus {
    outline: none;
}

.matrix-panel {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(244, 248, 253, 0.97));
}

.matrix-status {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 14px;
}

.matrix-shell {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.94);
    max-width: 100%;
}

.matrix-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 860px;
    font-size: 13px;
}

.matrix-table thead th,
.matrix-table tbody th {
    position: sticky;
    z-index: 1;
    background: rgba(227, 238, 251, 0.95);
    color: var(--accent-deep);
    font-weight: 700;
}

.matrix-table thead th {
    top: 0;
}

.matrix-table tbody th {
    left: 0;
}

.matrix-table th,
.matrix-table td {
    padding: 10px 12px;
    border-right: 1px solid rgba(18, 32, 51, 0.06);
    border-bottom: 1px solid rgba(18, 32, 51, 0.06);
    text-align: center;
    vertical-align: middle;
}

.matrix-corner {
    min-width: 150px;
    left: 0;
    z-index: 2;
}

.matrix-cell {
    min-width: 68px;
    font-weight: 700;
}

.compact-panel p {
    margin: 0;
    line-height: 1.8;
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.92);
}

.source-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.source-table th,
.source-table td {
    padding: 13px 12px;
    border-top: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
    white-space: nowrap;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.source-table th:first-child,
.source-table td:first-child {
    white-space: normal;
    min-width: 220px;
}

.download-status-col,
.download-status-cell {
    width: 110px;
    min-width: 110px;
    text-align: center;
}

.download-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
}

.download-status.is-downloaded {
    color: #1f7a38;
    background: rgba(31, 122, 56, 0.10);
}

.download-status.is-partial {
    color: #9a6a11;
    background: rgba(154, 106, 17, 0.12);
}

.download-status.is-pending {
    color: #708096;
    background: rgba(112, 128, 150, 0.10);
}

.source-table thead th {
    color: var(--muted);
    font-weight: 600;
    border-top: none;
    background: rgba(227, 238, 251, 0.70);
}

.source-table tbody tr:nth-child(even) {
    background: rgba(11, 92, 171, 0.025);
}

.source-table tbody tr:hover {
    background: rgba(11, 92, 171, 0.06);
}

.node-detail-section .source-table th,
.node-detail-section .source-table td {
    white-space: normal;
}

.node-detail-section .source-table th:first-child,
.node-detail-section .source-table td:first-child {
    min-width: 140px;
}

.node-detail-section .json-block {
    max-height: 420px;
}

.node-props-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
    margin-top: 16px;
}

.prop-section-card {
    display: grid;
    gap: 12px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(11, 92, 171, 0.12);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 248, 253, 0.98));
    box-shadow: 0 8px 20px rgba(25, 42, 70, 0.05);
}

.prop-section-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

.prop-section-head h4 {
    margin: 0;
    font-size: 18px;
    color: var(--accent-deep);
    overflow-wrap: anywhere;
    word-break: break-word;
}

.prop-section-head p {
    margin: 6px 0 0;
    line-height: 1.6;
}

.props-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
}

.props-preview-item {
    display: grid;
    gap: 6px;
    min-width: 0;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(11, 92, 171, 0.12);
    background: rgba(11, 92, 171, 0.045);
}

.props-preview-item span {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.props-preview-item strong {
    color: var(--accent-deep);
    font-size: 14px;
    line-height: 1.65;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.relation-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 14px;
}

.relation-summary-card {
    display: grid;
    gap: 8px;
    padding: 18px;
    border-radius: 18px;
    border: 1px solid rgba(11, 92, 171, 0.12);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(242, 248, 253, 0.98));
    box-shadow: 0 8px 20px rgba(25, 42, 70, 0.05);
}

.relation-summary-card span {
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 0.04em;
}

.relation-summary-card strong {
    color: var(--accent-deep);
    font-size: 24px;
    line-height: 1.2;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.relation-summary-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.topic-scope-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.topic-scope-card {
    display: grid;
    gap: 10px;
    padding: 16px;
    border-radius: 16px;
    border: 1px solid rgba(11, 92, 171, 0.12);
    background: rgba(255, 255, 255, 0.94);
}

.topic-scope-card h4 {
    margin: 0;
    font-size: 16px;
    color: var(--accent-deep);
}

.scope-row {
    display: grid;
    gap: 4px;
    padding-top: 10px;
    border-top: 1px dashed rgba(11, 92, 171, 0.16);
}

.scope-row:first-of-type {
    padding-top: 0;
    border-top: none;
}

.scope-row strong {
    color: var(--accent-deep);
    overflow-wrap: anywhere;
    word-break: break-word;
}

.relation-card-list {
    display: grid;
    gap: 14px;
    margin-top: 16px;
}

.relation-card {
    display: grid;
    gap: 12px;
    padding: 18px;
    border-radius: 20px;
    border: 1px solid rgba(11, 92, 171, 0.12);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 248, 253, 0.98));
    box-shadow: 0 8px 20px rgba(25, 42, 70, 0.05);
}

.relation-card-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.relation-card-head h4 {
    margin: 0;
    font-size: 20px;
    color: var(--accent-deep);
    overflow-wrap: anywhere;
    word-break: break-word;
}

.relation-card-head p {
    margin: 6px 0 0;
}

.relation-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(11, 92, 171, 0.18);
    background: rgba(11, 92, 171, 0.10);
    color: var(--accent-deep);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.relation-props-list {
    display: grid;
    gap: 12px;
    margin-top: 12px;
}

@media (max-width: 1360px) {
    .source-grid,
    .bottom-grid {
        grid-template-columns: 1fr;
    }

    .source-rank-list {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .relation-summary-grid,
    .topic-scope-grid {
        grid-template-columns: 1fr;
    }

    .entity-pagination {
        justify-content: flex-start;
    }
}

@media (max-width: 1180px) {
    .hero-card,
    .metric-grid,
    .panel-grid,
    .bottom-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .special-card-grid {
        grid-template-columns: 1fr;
    }

    .database-grid,
    .database-stack-grid {
        grid-template-columns: 1fr;
    }

    .ad-highlight-grid {
        grid-template-columns: 1fr;
    }

    .hero-card {
        grid-template-columns: 1fr;
    }

    .type-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pending-list,
    .pending-summary-grid {
        grid-template-columns: 1fr;
    }

    .schema-layout {
        grid-template-columns: 1fr;
    }

    .schema-canvas {
        min-height: 540px;
        height: 540px;
    }
}

@media (max-width: 720px) {
    .site-header {
        flex-direction: column;
        align-items: stretch;
    }

    .site-nav {
        flex-wrap: wrap;
        padding-bottom: 0;
    }

    .metric-grid,
    .panel-grid,
    .bottom-grid {
        grid-template-columns: 1fr;
    }

    .special-entry-panel {
        flex-direction: column;
        align-items: stretch;
    }

    .special-metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .special-card-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .special-foot-note {
        max-width: 100%;
    }

    .ad-drug-list li {
        flex-direction: column;
        align-items: flex-start;
    }

    .source-rank-list,
    .type-card-grid,
    .pending-list,
    .pending-summary-grid,
    .pending-fact-grid {
        grid-template-columns: 1fr;
    }

    .entity-toolbar,
    .entity-pagination {
        flex-direction: column;
        align-items: stretch;
    }

    .entity-filter-label select {
        min-width: 0;
        width: 100%;
    }

    .schema-metrics {
        grid-template-columns: 1fr;
    }

    .hero-card,
    .panel,
    .metric-card {
        padding: 18px;
    }

    .hero-copy h2 {
        font-size: 34px;
    }

    .panel-head {
        flex-direction: column;
        align-items: start;
    }

    .type-card-head {
        flex-direction: column;
        align-items: start;
    }

    .matrix-table {
        min-width: 720px;
    }

    .schema-canvas {
        min-height: 440px;
        height: 440px;
    }
}
