:root {
    color-scheme: dark;
    --background: #1b1d21;

    --panel: #262b31;
    --panel-soft: #1d2330;

    --border: #343942;

    --text: #edf1f7;
    --muted: #9aa6b7;
    --accent: #4f8cff;
    --accent-hover: #72a3ff;

    --radius: 12px;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    font: 15px/1.55 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.shell {
    width: min(960px, calc(100% - 32px));
    margin-inline: auto;
}
.page-header {
    position: sticky;
    top: 0;
    z-index: 100;

    background: var(--background);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .18);
    padding: 32px;

}
.site-header {
    padding: 48px 0 32px;
    border-bottom: 1px solid var(--border);
    background: var(--background);
}
.brand { margin: 0 0 4px; color: var(--accent); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 6px; font-size: clamp(2rem, 5vw, 3rem); }
.intro, .section-heading span, footer { color: var(--muted); }
.catalog {
    padding: 26px;
}
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.plugin-card, .empty-state {
    margin-top: 16px;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--panel);
}
.plugin-card {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    align-items: start;
    padding: 14px;
}

.core-release-card {
    padding: 32px 28px;
}

.library-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    min-height: 1500px;
    padding: 8px;

    overflow-x: hidden;
    overflow-y: scroll;
}

.pluginLibraryFrame {
    display: block;
    width: 100%;

    border: 0;
    overflow: hidden;
}

.pluginLibraryFrameEx {
    display: grid;
    width: 100%;
    height: 100%;

    border: 0;
    overflow: auto;
}

.library-panel-header-core {
    display: flex;
    justify-content: center;
    align-items: center;

    padding-top: 20px;
    padding-left: 20px;

    border: 1px solid var(--border);
    background: var(--panel-soft);
    border-radius: 10px;
}

.library-panel-header-plugins {
    display: flex;
    justify-content: center;
    align-items: center;

    padding-top: 20px;
    padding-left: 20px;

    margin-top: 50px;

    border: 1px solid var(--border);
    background: var(--panel-soft);
    border-radius: 10px;
}

.release-notes {
    grid-column: 1 / -1;
    margin-top: 8px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.release-notes ul {
    margin: 10px 0 0;
    padding-left: 20px;
    color: var(--muted);
}

.release-notes li {
    margin: 4px 0;
}
.release-history-item {
    display: block;
}

.release-history-item details {
    width: 100%;
}

.release-history-item summary {
    cursor: pointer;
    font-weight: 650;
    padding: 8px 0;
}

.release-history-notes {
    padding: 12px 0 16px;
    color: var(--muted);
}

.release-history-notes h4 {
    margin: 0 0 6px;
    color: var(--text);
}

.release-history-notes p {
    margin-bottom: 10px;
}

.release-history-notes ul {
    margin: 0 0 14px;
    padding-left: 20px;
}

.plugin-copy p { max-width: 65ch; color: var(--muted); }
.release-facts { display: flex; flex-wrap: wrap; gap: 12px 28px; margin: 20px 0 0; }
.release-facts div { min-width: 130px; }
.release-facts dt { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; }
.release-facts dd { margin: 2px 0 0; font-weight: 650; }
.download { display: inline-flex; justify-content: center; padding: 9px 14px; border-radius: 6px; text-decoration: none; font-weight: 650; }
.download.primary { background: var(--accent); color: white; }
.download.primary:hover { background: var(--accent-hover); }
.download.secondary { border: 1px solid var(--border); color: var(--text); background: var(--panel-soft); }
.integration-actions { grid-column: 1 / -1; display: flex; align-items: center; justify-content: flex-end; gap: 14px; }
.integration-actions[hidden] { display: none; }
.integration-status { color: var(--muted); }
.install-action { padding: 9px 16px; border: 0; border-radius: 6px; background: var(--accent); color: white; font: inherit; font-weight: 650; cursor: pointer; }
.install-action:disabled { cursor: default; opacity: .6; }
.history { grid-column: 1 / -1; border-top: 1px solid var(--border); padding-top: 16px; }
.history summary { cursor: pointer; color: var(--muted); font-weight: 650; }
.history ul { list-style: none; margin: 12px 0 0; padding: 0; }
.history li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 9px 0; border-top: 1px solid var(--border); }
footer { padding: 8px 0 32px; }
.embedded .site-header, .embedded footer { display: none; }
.embedded body { background: transparent; }
.embedded .catalog { padding-top: 12px; }
.embedded .shell { width: min(920px, calc(100% - 20px)); }
@media (max-width: 640px) {
    .plugin-card { grid-template-columns: 1fr; }
    .download.primary { width: 100%; }
}
