/* oak_forum visual refresh */
:root {
    --bg: #f4f6f8;
    --panel: #ffffff;
    --soft: #eef3f5;
    --line: #dfe7ea;
    --text: #23313d;
    --muted: #6c7b84;
    --blue: #2f8f83;
    --blue-soft: #e8f4f1;
    --blue-fill: #2f8f83;
    --shadow: 0 10px 28px rgba(33, 53, 64, .07);
}

/* Resource detail subpages */
.resource-detail.mcwiki-detail {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.resource-detail-hero {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    min-width: 0;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #fff;
}

.resource-detail-hero-cover {
    width: 88px;
    height: 88px;
    border: 1px solid #d8e2e5;
    border-radius: 6px;
    background-position: center;
    background-size: cover;
}

.resource-detail-hero-copy {
    min-width: 0;
}

.resource-detail-eyebrow {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.resource-detail-hero-copy h1 {
    margin: 0;
    color: var(--text);
    font-size: 27px;
    line-height: 1.2;
}

.resource-detail-hero-copy > p {
    display: -webkit-box;
    overflow: hidden;
    margin: 7px 0 9px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.resource-detail-quick-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    min-width: 0;
    margin: 9px 0 0;
}

.resource-detail-quick-meta > div {
    display: flex;
    align-items: baseline;
    gap: 5px;
    min-width: 0;
    border-left: 1px solid #dfe7e9;
    padding: 0 11px;
}

.resource-detail-quick-meta > div:first-child {
    border-left: 0;
    padding-left: 0;
}

.resource-detail-quick-meta dt {
    color: #89979c;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}

.resource-detail-quick-meta dd {
    min-width: 0;
    overflow: hidden;
    margin: 0;
    color: #42535a;
    font-size: 10px;
    font-weight: 760;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.resource-detail-quick-meta a {
    color: #2c7392;
    text-decoration: none;
}

.resource-detail-hero-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.resource-detail-hero-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 760;
    text-decoration: none;
    white-space: nowrap;
}

.resource-detail-hero-actions .icon {
    width: 16px;
    height: 16px;
}

.resource-detail-action-split {
    display: inline-flex;
    overflow: hidden;
    border-radius: 6px;
    box-shadow: 0 6px 14px rgba(42, 72, 65, .12);
}

.resource-detail-action-split a {
    min-width: 112px;
    border: 0;
    border-radius: 0;
    color: #fff;
}

.resource-detail-action-split a + a {
    border-left: 1px solid rgba(255, 255, 255, .38);
}

.resource-detail-tutorial-action {
    background: #2f8f73;
}

.resource-detail-tutorial-action:hover {
    background: #26785f;
    color: #fff;
}

.resource-detail-download-action {
    background: #d87932;
}

.resource-detail-download-action:hover {
    background: #be6324;
    color: #fff;
}

.resource-detail-hero-actions .resource-detail-edit-button {
    width: auto !important;
    min-width: 0;
    max-width: none;
    margin: 0;
    justify-self: auto;
}

.resource-detail-tabs {
    display: flex;
    min-width: 0;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 7px;
    padding: 0 8px;
    background: #fff;
    scrollbar-width: none;
}

.resource-detail-tabs::-webkit-scrollbar {
    display: none;
}

.resource-detail-tabs a {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 92px;
    min-height: 50px;
    padding: 0 14px;
    color: #607078;
    font-size: 13px;
    font-weight: 730;
    text-decoration: none;
}

.resource-detail-tabs a::after {
    position: absolute;
    right: 12px;
    bottom: -1px;
    left: 12px;
    height: 2px;
    background: transparent;
    content: '';
}

.resource-detail-tabs a:hover,
.resource-detail-tabs a.active {
    color: #276f91;
}

.resource-detail-tabs a.active::after {
    background: #397fa8;
}

.resource-detail-tabs .icon {
    width: 16px;
    height: 16px;
}

.resource-detail-tabs small {
    display: grid;
    place-items: center;
    min-width: 19px;
    height: 19px;
    border-radius: 50%;
    padding: 0 5px;
    background: #edf3f5;
    color: #64777e;
    font-size: 10px;
}

.resource-detail-tabs a.active small {
    background: #e5f1f6;
    color: #276f91;
}

.resource-detail .detail-overview {
    grid-template-columns: 226px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.resource-detail .detail-left-card,
.resource-detail .resource-detail-main,
.resource-detail .detail-section,
.resource-detail .resource-tab-panel {
    border-color: var(--line);
    border-radius: 7px;
    box-shadow: none;
}

.resource-detail .detail-left-card {
    display: grid;
    align-content: start;
    gap: 14px;
}

.detail-score-summary {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 2px 10px;
    padding: 5px 2px 12px;
    border-bottom: 1px solid var(--line);
}

.detail-score-summary strong {
    grid-row: 1 / 3;
    color: #276f91;
    font-size: 31px;
    line-height: 1;
}

.detail-score-summary span {
    color: var(--text);
    font-size: 13px;
    font-weight: 750;
}

.detail-score-summary small {
    color: var(--muted);
    font-size: 11px;
}

.resource-detail .detail-side-stats {
    margin: 0;
}

.resource-detail .resource-sidebar-people {
    margin: 0;
    padding: 14px 0;
}

.resource-detail .resource-sidebar-people .resource-people-list {
    display: grid;
    grid-template-columns: 1fr;
}

.resource-detail .resource-sidebar-people .resource-person-card {
    width: 100%;
    min-width: 0;
    max-width: none;
    grid-template-columns: 38px minmax(0, 1fr);
    padding: 5px 8px 5px 5px;
}

.resource-detail .resource-sidebar-people .resource-person-avatar {
    width: 38px;
    height: 38px;
}

.resource-detail .resource-sidebar-people .resource-person-info {
    min-width: 0;
}

.resource-detail .resource-sidebar-people .resource-person-info strong,
.resource-detail .resource-sidebar-people .resource-person-info small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.resource-sidebar-taxonomy {
    display: grid;
    gap: 10px;
}

.resource-detail .resource-sidebar-taxonomy .detail-chip-section {
    min-height: 0;
    margin: 0;
    padding: 11px;
}

.resource-detail .resource-sidebar-taxonomy .detail-chip-section h2 {
    font-size: 13px;
}

.resource-detail .resource-sidebar-taxonomy .detail-chip-list {
    max-height: 78px;
    gap: 5px;
}

.resource-detail .resource-sidebar-taxonomy .detail-chip-list span {
    padding: 3px 7px;
    font-size: 11px;
}

.resource-detail .resource-detail-main {
    display: grid;
    align-content: start;
    gap: 12px;
    padding: 0;
    border: 0;
    background: transparent;
}

.resource-detail .resource-meta,
.resource-detail .resource-people-section {
    margin: 0;
}

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

.resource-overview-secondary .detail-chip-section,
.resource-overview-secondary .wiki-dependencies {
    margin: 0;
}

.resource-overview-secondary .detail-chip-section {
    min-height: 0;
}

.resource-overview-secondary .wiki-dependencies {
    grid-column: 1 / -1;
    padding: 14px 16px;
}

.resource-overview-secondary .wiki-dependency-version {
    grid-template-columns: 82px repeat(auto-fit, minmax(180px, 1fr));
    align-items: center;
    margin-top: 8px;
}

.resource-detail-sections {
    display: grid;
    gap: 14px;
    width: 100%;
    min-width: 0;
}

.resource-detail-sections [hidden] {
    display: none !important;
}

.resource-tab-panel {
    margin: 0;
    padding: 22px;
    border: 1px solid var(--line);
    background: #fff;
}

.resource-detail .resource-tutorial-showcase.resource-tab-panel {
    display: block;
    margin: 0;
    overflow: hidden;
    padding: 0;
}

.resource-tutorial-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-width: 0;
    padding: 18px 20px;
    border-bottom: 1px solid #e5ebed;
}

.resource-tutorial-toolbar > div:first-child {
    display: grid;
    gap: 3px;
}

.resource-tutorial-toolbar strong {
    color: var(--text);
    font-size: 17px;
    line-height: 1.3;
}

.resource-tutorial-toolbar span {
    color: #697c84;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.resource-tutorial-toolbar .resource-tutorial-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 0;
    padding: 0;
}

.resource-tutorial-actions a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    border: 1px solid #cbdcdf;
    border-radius: 6px;
    padding: 0 10px;
    color: #47707a;
    font-size: 11px;
    font-weight: 750;
    text-decoration: none;
}

.resource-tutorial-actions .resource-tutorial-edit {
    border-color: #2f8f73;
    background: #2f8f73;
    color: #fff;
}

.resource-tutorial-library {
    min-width: 0;
}

.resource-tutorial-feature {
    display: flex;
    flex-wrap: wrap;
    align-items: start;
    justify-content: start;
    gap: 12px;
    min-width: 0;
    padding: 20px 22px 22px;
    background: #fbfcfc;
}

.resource-tutorial-feature-main {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    min-width: 0;
    flex: 0 0 220px;
    width: 220px;
    min-height: 0;
    padding: 0;
    border: 1px solid #9bc9c2;
    border-radius: 8px;
    background: #f1f9f7;
    box-shadow: 0 8px 20px rgba(33, 53, 64, .06);
    overflow: hidden;
}

.resource-tutorial-feature-cover {
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
    height: 142px;
    aspect-ratio: auto;
    flex: 0 0 auto;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background-color: #4d8178;
    background-position: center;
    background-size: cover;
    color: #fff;
}

.resource-tutorial-feature-copy {
    min-width: 0;
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 13px 14px 14px;
}

.resource-tutorial-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 23px;
    border-radius: 4px;
    padding: 0 8px;
    background: #eaf5f1;
    color: #24725f;
    font-size: 10px;
    font-weight: 800;
}

.resource-tutorial-feature-copy h2 {
    overflow: hidden;
    margin: 7px 0 5px;
    color: #1f2d37;
    font-size: 17px;
    line-height: 1.28;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.resource-tutorial-feature-copy > p {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: #64737b;
    font-size: 11px;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.resource-tutorial-feature-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: auto;
    padding-top: 9px;
    gap: 8px;
    color: #7b898f;
    font-size: 10px;
}

.resource-tutorial-feature-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.resource-tutorial-feature-meta .icon {
    width: 13px;
    height: 13px;
}

.resource-tutorial-start {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 32px;
    margin-top: 10px;
    border-radius: 6px;
    padding: 0 11px;
    background: #2f8f73;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
}

.resource-tutorial-start:hover {
    background: #26785f;
    color: #fff;
}

.resource-tutorial-start .icon {
    width: 15px;
    height: 15px;
}

.resource-tutorial-chapters {
    display: none;
}

.resource-tutorial-chapters-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
    color: #63747b;
    font-size: 11px;
}

.resource-tutorial-chapters-head span {
    font-weight: 800;
}

.resource-tutorial-chapters-head strong {
    color: #2f8f73;
    font-size: 10px;
}

.resource-tutorial-chapters nav {
    display: grid;
}

.resource-tutorial-chapters nav > a {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) 14px;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    border-top: 1px solid #e6ecee;
    color: #3d4d55;
    text-decoration: none;
}

.resource-tutorial-chapters nav > a:first-child {
    border-top: 0;
}

.resource-tutorial-chapters nav > a > span {
    color: #91a0a5;
    font-size: 9px;
    font-variant-numeric: tabular-nums;
}

.resource-tutorial-chapters nav > a > strong {
    overflow: hidden;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.resource-tutorial-chapters nav > a > .icon {
    width: 12px;
    height: 12px;
    color: #93a3a8;
}

.resource-tutorial-chapters nav > a:hover,
.resource-tutorial-chapters nav > a:hover > .icon {
    color: #24725f;
}

.resource-tutorial-chapters nav > p {
    margin: 12px 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.6;
}

.resource-tutorial-all-chapters {
    display: inline-flex;
    margin-top: 9px;
    color: #2c7392;
    font-size: 10px;
    font-weight: 750;
    text-decoration: none;
}

.resource-tutorial-more {
    padding: 0 22px 22px;
}

.resource-tutorial-more-head {
    display: flex;
    align-items: baseline;
    gap: 9px;
    margin-bottom: 12px;
}

.resource-tutorial-more-head h3 {
    margin: 0;
    color: var(--text);
    font-size: 15px;
}

.resource-tutorial-more-head span {
    color: var(--muted);
    font-size: 10px;
}

.resource-detail .resource-tutorial-row {
    display: flex;
    flex-wrap: wrap;
    align-items: start;
    gap: 12px;
    width: 100%;
}

.resource-detail .resource-tutorial-mini-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    min-width: 0;
    flex: 0 0 220px;
    width: 220px;
    min-height: 278px;
    padding: 0;
    overflow: hidden;
    border: 1px solid #e0e7e9;
    border-radius: 6px;
    background: #fbfcfc;
    color: inherit;
    text-decoration: none;
}

.resource-detail .resource-tutorial-mini-card:hover {
    border-color: #b6d0cb;
    background: #f6fbf9;
    color: inherit;
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(33, 53, 64, .08);
}

.resource-tutorial-card-cover-fallback.tone-1 { background: #4d8178; }
.resource-tutorial-card-cover-fallback.tone-2 { background: #54779b; }
.resource-tutorial-card-cover-fallback.tone-3 { background: #9b7846; }
.resource-tutorial-card-cover-fallback.tone-4 { background: #8e5f65; }

.resource-tutorial-card-cover-icon {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    border: 1px solid rgba(255, 255, 255, .5);
    border-radius: 7px;
    background: rgba(23, 39, 44, .28);
}

.has-cover-image .resource-tutorial-card-cover-icon {
    opacity: 0;
}

.resource-tutorial-card-cover-icon .icon {
    width: 25px;
    height: 25px;
}

.resource-tutorial-featured-badge {
    position: absolute;
    top: 9px;
    left: 9px;
    min-height: 22px;
    border-radius: 4px;
    padding: 3px 7px;
    background: #21846c;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
}

.resource-tutorial-mini-icon {
    display: grid;
    place-items: center;
    flex: 0 0 142px;
    width: 100%;
    height: auto;
    border-radius: 0;
    background: #edf3f5;
    background-position: center;
    background-size: cover;
    color: #4f7e91;
}
.resource-tutorial-mini-icon.has-cover-image .icon { opacity: 0; }

.resource-tutorial-mini-icon .icon {
    width: 16px;
    height: 16px;
}

.resource-detail .resource-tutorial-mini-card > .resource-tutorial-card-copy {
    display: flex;
    flex: 1;
    flex-direction: column;
    width: auto;
    height: auto;
    min-width: 0;
    margin: 0;
    border-radius: 0;
    padding: 13px 13px 36px;
    background: transparent;
    color: inherit;
}

.resource-tutorial-card-copy > strong {
    overflow: hidden;
    margin: 0;
    color: var(--text);
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.resource-detail .resource-tutorial-card-copy p {
    overflow: hidden;
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.resource-tutorial-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    flex-wrap: wrap;
    gap: 4px 8px;
    padding: 0;
    border: 0;
    color: #7d8c91;
    font-size: 10px;
}

.resource-tutorial-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    white-space: nowrap;
}

.resource-tutorial-card-meta .icon {
    width: 12px;
    height: 12px;
}

.resource-tutorial-mini-card > .icon {
    position: absolute;
    right: 12px;
    bottom: 13px;
    width: 13px;
    height: 13px;
    color: #8b9ba1;
}

.resource-tutorial-empty {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    min-height: 150px;
    padding: 24px;
}

.resource-tutorial-empty-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 6px;
    background: #edf3f5;
    color: #557783;
}

.resource-tutorial-empty-icon .icon {
    width: 21px;
    height: 21px;
}

.resource-tutorial-empty strong {
    color: var(--text);
    font-size: 14px;
}

.resource-tutorial-empty p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 11px;
}

.resource-tutorial-empty > a {
    min-height: 36px;
    border-radius: 6px;
    padding: 9px 12px;
    background: #2f8f73;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
}

.resource-details-head {
    margin-bottom: 15px;
}

.resource-details-head span {
    color: #2f8f73;
    font-size: 10px;
    font-weight: 800;
}

.resource-details-head h2 {
    margin: 3px 0 0;
    color: var(--text);
    font-size: 20px;
}

.resource-details-dependencies {
    margin: 18px 0 0;
    padding: 15px;
    border: 1px solid #e1e8ea;
    border-radius: 7px;
    background: #fafcfc;
}

.resource-details-description {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #e4eaec;
}

.resource-details-description > h2 {
    margin: 0 0 12px;
    color: var(--text);
    font-size: 17px;
}

.resource-detail .version-panel,
.resource-detail .resource-detail-text,
.resource-detail .wiki-comment-panel {
    margin: 0;
}

.resource-detail .resource-detail-text {
    min-width: 0;
    overflow-wrap: anywhere;
}

@media (max-width: 1180px) {
    .resource-tutorial-chapters {
        border-top: 1px solid #e5ebed;
        border-left: 0;
    }
}

@media (max-width: 860px) {
    .resource-detail-hero {
        grid-template-columns: 72px minmax(0, 1fr);
        gap: 14px;
    }

    .resource-detail-hero-cover {
        width: 72px;
        height: 72px;
    }

    .resource-detail-hero-actions {
        grid-column: 1 / -1;
    }

    .resource-detail .detail-overview {
        grid-template-columns: 1fr;
    }

    .resource-detail .detail-left-card {
        order: 2;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
    }

    .resource-detail .resource-detail-main {
        order: 1;
    }

    .resource-detail .detail-score-summary,
    .resource-detail .detail-side-stats,
    .resource-detail .resource-actions-panel,
    .resource-detail .detail-left-rating {
        grid-column: 1;
    }

    .resource-detail .resource-sidebar-people,
    .resource-detail .resource-sidebar-taxonomy {
        grid-column: 2;
    }

    .resource-detail .resource-sidebar-people {
        grid-row: 1 / span 3;
        border-top: 0;
        padding-top: 4px;
    }

    .resource-detail .resource-tutorial-row {
        grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    }

    .resource-tutorial-feature-main {
        grid-template-columns: none;
    }
}

@media (max-width: 560px) {
    .resource-detail .detail-crumbs {
        display: none;
    }

    .resource-detail-hero {
        grid-template-columns: 58px minmax(0, 1fr);
        gap: 11px;
        margin-top: 42px;
        padding: 14px;
    }

    .resource-detail-hero-cover {
        width: 58px;
        height: 58px;
    }

    .resource-detail-hero-copy h1 {
        font-size: 22px;
    }

    .resource-detail .detail-left-card {
        grid-template-columns: 1fr;
    }

    .resource-detail .detail-score-summary,
    .resource-detail .detail-side-stats,
    .resource-detail .resource-actions-panel,
    .resource-detail .detail-left-rating,
    .resource-detail .resource-sidebar-people,
    .resource-detail .resource-sidebar-taxonomy {
        grid-column: 1;
    }

    .resource-detail .resource-sidebar-people {
        grid-row: auto;
        border-top: 1px solid #e4eaf1;
        padding-top: 14px;
    }

    .resource-detail-hero-copy > p {
        margin-bottom: 0;
        -webkit-line-clamp: 2;
    }

    .resource-detail-hero-copy .detail-badges {
        display: none;
    }

    .resource-detail-quick-meta {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 5px 10px;
        margin-top: 8px;
    }

    .resource-detail-quick-meta > div,
    .resource-detail-quick-meta > div:first-child {
        border-left: 0;
        padding: 0;
    }

    .resource-detail-hero-actions {
        display: flex;
        width: 100%;
    }

    .resource-detail-action-split {
        display: flex;
        flex: 1 1 auto;
        min-width: 0;
    }

    .resource-detail-action-split a {
        flex: 1 1 50%;
        min-width: 0;
        padding: 0 8px;
    }

    .resource-detail-hero-actions .resource-detail-edit-button {
        flex: 0 0 42px;
        width: 42px !important;
        padding: 0;
    }

    .resource-detail-hero-actions .resource-detail-edit-button span {
        display: none;
    }

    .resource-detail-tabs {
        padding: 0 4px;
    }

    .resource-detail-tabs a {
        flex: 1 1 0;
        min-width: 78px;
        min-height: 46px;
        gap: 4px;
        padding: 0 4px;
    }

    .resource-detail-tabs .icon {
        display: block;
        width: 14px;
        height: 14px;
    }

    .resource-detail-tabs small {
        display: grid;
    }

    .resource-detail .resource-meta.wiki-meta {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .resource-detail .detail-left-card,
    .resource-detail .detail-section,
    .resource-detail .resource-tab-panel {
        padding: 14px;
    }

    .resource-detail .resource-detail-main,
    .resource-detail .resource-tutorial-showcase.resource-tab-panel {
        padding: 0;
    }

    .resource-tutorial-toolbar {
        padding: 15px;
    }

    .resource-tutorial-feature-main {
        gap: 0;
        padding: 0;
        flex: 1 1 100%;
        width: 100%;
    }

    .resource-tutorial-feature-cover {
        max-height: none;
        height: 142px;
        aspect-ratio: auto;
    }

    .resource-tutorial-feature-copy h2 {
        font-size: 21px;
    }

    .resource-tutorial-chapters {
        display: none;
    }

    .resource-tutorial-more {
        padding: 17px 15px;
    }

    .resource-tab-panel .resource-tutorial-row {
        display: flex;
        flex-direction: column;
        overflow: visible;
    }

    .resource-tab-panel .resource-tutorial-mini-card {
        flex: none;
        width: auto;
        min-height: 0;
    }

    .resource-detail .resource-tutorial-mini-card {
        display: flex;
        flex-direction: column;
        flex: 1 1 100%;
        width: 100%;
        min-height: 278px;
        padding: 0;
    }

    .resource-tutorial-toolbar {
        align-items: flex-start;
    }

    .resource-tutorial-empty {
        grid-template-columns: 40px minmax(0, 1fr);
        min-height: 140px;
        padding: 18px 15px;
    }

    .resource-tutorial-empty > a {
        grid-column: 1 / -1;
        text-align: center;
    }
}

html,
body {
    background: var(--bg);
}

body {
    background-image: none;
}

.topbar {
    height: 72px;
    padding: 0 28px;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 4px 18px rgba(33, 53, 64, .05);
}

.brand {
    color: var(--text);
    font-size: 25px;
    font-weight: 750;
    letter-spacing: 0;
}

.icon-button {
    color: #55717a;
    border: 1px solid transparent;
    border-radius: 10px;
}

.icon-button:hover {
    color: var(--blue);
    background: var(--blue-soft);
    transform: none;
}

.search {
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #f7f9fa;
    color: #62808a;
}

.search:focus-within {
    border-color: #8ac8bd;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(47, 143, 131, .10);
}

.sidebar {
    background: #fbfcfd;
    border-right: 1px solid var(--line);
}

.nav-item {
    min-height: 46px;
    margin: 3px 14px;
    border-radius: 10px;
    color: #61727c;
    font-weight: 650;
}

.nav-item:hover {
    color: var(--blue);
    background: #f0f7f5;
}

.nav-item.active {
    color: #217469;
    background: var(--blue-soft);
    box-shadow: inset 3px 0 0 #3da99b;
}

.nav-item.active .nav-icon,
.nav-item:hover .nav-icon {
    color: var(--blue);
}

.content {
    padding: 30px 34px 56px;
    background: var(--bg);
}

.launcher-feature,
.home-hero,
.works-showcase {
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.launcher-feature::before,
.home-hero::before,
.home-category-dock a::after {
    display: none;
}

.launcher-feature {
    min-height: 290px;
    padding: 38px 44px;
    background: #fff;
}

.launcher-feature h1,
.home-hero h1,
.works-showcase-head h2 {
    color: var(--text);
    font-weight: 750;
    letter-spacing: 0;
}

.launcher-feature h1 {
    max-width: 620px;
    font-size: clamp(34px, 4vw, 48px);
    line-height: 1.12;
}

.home-hero {
    min-height: 250px;
    background: #edf7f4;
}

.home-hero h1 {
    font-size: clamp(30px, 3.4vw, 42px);
}

.launcher-feature p,
.home-hero p,
.works-showcase-head p {
    color: var(--muted);
    line-height: 1.75;
}

.launcher-feature-copy > span,
.home-hero-copy > span {
    border: 1px solid #cde6e1;
    border-radius: 999px;
    background: #f0f8f6;
    color: #277b70;
    font-weight: 700;
}

.launcher-feature-actions a,
.home-hero-actions a,
.works-showcase-head > a {
    min-height: 42px;
    border: 1px solid #cfe0e3;
    border-radius: 10px;
    background: #f7fafb;
    color: #39717a;
    box-shadow: none;
    font-weight: 700;
}

.launcher-feature-actions a:first-child,
.home-hero-actions a:first-child {
    border-color: var(--blue);
    background: var(--blue);
    color: #fff;
    box-shadow: 0 8px 18px rgba(47, 143, 131, .20);
}

.launcher-feature-actions a:hover,
.home-hero-actions a:hover,
.works-showcase-head > a:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(33, 83, 86, .11);
}

.launcher-feature-actions a:first-child:hover,
.home-hero-actions a:first-child:hover {
    background: #287e73;
}

.launcher-showcase img {
    border: 1px solid #dce6e8;
    border-radius: 16px;
    box-shadow: 0 18px 34px rgba(33, 53, 64, .12);
}

.home-visual {
    opacity: .88;
}

.home-floating-card {
    border: 1px solid #d7e6e4;
    border-radius: 14px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 12px 24px rgba(33, 83, 86, .10);
}

.home-category-dock {
    gap: 12px;
    padding: 4px 0;
}

.home-category-dock a,
.work-card,
.resource-card,
.topic-card,
.editor-plugin-card,
.editor-version-row,
.notification-item,
.security-card,
.owner-card,
.settings-card,
.stat-card {
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 7px 18px rgba(33, 53, 64, .05);
}

.home-category-dock a {
    min-height: 92px;
    background: #fff;
}

.home-category-dock a:hover,
.work-card:hover,
.resource-card:hover,
.topic-card:hover,
.editor-plugin-card:hover {
    border-color: #a9d6ce;
    box-shadow: 0 12px 24px rgba(47, 143, 131, .12);
    transform: translateY(-2px);
}

.home-category-dock .icon,
.section-more .icon,
.topic-card-head .icon {
    color: var(--blue);
}

.work-card-body h3,
.resource-card h3,
.topic-card h3 {
    color: var(--text);
    font-weight: 700;
}

.work-card-body p,
.resource-card p,
.topic-card p {
    color: var(--muted);
}

/* Server directory cards share the same compact rhythm as resource cards. */
.minecraft-server-directory-grid {
    grid-template-columns: repeat(auto-fill, minmax(172px, 1fr));
    gap: 18px;
    align-items: start;
}

.minecraft-server-card {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 7px 18px rgba(33, 53, 64, .05);
}

.minecraft-server-card:hover {
    border-color: #a9d6ce;
    box-shadow: 0 12px 24px rgba(47, 143, 131, .12);
    transform: translateY(-2px);
}

.minecraft-server-card-cover {
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 10;
    padding: 10px;
}

.minecraft-server-card-kind {
    max-width: calc(100% - 72px);
    overflow: hidden;
    padding: 4px 7px;
    border-width: 1px;
    border-radius: 6px;
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.minecraft-server-card-cover-copy {
    display: none;
}

.minecraft-server-card-content {
    display: grid;
    align-content: start;
    min-height: 166px;
    padding: 11px 10px 9px;
}

.minecraft-server-card-heading {
    display: block;
}

.minecraft-server-card-heading > div > span {
    display: none;
}

.minecraft-server-card-heading h2 {
    margin: 0;
    overflow: hidden;
    font-size: 16px;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.minecraft-server-card-live {
    position: absolute;
    z-index: 2;
    top: 9px;
    right: 9px;
    min-height: 23px;
    gap: 5px;
    padding: 2px 6px;
    border-width: 1px;
    border-radius: 6px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 2px 7px rgba(26, 47, 57, .12);
    font-size: 9px;
}

.minecraft-server-card-live i {
    width: 6px;
    height: 6px;
    box-shadow: 0 0 0 3px rgba(243, 181, 65, .14);
}

.minecraft-server-card-content > p {
    margin: 7px 0 8px;
    overflow: hidden;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.45;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.minecraft-server-card-tags {
    flex-wrap: nowrap;
    gap: 4px;
    overflow: hidden;
}

.minecraft-server-card-tags span {
    flex: 0 1 auto;
    min-width: 0;
    overflow: hidden;
    padding: 3px 5px;
    border-width: 1px;
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.minecraft-server-card-tags span:nth-child(n + 3) {
    display: none;
}

.minecraft-server-card-facts {
    display: block;
    margin: 9px 0 0;
    padding-top: 0;
}

.minecraft-server-card-facts div {
    padding-left: 7px;
    border-left-width: 2px;
}

.minecraft-server-card-facts div:not(:first-child) {
    display: none;
}

.minecraft-server-card-facts dt {
    font-size: 9px;
}

.minecraft-server-card-facts dd {
    margin-top: 2px;
    font-size: 10px;
}

.minecraft-server-card-actions {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 6px;
    margin-top: 9px;
}

.minecraft-server-card-actions button,
.minecraft-server-card-actions a {
    width: 100%;
    min-width: 0;
    min-height: 34px;
    gap: 4px;
    padding: 0 7px;
    border-width: 1px;
    border-radius: 6px;
    box-shadow: none;
    font-size: 10px;
}

.minecraft-server-card-actions button span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.minecraft-server-card-actions .icon {
    width: 14px;
    height: 14px;
}

.minecraft-server-card-feedback {
    min-height: 12px;
    margin-top: 3px;
    overflow: hidden;
    font-size: 9px;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 720px) {
    .minecraft-server-directory-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .minecraft-server-card-cover {
        min-height: 0;
    }

    .minecraft-server-card-content {
        padding: 10px 9px 8px;
    }
}

@media (max-width: 420px) {
    .minecraft-server-directory-grid {
        gap: 8px;
    }
}

/* Server detail uses the same information hierarchy as resource detail pages. */
.server-resource-hero-cover {
    background: url("../images/background.webp") center 44% / cover no-repeat;
}

.server-resource-hero .minecraft-server-live-badge {
    min-height: 23px;
    gap: 6px;
    border: 1px solid #d7e4e0;
    border-radius: 999px;
    padding: 2px 8px;
    background: #f2f8f6;
    color: #3d5c54;
    font-size: 10px;
}

.server-resource-hero .minecraft-server-live-badge i {
    width: 7px;
    height: 7px;
}

.server-resource-hero-actions {
    display: grid;
    justify-items: end;
    gap: 5px;
}

.server-resource-hero-actions .resource-detail-action-split button {
    min-width: 112px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 0;
    border-left: 1px solid rgba(255, 255, 255, .38);
    border-radius: 0;
    padding: 0 14px;
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 760;
    cursor: pointer;
    white-space: nowrap;
}

.server-resource-hero-actions .resource-detail-action-split button:hover {
    background: #be6324;
}

.server-resource-hero-actions .minecraft-server-copy-feedback {
    min-height: 14px;
    max-width: 250px;
    margin: 0;
    color: #2f755f;
    font-size: 10px;
    text-align: right;
}

.server-detail-status {
    display: grid;
    grid-template-columns: 1fr;
    align-content: start;
    gap: 13px;
}

.server-detail-status header {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 8px;
    align-items: center;
    gap: 9px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.server-detail-status .minecraft-server-status-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 6px;
    background: var(--blue-soft);
    color: #2f8f73;
}

.server-detail-status .minecraft-server-status-icon .icon {
    width: 17px;
    height: 17px;
}

.server-detail-status header span:not(.minecraft-server-status-icon) {
    display: block;
    color: var(--muted);
    font-size: 10px;
}

.server-detail-status header strong {
    display: block;
    margin-top: 2px;
    overflow: hidden;
    color: var(--text);
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.server-detail-status .minecraft-server-status-dot {
    width: 8px;
    height: 8px;
}

.server-detail-status[data-state="online"] .minecraft-server-status-dot {
    background: #42b96f;
    box-shadow: 0 0 0 4px rgba(66, 185, 111, .14);
}

.server-detail-status[data-state="offline"] .minecraft-server-status-dot {
    background: #e26763;
    box-shadow: 0 0 0 4px rgba(226, 103, 99, .14);
}

.server-detail-status dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
}

.server-detail-status dl div {
    min-width: 0;
    padding: 9px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #f8fafb;
}

.server-detail-status .minecraft-server-address-row {
    grid-column: 1 / -1;
}

.server-detail-status dt {
    color: var(--muted);
    font-size: 9px;
}

.server-detail-status dd {
    overflow: hidden;
    margin: 3px 0 0;
    color: var(--text);
    font-size: 11px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.server-detail-status > p {
    margin: 0;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.5;
}

.server-sidebar-copy {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px solid #b9d7cf;
    border-radius: 6px;
    background: #edf7f4;
    color: #296c59;
    font: inherit;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}

.server-sidebar-copy:hover,
.server-sidebar-copy.copied {
    border-color: #8fc1b3;
    background: #dff2ec;
}

.server-sidebar-copy .icon {
    width: 14px;
    height: 14px;
}

.server-resource-panel {
    min-width: 0;
    margin: 0;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #fff;
}

.server-resource-panel header > span,
.server-resource-panel .minecraft-server-community-copy > span {
    color: #2f8f83;
    font-size: 11px;
    font-weight: 850;
}

.server-resource-panel h2,
.server-resource-panel .minecraft-server-community-copy h2 {
    margin: 6px 0 0;
    color: var(--text);
    font-size: 21px;
    line-height: 1.4;
}

.server-resource-panel p,
.server-resource-panel .minecraft-server-community-copy p,
.server-resource-panel.minecraft-server-progression li p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.8;
}

.server-resource-panel.minecraft-server-story {
    grid-template-columns: minmax(190px, .72fr) minmax(0, 1.28fr);
    gap: 28px;
}

.server-resource-panel.minecraft-server-story > div {
    gap: 10px;
}

.server-resource-panel.minecraft-server-progression {
    background: #f8fafb;
}

.server-resource-panel.minecraft-server-progression ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    margin-top: 22px;
}

.server-resource-panel.minecraft-server-progression li {
    padding: 18px 16px 0;
}

.server-resource-panel.minecraft-server-progression li:nth-child(3) {
    margin-top: 18px;
    padding-left: 0;
    border-left: 0;
}

.server-resource-panel.minecraft-server-progression li:nth-child(4) {
    margin-top: 18px;
}

.server-resource-panel.minecraft-server-community {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
}

.server-resource-panel .minecraft-server-system-list {
    gap: 7px;
}

.server-resource-panel .minecraft-server-system-list span {
    min-height: 30px;
    border-radius: 6px;
    padding: 4px 9px;
    font-size: 11px;
}

.server-resource-panel.minecraft-server-manifesto {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
    background: #f7faf9;
    color: var(--text);
}

.server-resource-panel.minecraft-server-manifesto p {
    margin: 0 0 5px;
    color: var(--muted);
    font-size: 12px;
}

.server-resource-panel.minecraft-server-manifesto strong {
    display: block;
    color: var(--text);
    font-size: 17px;
}

.server-join-address {
    display: block;
    margin-top: 16px;
    color: #2f7563;
    font-family: Consolas, monospace;
    font-size: 13px;
    font-weight: 800;
}

.server-resource-panel.minecraft-server-manifesto button {
    min-height: 40px;
    border: 1px solid #2f8f73;
    border-radius: 6px;
    padding: 0 14px;
    background: #2f8f73;
    color: #fff;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.server-resource-panel.minecraft-server-manifesto button:hover,
.server-resource-panel.minecraft-server-manifesto button.copied {
    background: #26785f;
}

.server-resource-panel.minecraft-server-manifesto .icon {
    width: 15px;
    height: 15px;
    margin-right: 6px;
    vertical-align: -3px;
}

@media (max-width: 860px) {
    .resource-detail .server-detail-status {
        grid-template-columns: 1fr;
    }

    .server-resource-panel.minecraft-server-story {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

@media (max-width: 560px) {
    .server-resource-hero-actions {
        display: grid;
        width: 100%;
        justify-items: stretch;
    }

    .server-resource-hero-actions .resource-detail-action-split {
        display: flex;
        width: 100%;
    }

    .server-resource-hero-actions .resource-detail-action-split > * {
        flex: 1 1 50%;
        min-width: 0;
        padding: 0 8px;
    }

    .server-resource-hero-actions .minecraft-server-copy-feedback {
        max-width: none;
        text-align: left;
    }

    .server-resource-panel {
        padding: 16px;
    }

    .server-resource-panel.minecraft-server-progression ol {
        grid-template-columns: 1fr;
        border-top: 0;
    }

    .server-resource-panel.minecraft-server-progression li,
    .server-resource-panel.minecraft-server-progression li:nth-child(3),
    .server-resource-panel.minecraft-server-progression li:nth-child(4) {
        margin-top: 0;
        padding: 14px 0;
        border-top: 1px solid #d9e3e5;
        border-left: 0;
    }

    .server-resource-panel.minecraft-server-manifesto {
        grid-template-columns: 1fr;
    }

    .server-resource-panel.minecraft-server-manifesto button {
        width: 100%;
    }
}

.home-stats div {
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 7px 18px rgba(33, 53, 64, .05);
}

.home-stats div:nth-child(4n + 1) { background: #eaf6f3; }
.home-stats div:nth-child(4n + 2) { background: #eef5fb; }
.home-stats div:nth-child(4n + 3) { background: #fff2ea; }
.home-stats div:nth-child(4n + 4) { background: #f1eff9; }

select,
.filter-dropdown legend button,
.filter-option-list,
.dropdown-filter .sort-field,
.filter-actions button,
.filter-actions a {
    border: 1px solid var(--line) !important;
    border-radius: 10px !important;
    box-shadow: none !important;
}

select:hover,
select:focus,
.filter-dropdown legend button:hover,
.filter-dropdown.open legend button {
    border-color: #9dcec6 !important;
    background-color: #f2faf8 !important;
    box-shadow: 0 0 0 3px rgba(47, 143, 131, .08) !important;
}

@media (max-width: 900px) {
    .content { padding: 22px 20px 84px; }
    .launcher-feature { padding: 30px; }
}

@media (max-width: 720px) {
    .topbar { height: 64px; padding: 8px 14px; }
    .brand { font-size: 21px; }
    .content { padding: 16px 14px 82px; }
    .launcher-feature, .home-hero, .works-showcase { border-radius: 16px; }
    .launcher-feature { min-height: 0; padding: 24px 20px; }
    .launcher-feature h1 { font-size: 32px; }
    .launcher-showcase { min-height: 160px; margin-top: 18px; }
    .home-hero { padding: 24px 20px; }
    .home-category-dock { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Homepage: resource-first discovery with a real Minecraft scene. */
.home-page {
    width: min(1320px, 100%);
    margin: 0 auto;
}

.home-page .home-hero {
    position: relative;
    min-height: 340px;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 1fr auto;
    align-content: stretch;
    gap: 26px;
    overflow: hidden;
    margin: 0 0 28px;
    border: 1px solid #273943;
    border-radius: 8px;
    padding: 34px 38px 24px;
    background: url("../images/background.webp") center 46% / cover no-repeat;
    box-shadow: 0 14px 30px rgba(28, 43, 52, .14);
    color: #fff;
}

.home-page .home-hero::before {
    position: absolute;
    inset: 0;
    background: rgba(13, 25, 31, .70);
    content: "";
    pointer-events: none;
}

.home-page .home-hero-copy,
.home-page .home-hero-stats {
    position: relative;
    z-index: 1;
}

.home-page .home-hero-copy {
    max-width: 720px;
    align-self: center;
}

.home-page .home-hero-copy > span {
    display: block;
    margin: 0 0 9px;
    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent;
    color: #a9e0d3;
    box-shadow: none;
    font-size: 12px;
    font-weight: 800;
}

.home-page .home-hero h1 {
    max-width: 720px;
    margin: 0;
    color: #fff;
    font-size: 38px;
    line-height: 1.18;
    letter-spacing: 0;
}

.home-page .home-hero p {
    max-width: 690px;
    margin: 12px 0 0;
    color: rgba(255, 255, 255, .82);
    font-size: 14px;
    line-height: 1.75;
}

.home-page .home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 20px;
}

.home-page .home-hero-actions a {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px solid rgba(255, 255, 255, .50);
    border-radius: 6px;
    padding: 0 14px;
    background: rgba(16, 29, 35, .52);
    color: #fff;
    box-shadow: none;
    font-size: 12px;
    font-weight: 800;
}

.home-page .home-hero-actions a:first-child {
    border-color: #48a98e;
    background: #2f8f73;
    color: #fff;
    box-shadow: 0 7px 16px rgba(10, 28, 32, .20);
}

.home-page .home-hero-actions a:hover,
.home-page .home-hero-actions a:first-child:hover {
    border-color: #78c8b1;
    background: #26785f;
    color: #fff;
    box-shadow: 0 8px 18px rgba(10, 28, 32, .24);
    transform: translateY(-1px);
}

.home-page .home-hero-actions .icon {
    width: 15px;
    height: 15px;
}

.home-hero-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid rgba(255, 255, 255, .24);
    padding-top: 16px;
}

.home-hero-stats div {
    min-width: 0;
    display: grid;
    gap: 3px;
    padding: 0 18px;
    border-left: 1px solid rgba(255, 255, 255, .18);
}

.home-hero-stats div:first-child {
    padding-left: 0;
    border-left: 0;
}

.home-hero-stats strong {
    color: #fff;
    font-size: 22px;
    line-height: 1;
}

.home-hero-stats span {
    color: rgba(255, 255, 255, .68);
    font-size: 10px;
    font-weight: 700;
}

.home-category-section {
    margin-bottom: 34px;
}

.home-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 14px;
}

.home-section-head > div > span {
    display: block;
    margin-bottom: 4px;
    color: #2f8f83;
    font-size: 10px;
    font-weight: 850;
}

.home-section-head h2,
.home-page .works-showcase-head h2 {
    margin: 0;
    color: var(--text);
    font-size: 23px;
    line-height: 1.25;
    letter-spacing: 0;
}

.home-section-head > a,
.home-page .works-showcase-head > a {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent;
    color: #397b73;
    box-shadow: none;
    font-size: 11px;
    font-weight: 800;
}

.home-section-head > a:hover,
.home-page .works-showcase-head > a:hover {
    color: #225f58;
    box-shadow: none;
    transform: none;
}

.home-section-head > a .icon,
.home-page .works-showcase-head > a .icon {
    width: 14px;
    height: 14px;
}

.home-page .home-category-dock {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
    gap: 10px;
    margin: 0;
    padding: 0;
}

.home-page .home-category-dock a {
    position: relative;
    min-width: 0;
    min-height: 78px;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 14px;
    align-items: center;
    gap: 10px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 7px;
    padding: 12px;
    background: #fff;
    box-shadow: 0 5px 14px rgba(33, 53, 64, .05);
}

.home-page .home-category-dock a::after {
    display: none;
}

.home-page .home-category-dock a:hover {
    border-color: #a8cbc5;
    box-shadow: 0 9px 20px rgba(44, 91, 88, .10);
    transform: translateY(-2px);
}

.home-category-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 6px;
    background: #e8f4f1;
    color: #2f8f73;
}

.home-page .home-category-dock a:nth-child(4n + 2) .home-category-icon {
    background: #edf4fa;
    color: #4f87ad;
}

.home-page .home-category-dock a:nth-child(4n + 3) .home-category-icon {
    background: #fbf0f3;
    color: #b86b80;
}

.home-page .home-category-dock a:nth-child(4n + 4) .home-category-icon {
    background: #fbf5e8;
    color: #a9792f;
}

.home-category-icon .icon {
    width: 19px;
    height: 19px;
}

.home-category-copy {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.home-page .home-category-dock .home-category-copy strong {
    display: -webkit-box;
    overflow: hidden;
    color: var(--text);
    font-size: 13px;
    line-height: 1.3;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.home-category-copy small {
    overflow: hidden;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-page .home-category-dock > a > .icon {
    width: 14px;
    height: 14px;
    color: #8a999f;
}

.home-page .home-recent-showcase {
    margin: 0;
    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
}

.home-page .works-showcase-head {
    align-items: end;
    margin-bottom: 14px;
}

.home-page .works-showcase-head p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 11px;
}

.home-page .works-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}

.home-page .work-card {
    border: 1px solid var(--line);
    border-radius: 7px;
    box-shadow: 0 6px 16px rgba(33, 53, 64, .05);
}

.home-page .work-card:hover {
    border-color: #a8cbc5;
    box-shadow: 0 10px 22px rgba(44, 91, 88, .11);
    transform: translateY(-2px);
}

.home-page .work-cover {
    min-height: 0;
    aspect-ratio: 16 / 10;
}

.home-page .work-card-body {
    gap: 7px;
    padding: 12px;
}

.home-page .work-card-body > span {
    color: #397b73;
    font-size: 10px;
}

.home-page .work-card-body h3 {
    font-size: 15px;
}

.home-page .work-card-body p {
    min-height: 36px;
    display: -webkit-box;
    overflow: hidden;
    font-size: 11px;
    line-height: 1.6;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.home-page .work-card .resource-badges {
    margin-top: 2px;
}

.home-page .work-card .resource-badges span:nth-child(n + 3) {
    display: none;
}

@media (max-width: 900px) {
    .home-page .home-hero {
        min-height: 330px;
        padding: 30px 28px 22px;
    }
}

@media (max-width: 560px) {
    .home-page .home-hero {
        min-height: 400px;
        gap: 22px;
        margin-bottom: 24px;
        padding: 25px 20px 20px;
        background-position: 58% center;
    }

    .home-page .home-hero h1 {
        font-size: 30px;
    }

    .home-page .home-hero p {
        font-size: 12px;
        line-height: 1.7;
    }

    .home-page .home-hero-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .home-page .home-hero-actions a {
        min-width: 0;
        padding: 0 8px;
        font-size: 11px;
    }

    .home-hero-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 13px 0;
    }

    .home-hero-stats div:nth-child(3) {
        padding-left: 0;
        border-left: 0;
    }

    .home-page .home-category-dock {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .home-page .home-category-dock a {
        min-height: 70px;
        grid-template-columns: 34px minmax(0, 1fr) 12px;
        gap: 8px;
        padding: 10px;
    }

    .home-category-icon {
        width: 34px;
        height: 34px;
    }

    .home-category-copy small {
        display: none;
    }

    .home-page .home-category-dock .home-category-copy strong {
        overflow: visible;
        font-size: 12px;
        text-overflow: clip;
        white-space: normal;
    }

    .home-section-head h2,
    .home-page .works-showcase-head h2 {
        font-size: 20px;
    }

    .home-page .works-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .home-page .work-card-body {
        padding: 9px;
    }

    .home-page .work-card-body p {
        min-height: 34px;
    }
}

/* Resource guides */
.guide-page {
    max-width: 1440px;
    margin: 0 auto;
}

.guide-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    margin: 18px 0 22px;
    padding: 34px 38px;
    border: 1px solid #d6e7e4;
    border-radius: 18px;
    background: #edf8f5;
}

.guide-kicker {
    display: block;
    color: #287b71;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.2px;
}

.guide-hero h1 { margin: 8px 0 8px; color: var(--text); font-size: clamp(30px, 4vw, 46px); }
.guide-hero p { max-width: 700px; margin: 0; color: var(--muted); line-height: 1.75; }
.guide-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.guide-back-link, .guide-edit-link, .guide-settings-form button, .guide-sidebar-head a { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 14px; border: 1px solid #cfe0e3; border-radius: 9px; background: #fff; color: #39717a; font-weight: 700; text-decoration: none; }
.guide-edit-link, .guide-settings-form button { border-color: var(--blue); background: var(--blue); color: #fff; }
.guide-reading-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr) 190px; align-items: start; gap: 28px; }
.guide-sidebar { position: sticky; top: 92px; padding: 12px; border-right: 1px solid var(--line); }
.guide-sidebar-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 8px 12px; color: var(--text); }
.guide-sidebar-head span { color: var(--muted); font-size: 12px; }
.guide-sidebar-head a { min-height: 30px; padding: 0 10px; font-size: 12px; }
.guide-sidebar-item { display: block; margin: 3px 0; padding: 10px 12px; border-left: 3px solid transparent; border-radius: 7px; color: #59717a; text-decoration: none; }
.guide-sidebar-item:hover { background: #f0f7f5; color: var(--blue); }
.guide-sidebar-item.active { border-left-color: var(--blue); background: var(--blue-soft); color: #216e66; }
.guide-sidebar-item span, .guide-sidebar-item small { display: block; }
.guide-sidebar-item span { font-weight: 700; }
.guide-sidebar-item small { margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.guide-article { min-width: 0; padding: 12px 22px 34px; }
.guide-article-head { padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.guide-article-head > span { color: var(--blue); font-size: 12px; font-weight: 800; }
.guide-article-head h2 { margin: 7px 0; color: var(--text); font-size: 32px; }
.guide-article-head p { margin: 0; color: var(--muted); }
.guide-article-content { padding: 28px 0; color: #33444c; font-size: 16px; line-height: 1.85; }
.guide-article-content h1, .guide-article-content h2, .guide-article-content h3 { color: var(--text); line-height: 1.35; }
.guide-article-content img { max-width: 100%; height: auto; border-radius: 10px; }
.guide-article-content pre { overflow: auto; padding: 14px 16px; border-radius: 9px; background: #17242b; color: #e7f2ef; }
.guide-article-content code { padding: 2px 5px; border-radius: 4px; background: #edf3f3; }
.guide-article-content pre code { padding: 0; background: transparent; }
.guide-page-outline { position: sticky; top: 92px; display: grid; gap: 8px; padding: 14px 0 14px 18px; border-left: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 1.6; }
.guide-page-outline strong { color: var(--text); font-size: 13px; }
.guide-next-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding-top: 22px; border-top: 1px solid var(--line); }
.guide-next-nav a { display: grid; gap: 5px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 10px; color: var(--text); text-decoration: none; }
.guide-next-nav a:last-child { text-align: right; }
.guide-next-nav small { color: var(--muted); }
.guide-next-nav strong { color: var(--blue); }
.guide-empty { display: grid; justify-items: center; gap: 10px; padding: 80px 20px; border: 1px solid var(--line); border-radius: 16px; background: #fff; text-align: center; }
.guide-empty strong { color: var(--text); font-size: 20px; }
.guide-empty p { margin: 0 0 8px; color: var(--muted); }
.resource-guide-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 16px; margin: 22px 0; padding: 18px 20px; border: 1px solid #cfe5e0; border-radius: 14px; background: #f4fbf9; }
.resource-guide-card-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #dff2ed; color: var(--blue); }
.resource-guide-card h2 { margin: 2px 0 4px; color: var(--text); font-size: 18px; }
.resource-guide-card p { margin: 0 0 3px; color: var(--muted); font-size: 13px; }
.resource-guide-card small { color: #3c8b80; font-weight: 700; }
.guide-card-link, .guide-card-edit { padding: 9px 12px; border-radius: 8px; text-decoration: none; font-weight: 700; }
.guide-card-link { background: var(--blue); color: #fff; }
.guide-card-edit { color: var(--blue); }
.guide-settings-form { display: grid; grid-template-columns: minmax(160px, .7fr) minmax(240px, 1.6fr) 120px auto; align-items: end; gap: 12px; margin-bottom: 20px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.guide-settings-form label, .guide-section-fields label { display: grid; gap: 6px; color: var(--muted); font-size: 12px; font-weight: 700; }
.guide-settings-form input, .guide-settings-form select, .guide-section-fields input, .guide-section-fields select { width: 100%; min-height: 40px; box-sizing: border-box; }
.guide-editor-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 22px; align-items: start; }
.guide-editor-sidebar { position: static; min-height: 120px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.guide-sidebar-empty { margin: 18px 8px; color: var(--muted); font-size: 13px; }
.guide-section-editor { min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.guide-section-editor-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.guide-section-editor-head span { color: var(--blue); font-size: 12px; font-weight: 700; }
.guide-section-editor-head h2 { margin: 4px 0 0; color: var(--text); }
.guide-section-fields { display: grid; grid-template-columns: minmax(160px, 1fr) minmax(180px, 1.5fr) 100px 120px; gap: 12px; margin-bottom: 18px; }
.guide-editor-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; color: var(--muted); font-size: 12px; }

/* Collapsed user administration */
.admin-user-list { display: grid; gap: 10px; }
.admin-user-card { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 5px 16px rgba(33, 53, 64, .04); }
.admin-user-summary { display: grid; grid-template-columns: minmax(240px, 1.4fr) minmax(360px, 1fr) 22px; align-items: center; gap: 14px; min-height: 74px; padding: 12px 16px; cursor: pointer; list-style: none; }
.admin-user-summary::-webkit-details-marker { display: none; }
.admin-user-summary-main, .admin-user-summary-meta { display: flex; align-items: center; gap: 10px; min-width: 0; }
.admin-user-summary-main > span:last-child { display: grid; gap: 4px; min-width: 0; }
.admin-user-summary-main strong, .admin-user-summary-main small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-user-summary-main small, .admin-user-summary-meta small { color: var(--muted); font-size: 12px; }
.admin-user-summary-meta { justify-content: flex-end; flex-wrap: wrap; }
.admin-user-role-list { color: #3b7f76; font-size: 12px; font-weight: 700; }
.admin-user-chevron { color: var(--muted); font-size: 20px; transition: transform .18s ease; }
.admin-user-card[open] .admin-user-chevron { transform: rotate(180deg); }
.admin-user-panel { display: grid; gap: 16px; padding: 0 16px 16px; border-top: 1px solid var(--line); background: #fbfcfd; }
.admin-user-audit { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 13px 0 0; color: var(--muted); font-size: 12px; }
.admin-user-audit strong { color: var(--text); }
.admin-user-controls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.admin-user-control-card { display: grid; align-content: start; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.admin-user-control-card h3 { margin: 0; color: var(--text); font-size: 14px; }
.admin-user-control-card label { display: grid; gap: 5px; color: var(--muted); font-size: 12px; }
.admin-user-form-row { display: grid; grid-template-columns: minmax(88px, .45fr) minmax(100px, 1fr) auto; gap: 7px; }
.admin-user-actions { display: flex; align-items: center; gap: 10px; }
.admin-user-actions form { margin: 0; }

@media (max-width: 1050px) {
    .guide-reading-layout { grid-template-columns: 210px minmax(0, 1fr); }
    .guide-page-outline { display: none; }
    .admin-user-summary { grid-template-columns: minmax(220px, 1fr) minmax(260px, 1fr) 22px; }
    .admin-user-controls { grid-template-columns: 1fr 1fr; }
    .admin-user-control-card:last-child { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
    .guide-hero { display: grid; align-items: start; padding: 24px 20px; }
    .guide-reading-layout, .guide-editor-layout { grid-template-columns: 1fr; gap: 12px; }
    .guide-sidebar, .guide-page-outline { position: static; border: 1px solid var(--line); border-radius: 10px; }
    .guide-sidebar-item { display: inline-block; width: calc(50% - 8px); vertical-align: top; box-sizing: border-box; }
    .guide-article { padding: 12px 4px 28px; }
    .guide-article-head h2 { font-size: 26px; }
    .guide-settings-form, .guide-section-fields { grid-template-columns: 1fr 1fr; }
    .guide-settings-intro { grid-column: 1 / -1; }
    .guide-settings-form button { grid-column: 1 / -1; }
    .resource-guide-card { grid-template-columns: auto minmax(0, 1fr); }
    .guide-card-link, .guide-card-edit { grid-column: 2; width: fit-content; }
    .admin-user-summary { grid-template-columns: 1fr 22px; gap: 8px; }
    .admin-user-summary-meta { grid-column: 1 / -1; justify-content: flex-start; padding-left: 48px; }
    .admin-user-controls { grid-template-columns: 1fr; }
    .admin-user-control-card:last-child { grid-column: auto; }
    .admin-user-form-row { grid-template-columns: 1fr 1fr; }
    .admin-user-form-row button { grid-column: 1 / -1; }
}

/* Docusaurus tutorial hub and manager */
.guide-hub-page {
    max-width: 1360px;
}

.guide-hub-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    margin: 18px 0 28px;
    padding: 28px 4px 24px;
    border-bottom: 1px solid var(--line);
}

.guide-hub-header h1 {
    margin: 7px 0 8px;
    color: var(--text);
    font-size: 38px;
    line-height: 1.15;
    letter-spacing: 0;
}

.guide-hub-header p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
}

.guide-section-label {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.guide-section-label span {
    color: var(--blue);
    font-size: 12px;
    font-weight: 800;
}

.guide-section-label strong {
    color: var(--text);
    font-size: 17px;
}

.guide-featured-section,
.guide-library-section {
    margin-bottom: 28px;
}

.guide-featured-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
    min-height: 210px;
    padding: 32px 34px;
    border: 1px solid #b8d8d3;
    border-left: 5px solid #2f8f83;
    border-radius: 8px;
    background: #f3faf8;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(34, 72, 77, .07);
}

.guide-featured-card:hover {
    border-color: #85beb6;
    color: inherit;
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(34, 72, 77, .11);
}

.guide-featured-copy {
    max-width: 760px;
}

.guide-featured-badge {
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 5px;
    background: #dcedea;
    color: #216e66;
    font-size: 11px;
    font-weight: 800;
}

.guide-featured-copy h2 {
    margin: 11px 0 8px;
    color: #20343d;
    font-size: 30px;
    letter-spacing: 0;
}

.guide-featured-copy p {
    margin: 0;
    color: #647a82;
    line-height: 1.75;
}

.guide-featured-copy > div {
    display: flex;
    gap: 16px;
    margin-top: 16px;
    color: #72868e;
    font-size: 12px;
}

.guide-featured-arrow {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #2f8f83;
    color: #fff;
}

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

.guide-library-card {
    display: flex;
    flex-direction: column;
    min-height: 220px;
    padding: 20px;
    border: 1px solid var(--line);
    border-top: 4px solid #4d89b8;
    border-radius: 8px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(33, 53, 64, .05);
}

.guide-library-card-2 { border-top-color: #d09a45; }
.guide-library-card-3 { border-top-color: #c76b69; }
.guide-library-card.is-featured { border-color: #9bc9c2; border-top-color: #2f8f83; background: #f1f9f7; }
.guide-library-card:hover { color: inherit; transform: translateY(-2px); box-shadow: 0 12px 24px rgba(33, 53, 64, .09); }
.guide-library-card-icon { display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 15px; border-radius: 7px; background: #eaf2f8; color: #397aa8; }
.guide-library-card.is-featured .guide-library-card-icon { background: #dceeea; color: #287c71; }
.guide-library-card-2 .guide-library-card-icon { background: #fff4e2; color: #a56f23; }
.guide-library-card-3 .guide-library-card-icon { background: #fceeed; color: #a95654; }
.guide-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.guide-card-top > span { padding: 4px 7px; border-radius: 5px; background: #f1f4f5; color: #7b8b92; font-size: 10px; font-weight: 800; }
.guide-library-card.is-featured .guide-card-top > span { background: #dceeea; color: #216e66; }
.guide-library-card h3 { margin: 5px 0 7px; color: var(--text); font-size: 18px; letter-spacing: 0; }
.guide-library-card p { display: -webkit-box; overflow: hidden; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.guide-card-meta { display: flex; flex-wrap: wrap; gap: 5px 12px; margin-top: 13px; color: #84929a; font-size: 10px; }
.guide-library-card > strong { display: flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 16px; color: var(--blue); font-size: 12px; }
.guide-library-card > strong svg { width: 15px; }

.guide-hub-empty {
    display: grid;
    justify-items: center;
    gap: 9px;
    padding: 70px 20px;
    border: 1px dashed #c9d9dd;
    border-radius: 8px;
    background: #f9fbfb;
    text-align: center;
}
.guide-hub-empty > div { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 8px; background: #eaf4f2; color: var(--blue); }
.guide-hub-empty strong { color: var(--text); font-size: 20px; }
.guide-hub-empty p { margin: 0; color: var(--muted); }
.guide-hub-empty a { margin-top: 7px; padding: 9px 13px; border-radius: 7px; background: var(--blue); color: #fff; text-decoration: none; font-weight: 700; }

.guide-manager-layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    align-items: start;
    gap: 18px;
}

.guide-manager-nav {
    position: sticky;
    top: 92px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.guide-manager-nav-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px;
    border-bottom: 1px solid var(--line);
    background: #f6f9fa;
}
.guide-manager-nav-head > div { display: grid; gap: 3px; }
.guide-manager-nav-head span { color: var(--muted); font-size: 11px; }
.guide-manager-nav-head strong { color: var(--text); font-size: 15px; }
.guide-manager-nav-head a { padding: 7px 9px; border-radius: 6px; background: var(--blue); color: #fff; font-size: 12px; font-weight: 700; text-decoration: none; }
.guide-manager-nav-item { display: grid; gap: 4px; padding: 12px 14px; border-left: 3px solid transparent; border-bottom: 1px solid #edf1f2; color: #536a74; text-decoration: none; }
.guide-manager-nav-item:hover { background: #f3f8f7; color: var(--blue); }
.guide-manager-nav-item.active { border-left-color: var(--blue); background: #eaf5f2; color: #216e66; }
.guide-manager-nav-item span { overflow: hidden; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.guide-manager-nav-item small { color: #87969d; font-size: 11px; }
.guide-manager-nav > p { margin: 0; padding: 20px 14px; color: var(--muted); font-size: 12px; }
.guide-manager-main { display: grid; gap: 16px; min-width: 0; }
.guide-meta-panel, .guide-chapter-panel { padding: 20px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.guide-manager-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.guide-manager-panel-head span { color: var(--blue); font-size: 11px; font-weight: 800; }
.guide-manager-panel-head h2 { margin: 3px 0 0; color: var(--text); font-size: 20px; letter-spacing: 0; }
.guide-manager-panel-head > a { padding: 8px 11px; border: 1px solid #bcd6d2; border-radius: 6px; color: var(--blue); font-size: 12px; font-weight: 700; text-decoration: none; }
.guide-manager-main .guide-settings-form { grid-template-columns: minmax(180px, 1fr) minmax(220px, 1.5fr) 90px 110px; margin: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; }
.guide-feature-toggle { display: flex !important; align-items: center; gap: 8px !important; grid-column: 1 / -1; min-height: 38px; color: #48626d !important; }
.guide-feature-toggle input[type="checkbox"] { width: 18px; min-height: 18px; }
.guide-delete-form { display: flex; justify-content: flex-end; margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.guide-chapter-tabs { display: flex; gap: 7px; overflow-x: auto; margin-bottom: 14px; padding-bottom: 5px; }
.guide-chapter-tabs a { display: grid; flex: 0 0 155px; gap: 3px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 6px; background: #f9fbfb; color: #5b717a; text-decoration: none; }
.guide-chapter-tabs a.active { border-color: #83bfb6; background: #eaf5f2; color: #216e66; }
.guide-chapter-tabs span { overflow: hidden; font-size: 12px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.guide-chapter-tabs small { color: #87969d; font-size: 10px; }
.guide-manager-main .guide-section-editor { padding: 16px 0 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; }
.guide-file-panel { padding: 20px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.guide-file-upload-button { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 11px; border: 1px solid #bcd6d2; border-radius: 6px; color: var(--blue); font-size: 12px; font-weight: 750; cursor: pointer; }
.guide-file-upload-button:hover { border-color: var(--blue); background: #edf7f5; }
.guide-file-upload-button svg { width: 15px; height: 15px; }
.guide-file-upload-button input { display: none; }
.guide-file-help { margin: -6px 0 14px; color: var(--muted); font-size: 11px; }
.guide-file-list { display: grid; gap: 7px; }
.guide-file-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) 32px 32px; align-items: center; gap: 8px; min-width: 0; padding: 8px 10px; border: 1px solid #dbe5e7; border-radius: 7px; background: #f9fbfb; }
.guide-file-type { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 6px; background: #eaf5f2; color: #27766d; }
.guide-file-type svg { width: 17px; height: 17px; }
.guide-file-name { display: grid; min-width: 0; }
.guide-file-name strong { overflow: hidden; color: var(--text); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.guide-file-name small { color: var(--muted); font-size: 10px; }
.guide-file-row > a, .guide-file-row > button { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 1px solid #cddcdf; border-radius: 6px; background: #fff; color: #47707a; cursor: pointer; }
.guide-file-row > a:hover { border-color: var(--blue); color: var(--blue); }
.guide-file-row > button { border-color: #edcfcc; color: #af3830; }
.guide-file-row > button:hover { border-color: #af3830; background: #af3830; color: #fff; }
.guide-file-row > a svg, .guide-file-row > button svg { width: 14px; height: 14px; }
.guide-file-empty { margin: 0; padding: 16px 8px; color: var(--muted); font-size: 12px; text-align: center; }
.guide-file-status { min-height: 17px; margin-top: 8px; color: var(--blue); font-size: 11px; }
.guide-file-status.error { color: #af3830; }

/* Tutorial preview inside the resource detail */
.resource-tutorial-showcase { margin: 24px 0; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.resource-tutorial-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 13px; }
.resource-tutorial-head h2 { margin: 3px 0 4px; color: var(--text); font-size: 21px; }
.resource-tutorial-head p { margin: 0; color: var(--muted); font-size: 12px; }
.resource-tutorial-head > div:last-child { display: flex; gap: 8px; }
.resource-tutorial-head a { padding: 8px 10px; border: 1px solid #cbdcdf; border-radius: 6px; color: #47707a; font-size: 12px; font-weight: 700; text-decoration: none; }
.resource-tutorial-head .resource-tutorial-edit { border-color: var(--blue); background: var(--blue); color: #fff; }
.resource-tutorial-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.resource-tutorial-mini-card { display: flex; flex-direction: column; min-height: 162px; padding: 14px; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: inherit; text-decoration: none; }
.resource-tutorial-mini-card.featured { border-color: #9dcac3; background: #eff8f6; }
.resource-tutorial-mini-card:hover { color: inherit; transform: translateY(-2px); box-shadow: 0 9px 20px rgba(33, 53, 64, .08); }
.resource-tutorial-mini-card > div { display: grid; place-items: center; width: 32px; height: 32px; margin-bottom: 9px; border-radius: 6px; background: #edf3f7; color: #447ea6; }
.resource-tutorial-mini-card.featured > div { background: #dceeea; color: #287c71; }
.resource-tutorial-mini-card > span { color: #7b8b92; font-size: 10px; font-weight: 750; }
.resource-tutorial-mini-card > strong { overflow: hidden; margin-top: 3px; color: var(--text); font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.resource-tutorial-mini-card p { display: -webkit-box; overflow: hidden; margin: 5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.resource-tutorial-mini-card small { display: flex; align-items: center; gap: 5px; margin-top: auto; padding-top: 9px; color: var(--blue); font-size: 10px; font-weight: 750; }
.resource-tutorial-mini-card small svg { width: 13px; }
.resource-tutorial-empty { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px; border: 1px dashed #ccdadd; border-radius: 7px; color: var(--muted); font-size: 12px; }
.resource-tutorial-empty a { color: var(--blue); font-weight: 700; }

/* Admin users: one clearly separated card for each account */
.admin-page { max-width: 1540px; margin: 0 auto; }
.admin-page .admin-head { border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: 0 10px 26px rgba(33, 53, 64, .06); }
.admin-page .admin-tabs a { border-radius: 6px; }
.admin-page .admin-search { margin: 16px 0; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: 0 7px 18px rgba(33, 53, 64, .04); }
.admin-user-list { gap: 12px; }
.admin-user-card { overflow: hidden; border: 1px solid #d9e4e7; border-radius: 8px; background: #fff; box-shadow: 0 7px 18px rgba(33, 53, 64, .05); }
.admin-user-disclosure { margin: 0; }
.admin-user-summary { min-height: 86px; padding: 14px 18px; background: #fff; }
.admin-user-summary:hover { background: #f8fbfb; }
.admin-user-summary-main .menu-avatar { width: 54px; height: 54px; border-radius: 7px; }
.admin-user-summary-main strong { color: #20323b; font-size: 16px; }
.admin-user-summary-main small { color: #75878f; }
.admin-user-summary-meta { gap: 8px 14px; }
.admin-user-summary-meta > strong { color: #2c4752; }
.admin-user-chevron { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 5px; background: #eef4f4; }
.admin-user-disclosure[open] .admin-user-chevron { transform: rotate(180deg); }
.admin-user-panel { padding: 0 18px 18px; background: #f8fafb; }
.admin-user-audit { padding: 14px 0; border-bottom: 1px solid #e1e8eb; }
.admin-user-controls { gap: 0; border-bottom: 1px solid #e1e8eb; }
.admin-user-control-card { padding: 16px 18px; border: 0; border-right: 1px solid #e1e8eb; border-radius: 0; background: transparent; box-shadow: none; }
.admin-user-control-card:last-child { border-right: 0; }
.admin-user-control-card h3 { color: #2a3d46; }
.admin-user-control-card input,
.admin-user-control-card select {
    width: 100%;
    min-width: 0;
    min-height: 38px;
    box-sizing: border-box;
    padding: 0 10px;
    border: 1px solid #ccdadd;
    border-radius: 6px;
    background: #fff;
    color: #2b3e47;
    font: inherit;
}
.admin-user-control-card input:focus,
.admin-user-control-card select:focus { border-color: #69ada4; outline: 0; box-shadow: 0 0 0 3px rgba(47, 143, 131, .09); }
.admin-user-control-card button {
    min-height: 38px;
    padding: 0 13px;
    border: 1px solid #2f8f83;
    border-radius: 6px;
    background: #2f8f83;
    color: #fff;
    font-weight: 750;
    white-space: nowrap;
}
.admin-user-control-card button:hover { background: #267c72; }
.admin-user-control-card button:disabled { border-color: #d8e1e3; background: #edf1f2; color: #8b989e; }
.admin-user-actions { justify-content: flex-end; padding-top: 14px; }

/* Docusaurus package import is independent from ordinary tutorial attachments. */
.guide-import-panel {
    display: grid;
    gap: 16px;
    padding: 22px;
    border: 1px solid #d9e4e5;
    border-radius: 7px;
    background: #fff;
}
.guide-import-limit { color: #70858d; font-size: 12px; font-weight: 650; }
.guide-import-modes {
    display: inline-grid;
    grid-template-columns: 1fr 1fr;
    justify-self: start;
    padding: 3px;
    border: 1px solid #d5e0e2;
    border-radius: 7px;
    background: #f2f6f6;
}
.guide-import-modes button {
    min-height: 34px;
    padding: 0 16px;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: #61747c;
    font-weight: 720;
    cursor: pointer;
}
.guide-import-modes button.active { background: #fff; color: #237b70; box-shadow: 0 1px 3px rgba(25, 55, 62, .12); }
.guide-import-modes button:disabled { cursor: not-allowed; opacity: .45; }
.guide-import-fields { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.guide-import-fields label { display: grid; gap: 6px; color: #465b64; font-size: 12px; font-weight: 720; }
.guide-import-fields input, .guide-import-fields select {
    width: 100%; min-height: 40px; box-sizing: border-box; padding: 0 11px; border: 1px solid #cbdadc; border-radius: 6px; background: #fff; color: #243c45; font: inherit;
}
.guide-import-fields input:focus, .guide-import-fields select:focus { border-color: #5aa398; outline: 0; box-shadow: 0 0 0 3px rgba(47, 143, 131, .1); }
.guide-import-drop {
    display: grid;
    justify-items: center;
    gap: 7px;
    padding: 24px 18px;
    border: 1px dashed #9ebbbc;
    border-radius: 7px;
    background: #f6f9f9;
    color: #2e4c54;
    text-align: center;
    cursor: pointer;
}
.guide-import-drop:hover { border-color: #2f8f83; background: #f0f8f6; }
.guide-import-drop svg { width: 24px; height: 24px; color: #2f8f83; }
.guide-import-drop small { color: #778a91; font-weight: 500; }
.guide-import-drop input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.guide-import-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.guide-import-actions button { min-height: 38px; padding: 0 15px; border: 1px solid #2f8f83; border-radius: 6px; background: #fff; color: #277e74; font-weight: 750; }
.guide-import-actions .guide-import-commit { background: #2f8f83; color: #fff; }
.guide-import-actions button:disabled { border-color: #d8e1e3; background: #edf2f2; color: #91a0a5; }
.guide-import-actions span { color: #44716b; font-size: 12px; font-weight: 650; }
.guide-import-actions span.error { color: #b42318; }
.guide-import-preview { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; padding-top: 16px; border-top: 1px solid #e0e8e9; }
.guide-import-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid #dae5e6; border-radius: 6px; overflow: hidden; }
.guide-import-stats span { display: grid; gap: 2px; padding: 10px 12px; border-right: 1px solid #dae5e6; color: #71848b; font-size: 11px; }
.guide-import-stats span:last-child { border-right: 0; }
.guide-import-stats strong { color: #29464f; font-size: 16px; }
.guide-import-tree { max-height: 320px; overflow: auto; padding: 12px 14px; border: 1px solid #dce6e7; border-radius: 6px; background: #fbfcfc; }
.guide-import-tree ul { display: grid; gap: 5px; margin: 0; padding: 0 0 0 18px; list-style: none; }
.guide-import-tree > ul { padding-left: 0; }
.guide-import-tree li > span { display: block; padding: 4px 7px; color: #415b64; font-size: 12px; }
.guide-import-tree .is-category > span { color: #274a51; font-weight: 760; }
.guide-import-tree .is-category > span::before { content: '目录  '; color: #2f8f83; font-size: 10px; }
.guide-import-tree .is-chapter > span::before { content: '文档  '; color: #8b9ba0; font-size: 10px; }
.guide-import-warnings { display: grid; gap: 5px; }
.guide-import-warnings p { margin: 0; padding: 8px 10px; border-left: 3px solid #d89b35; background: #fff9eb; color: #765515; font-size: 12px; }

@media (max-width: 1100px) {
    .guide-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .resource-tutorial-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .guide-manager-main .guide-settings-form { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
    .guide-hub-header { display: grid; padding-top: 18px; }
    .guide-hub-header h1 { font-size: 30px; }
    .guide-featured-card { min-height: 0; padding: 23px 20px; }
    .guide-featured-copy h2 { font-size: 24px; }
    .guide-featured-arrow { width: 40px; height: 40px; }
    .guide-card-grid, .guide-manager-layout, .guide-manager-main .guide-settings-form { grid-template-columns: 1fr; }
    .guide-page-editor,
    .guide-page-editor .guide-manager-layout,
    .guide-page-editor .guide-manager-main,
    .guide-page-editor .guide-meta-panel,
    .guide-page-editor .guide-chapter-panel,
    .guide-page-editor .guide-import-panel,
    .guide-page-editor .guide-file-panel,
    .guide-page-editor .guide-section-editor,
    .guide-page-editor .guide-settings-form,
    .guide-page-editor .ck-editor { width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; }
    .guide-page-editor input, .guide-page-editor select, .guide-page-editor textarea { min-width: 0; max-width: 100%; }
    .guide-page-editor .guide-manager-panel-head { flex-wrap: wrap; }
    .guide-manager-nav { position: static; }
    .guide-feature-toggle { grid-column: auto; }
    .resource-tutorial-head { display: grid; align-items: start; }
    .resource-tutorial-row { display: flex; overflow-x: auto; padding-bottom: 6px; }
    .resource-tutorial-mini-card { flex: 0 0 205px; }
    .admin-page,
    .admin-page .admin-head,
    .admin-page .admin-search,
    .admin-user-list,
    .admin-user-card,
    .admin-user-disclosure,
    .admin-user-summary { width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; }
    .admin-page .admin-head { overflow: hidden; padding: 18px 16px; }
    .admin-page .admin-tabs { width: 100%; min-width: 0; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 5px; scrollbar-width: none; }
    .admin-page .admin-tabs::-webkit-scrollbar { display: none; }
    .admin-page .admin-tabs a { flex: 0 0 auto; }
    .admin-page .admin-search { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; }
    .admin-page .admin-search input { width: 100%; min-width: 0; }
    .admin-user-summary { grid-template-columns: minmax(0, 1fr) 24px; gap: 9px; padding: 13px 14px; }
    .admin-user-summary-main { grid-column: 1 / -1; }
    .admin-user-summary-main .menu-avatar { width: 48px; height: 48px; }
    .admin-user-summary-meta { grid-column: 1; grid-row: 2; justify-content: flex-start; padding-left: 58px; }
    .admin-user-chevron { grid-column: 2; grid-row: 2; justify-self: end; }
    .admin-user-panel { padding: 0 14px 14px; }
    .admin-user-form-row { grid-template-columns: minmax(0, 1fr); }
    .admin-user-form-row button { grid-column: auto; }
    .admin-user-control-card { border-right: 0; border-bottom: 1px solid #e1e8eb; }
    .admin-user-control-card:last-child { border-bottom: 0; }
    .guide-import-panel { padding: 17px 14px; }
    .guide-import-modes { width: 100%; }
    .guide-import-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .guide-import-stats span:nth-child(2) { border-right: 0; }
    .guide-import-stats span:nth-child(-n+2) { border-bottom: 1px solid #dae5e6; }
}

/* Compact application shell */
.app-shell {
    grid-template-columns: 224px minmax(0, 1fr);
    grid-template-rows: 64px minmax(0, 1fr);
}

.topbar {
    height: 64px;
    grid-template-columns: 224px minmax(260px, 720px) minmax(120px, 1fr);
    gap: 18px;
    padding: 8px 18px;
    border: 0;
    border-bottom: 1px solid #dce5e7;
    border-radius: 0;
    box-shadow: 0 2px 10px rgba(27, 48, 57, .045);
}

.brand-wrap { gap: 9px; }
.brand { font-size: 20px; font-weight: 820; }
.icon-button { width: 36px; height: 36px; border-radius: 6px; }
.search { height: 38px; border-radius: 7px !important; box-shadow: none !important; }
.search:focus-within { outline: 0; box-shadow: 0 0 0 3px rgba(47, 143, 131, .1) !important; }
.avatar-button { width: 38px; height: 38px; border-radius: 6px; }
.sidebar { padding: 10px 8px 18px; }
.side-nav { gap: 2px; }
.nav-item {
    min-height: 38px;
    height: 38px;
    margin: 1px 4px;
    grid-template-columns: 27px minmax(0, 1fr) 16px;
    border: 0;
    border-radius: 6px;
    padding: 0 9px;
    font-size: 12.5px;
}
.nav-item:hover { border: 0; background: #edf4f3; }
.nav-item.active {
    border: 0;
    background: #e3f2ef;
    color: #206d64;
    box-shadow: inset 3px 0 0 #2f8f83;
}
.sub-nav { gap: 1px; padding: 3px 0 6px 9px; }
.sub-item, .sub-item.active { height: 34px; min-height: 34px; font-size: 12px; }
.account-separator { margin: 9px 7px; border-top: 1px solid #dce5e7; }
.content { padding: 22px 24px 50px; }

/* Resource page: tutorial-first, compact and scan-friendly. */
.resource-detail.mcwiki-detail { max-width: 1440px; margin: 0 auto; }
.resource-detail .detail-crumbs { min-height: 24px; margin-bottom: 8px; font-size: 11px; }
.resource-detail-hero {
    grid-template-columns: 80px minmax(0, 1fr) auto;
    gap: 16px;
    padding: 15px 16px;
    border-color: #dbe5e7;
    box-shadow: 0 6px 20px rgba(32, 57, 65, .045);
}
.resource-detail-hero-cover { width: 80px; height: 80px; }
.resource-detail-hero-copy h1 { font-size: 25px; }
.resource-detail-hero-copy > p { margin: 5px 0 7px; line-height: 1.5; }
.resource-detail-quick-meta { margin-top: 7px; }
.resource-detail .detail-overview { grid-template-columns: 214px minmax(0, 1fr); gap: 14px; margin-top: 14px; }
.resource-detail .detail-left-card { position: static; top: auto; gap: 11px; padding: 14px; }
.resource-detail-tabs {
    position: static;
    z-index: auto;
    top: auto;
    min-height: 46px;
    border-radius: 0;
    box-shadow: 0 4px 10px rgba(32, 57, 65, .04);
}
.resource-detail .download-filter-shell {
    position: static;
    z-index: auto;
    top: auto;
    bottom: auto;
}
.resource-detail-tabs a { min-height: 46px; }
.resource-detail .resource-tutorial-showcase.resource-tab-panel,
.resource-detail .resource-tab-panel { border-radius: 6px; }

/* Reader-like visual tutorial editor */
.guide-page-editor {
    width: 100%;
    max-width: none;
    min-width: 0;
    margin: 0;
}

.guide-page-editor > .alert { margin: 0 0 8px; }

.guide-visual-editor {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #d8e2e4;
    border-radius: 7px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(28, 50, 58, .06);
}

.guide-editor-topbar {
    position: relative;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 58px;
    padding: 8px 12px;
    border-bottom: 1px solid #dce5e7;
    background: #fff;
}

.guide-editor-identity,
.guide-editor-top-actions { display: flex; align-items: center; gap: 7px; min-width: 0; }
.guide-editor-layout-actions { display: flex; align-items: center; gap: 3px; padding-right: 6px; border-right: 1px solid #dbe4e6; }
.guide-editor-layout-actions > button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 34px;
    padding: 0 8px;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: #61777e;
    font: inherit;
    font-size: 10.5px;
    font-weight: 740;
    cursor: pointer;
}
.guide-editor-layout-actions > button:hover { background: #edf4f3; color: #287b72; }
.guide-editor-layout-actions > button[aria-pressed="true"] { background: #dff0ed; color: #226f66; }
.guide-editor-layout-actions svg { width: 13px; height: 13px; }
.guide-editor-identity > a,
.guide-editor-top-actions > a,
.guide-editor-top-actions > button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 36px;
    padding: 0 10px;
    border: 1px solid #d5e1e3;
    border-radius: 6px;
    background: #fff;
    color: #48636c;
    font: inherit;
    font-size: 12px;
    font-weight: 740;
    text-decoration: none;
    cursor: pointer;
}
.guide-editor-identity > a { width: 36px; padding: 0; }
.guide-editor-identity > a:hover,
.guide-editor-top-actions > a:hover { border-color: #8ebdb7; color: #24766c; }
.guide-editor-top-actions > button { border-color: #2f8f83; background: #2f8f83; color: #fff; }
.guide-editor-top-actions > button:hover { background: #287c72; }
.guide-editor-top-actions button:disabled { opacity: .55; cursor: wait; }
.guide-editor-identity svg,
.guide-editor-top-actions svg { width: 15px; height: 15px; }
.guide-editor-identity > span { display: grid; min-width: 0; }
.guide-editor-identity small { overflow: hidden; color: #87969c; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.guide-editor-identity strong { overflow: hidden; color: #233a43; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }

.guide-editor-workspace {
    display: grid;
    grid-template-columns: 248px minmax(460px, 1fr) 284px;
    min-width: 0;
    height: calc(100vh - 145px);
    min-height: 620px;
}

.guide-editor-outline,
.guide-editor-inspector {
    min-width: 0;
    overflow-y: auto;
    background: #f7f9f9;
    scrollbar-width: thin;
}
.guide-editor-outline { display: flex; flex-direction: column; border-right: 1px solid #dce5e7; }
.guide-editor-inspector { border-left: 1px solid #dce5e7; }
.guide-editor-inspector-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 39px;
    padding: 0 9px 0 12px;
    border-bottom: 1px solid #dce5e7;
    background: #f1f5f5;
    color: #566e76;
}
.guide-editor-inspector-head strong { font-size: 10px; }

.guide-editor-guide-switcher {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 34px;
    align-items: end;
    gap: 7px;
    padding: 12px;
    border-bottom: 1px solid #e0e7e9;
}
.guide-editor-guide-switcher label { display: grid; gap: 4px; min-width: 0; color: #809096; font-size: 9px; font-weight: 780; }
.guide-editor-guide-switcher select,
.guide-editor-guide-switcher > a {
    width: 100%;
    height: 34px;
    min-width: 0;
    border: 1px solid #cfdddf;
    border-radius: 5px;
    background: #fff;
    color: #314a53;
    font: inherit;
}
.guide-editor-guide-switcher select { padding: 0 8px; font-size: 11px; font-weight: 700; }
.guide-editor-guide-switcher > a { display: grid; place-items: center; color: #397e76; }
.guide-editor-guide-switcher svg { width: 14px; }

.guide-editor-outline-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 13px 12px 8px;
}
.guide-editor-outline-head > div { display: flex; align-items: baseline; gap: 7px; }
.guide-editor-outline-head span { color: #334d56; font-size: 11px; font-weight: 800; }
.guide-editor-outline-head strong { color: #8a989e; font-size: 9px; }
.guide-editor-outline-head > a { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 5px; color: #2f8177; }
.guide-editor-outline-head > a:hover { background: #e3f1ef; }
.guide-editor-outline-head svg { width: 14px; }

.guide-editor-tree { display: grid; gap: 1px; min-width: 0; padding: 0 7px 12px; }
.guide-editor-tree > p { margin: 18px 8px; color: #7a8b92; font-size: 11px; line-height: 1.6; }
.guide-editor-tree-category { min-width: 0; }
.guide-editor-tree-category > summary {
    display: grid;
    grid-template-columns: 14px 15px minmax(0, 1fr);
    align-items: center;
    gap: 5px;
    min-height: 32px;
    padding: 4px 7px 4px calc(7px + var(--tree-depth, 0) * 13px);
    border-radius: 5px;
    color: #40575f;
    cursor: pointer;
    list-style: none;
}
.guide-editor-tree-category > summary::-webkit-details-marker { display: none; }
.guide-editor-tree-category > summary:hover { background: #edf3f3; }
.guide-editor-tree-category > summary > svg { width: 12px; transition: transform .15s ease; }
.guide-editor-tree-category[open] > summary > svg { transform: rotate(90deg); }
.guide-editor-tree-category > summary span { display: grid; place-items: center; color: #6a8c91; }
.guide-editor-tree-category > summary span svg { width: 13px; }
.guide-editor-tree-category > summary strong { overflow: hidden; font-size: 11.5px; text-overflow: ellipsis; white-space: nowrap; }
.guide-editor-tree-children { display: grid; gap: 1px; min-width: 0; }
.guide-editor-tree-section {
    display: grid;
    grid-template-columns: 14px minmax(0, 1fr);
    align-items: center;
    gap: 6px;
    min-height: 32px;
    padding: 4px 7px 4px calc(9px + var(--tree-depth, 0) * 13px);
    border-radius: 5px;
    color: #5e7077;
    font-size: 11.5px;
    text-decoration: none;
}
.guide-editor-tree-section > i::before { content: ''; display: block; width: 8px; height: 10px; border: 1px solid currentColor; border-radius: 1px; opacity: .65; }
.guide-editor-tree-section > svg { width: 13px; height: 13px; }
.guide-editor-tree-section span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.guide-editor-tree-section:hover { background: #edf3f3; color: #294d55; }
.guide-editor-tree-section.active { background: #dff0ed; color: #226f66; font-weight: 760; }
.guide-editor-add-category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    margin: auto 12px 12px;
    padding: 0 9px;
    border: 1px dashed #b9cccf;
    border-radius: 5px;
    background: transparent;
    color: #56757c;
    font-size: 11px;
    font-weight: 720;
    cursor: pointer;
}
.guide-editor-add-category:hover { border-color: #5ca398; background: #edf7f5; color: #287b71; }
.guide-editor-add-category svg { width: 13px; }
.guide-editor-no-guide { margin: 20px 14px; color: #73878e; font-size: 12px; line-height: 1.65; }

.guide-editor-document { min-width: 0; overflow-y: auto; background: #fff; }
.guide-document-form { width: min(1040px, calc(100% - 48px)); min-width: 0; margin: 0 auto; padding: 28px 0 60px; }
.guide-document-head { display: grid; gap: 5px; padding: 0 4px 15px; border-bottom: 1px solid #e0e7e9; }
.guide-document-head > span { color: #2f8f83; font-size: 10px; font-weight: 820; }
.guide-document-head > input {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    border: 0;
    outline: 0;
    background: transparent;
    color: #20363f;
    font: inherit;
}
.guide-document-head > input[name="section_title"] { font-size: 29px; font-weight: 820; line-height: 1.25; }
.guide-document-head > input[name="section_summary"] { color: #697c84; font-size: 13px; line-height: 1.6; }
.guide-document-head > input::placeholder { color: #a1afb4; }
.guide-document-head > small { color: #8b999e; font-size: 10px; }
.guide-document-rich-editor { min-width: 0; padding-top: 18px; }
.guide-document-rich-editor .rich-editor-toolbar { margin-bottom: 8px; }
.guide-document-rich-editor .ck.ck-editor { width: 100%; min-width: 0; }
.guide-editor-sticky-toolbar {
    position: sticky;
    z-index: 50;
    top: 0;
    width: 100%;
    background: #f8fafa;
    box-shadow: 0 8px 18px rgba(31, 54, 62, .09);
}
.guide-editor-sticky-toolbar .ck.ck-editor__top,
.guide-editor-sticky-toolbar .ck-sticky-panel,
.guide-editor-sticky-toolbar .ck-sticky-panel__content {
    position: static !important;
    top: auto !important;
    width: auto !important;
}
.guide-editor-sticky-toolbar .ck-sticky-panel__content { transform: none !important; }
.guide-document-rich-editor .ck.ck-toolbar {
    position: static !important;
    border: 1px solid #dbe4e6;
    border-radius: 6px 6px 0 0;
    background: #f8fafa;
    box-shadow: none;
}
.guide-document-rich-editor .ck.ck-editor__main > .ck-editor__editable {
    min-height: 440px;
    border: 0;
    border-bottom: 1px solid #e0e7e9;
    padding: 22px 4px 36px;
    box-shadow: none;
    color: #263c44;
    font-size: 15px;
    line-height: 1.8;
}
.guide-document-rich-editor .ck.ck-editor__main > .ck-editor__editable.ck-focused { border: 0; border-bottom: 1px solid #91bbb6; box-shadow: none; }
.guide-document-rich-editor .ck-content h2 { margin-top: 30px; padding-bottom: 7px; border-bottom: 1px solid #e2e8ea; font-size: 22px; }
.guide-document-rich-editor .ck-content h3 { margin-top: 24px; font-size: 18px; }
.guide-document-rich-editor textarea { min-height: 440px; border: 1px solid #d8e3e5; border-radius: 6px; padding: 14px; }
.guide-document-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; color: #768990; font-size: 11px; }
.guide-document-footer button { min-height: 36px; margin: 0; border-radius: 6px; }
.guide-editor-document-empty { display: grid; justify-items: center; gap: 8px; max-width: 440px; margin: 100px auto; color: #829197; text-align: center; }
.guide-editor-document-empty svg { width: 30px; color: #4c938b; }
.guide-editor-document-empty h2 { margin: 4px 0 0; color: #29434c; font-size: 20px; }
.guide-editor-document-empty p { margin: 0; font-size: 12px; line-height: 1.65; }
.guide-visual-editor.is-loading-section .guide-editor-document { opacity: .72; }

.guide-editor-inspector > details { border-bottom: 1px solid #dce5e7; background: #f7f9f9; }
.guide-editor-inspector > details > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 44px;
    padding: 0 12px;
    color: #384f58;
    cursor: pointer;
    list-style: none;
}
.guide-editor-inspector > details > summary::-webkit-details-marker { display: none; }
.guide-editor-inspector > details > summary > span { display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 780; }
.guide-editor-inspector > details > summary svg { width: 14px; height: 14px; color: #66858b; }
.guide-editor-inspector > details > summary > svg { width: 12px; transition: transform .15s ease; }
.guide-editor-inspector > details[open] > summary > svg { transform: rotate(180deg); }
.guide-inspector-body { display: grid; gap: 11px; padding: 2px 12px 14px; }
.guide-inspector-body > label,
.guide-inspector-form label,
.guide-section-inspector > label { display: grid; gap: 5px; color: #657980; font-size: 10px; font-weight: 720; }
.guide-inspector-form { display: grid; gap: 10px; }
.guide-inspector-body input,
.guide-inspector-body select,
.guide-inspector-body textarea,
.guide-inspector-form input,
.guide-inspector-form select,
.guide-inspector-form textarea {
    width: 100%;
    min-width: 0;
    min-height: 35px;
    box-sizing: border-box;
    padding: 0 9px;
    border: 1px solid #cad9dc;
    border-radius: 5px;
    background: #fff;
    color: #304951;
    font: inherit;
    font-size: 11px;
}
.guide-inspector-body textarea,
.guide-inspector-form textarea { min-height: 72px; padding: 8px 9px; resize: vertical; }
.guide-inspector-body input:focus,
.guide-inspector-body select:focus,
.guide-inspector-body textarea:focus { border-color: #69a9a0; outline: 0; box-shadow: 0 0 0 3px rgba(47, 143, 131, .08); }
.guide-inspector-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.guide-inspector-form > button:not(.guide-inspector-delete) { min-height: 35px; border: 0; border-radius: 5px; background: #2f8f83; color: #fff; font-size: 11px; font-weight: 760; }
.guide-inspector-delete { width: 100%; min-height: 34px; border: 1px solid #e3c7c4; border-radius: 5px; background: #fff; color: #a54138; font-size: 10.5px; font-weight: 720; cursor: pointer; }
.guide-inspector-delete:hover { border-color: #b84d43; background: #fff5f4; }
.guide-inspector-embedded { padding: 0 10px 12px; }
.guide-inspector-embedded .guide-import-panel,
.guide-inspector-embedded .guide-file-panel { gap: 11px; padding: 10px; border-radius: 5px; box-shadow: none; }
.guide-inspector-embedded .guide-import-stats { grid-template-columns: 1fr 1fr; }
.guide-inspector-embedded .guide-import-stats span:nth-child(2) { border-right: 0; }
.guide-inspector-embedded .guide-import-drop { padding: 16px 9px; }

@media (max-width: 1180px) {
    .guide-editor-workspace { grid-template-columns: 224px minmax(420px, 1fr) 250px; }
    .guide-document-form { width: calc(100% - 36px); }
    .resource-detail-hero { grid-template-columns: 72px minmax(0, 1fr); }
    .resource-detail-hero-cover { width: 72px; height: 72px; }
    .resource-detail-hero-actions { grid-column: 1 / -1; justify-content: flex-end; }
}

@media (max-width: 960px) {
    .app-shell { grid-template-columns: 200px minmax(0, 1fr); }
    .topbar { grid-template-columns: 190px minmax(220px, 1fr) auto; }
    .guide-editor-workspace { grid-template-columns: 210px minmax(390px, 1fr); height: auto; min-height: 0; }
    .guide-editor-inspector { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid #dce5e7; border-left: 0; overflow: visible; }
    .guide-editor-inspector > details { min-width: 0; border-right: 1px solid #dce5e7; }
    .guide-editor-outline { min-height: 680px; }
    .guide-editor-document { min-height: 680px; }
}

@media (max-width: 720px) {
    .app-shell { display: block; }
    .topbar { height: 56px; grid-template-columns: minmax(0, 1fr) auto; padding: 7px 10px; }
    .topbar .search { display: none; }
    .brand { font-size: 18px; }
    .content { padding: 14px 12px 78px; }
    .resource-detail-hero { grid-template-columns: 58px minmax(0, 1fr); gap: 11px; margin-top: 0; padding: 13px; }
    .resource-detail-hero-cover { width: 58px; height: 58px; }
    .resource-detail-hero-copy h1 { font-size: 21px; }
    .resource-detail-hero-copy > p { -webkit-line-clamp: 3; }
    .resource-detail-quick-meta { grid-column: 1 / -1; }
    .resource-detail-hero-actions { justify-content: stretch; }
    .resource-detail-action-split { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
    .resource-detail-action-split a { min-width: 0; }
    .resource-detail .detail-overview { display: flex; flex-direction: column; gap: 10px; }
    .resource-detail .resource-detail-main { order: 1; }
    .resource-detail .detail-left-card { position: static; order: 2; width: 100%; }
    .resource-detail-tabs { top: 0; margin: 0 -1px; }
    .resource-detail-tabs a { min-width: 78px; padding: 0 10px; }

    .guide-page-editor { margin: 0; }
    .guide-visual-editor { overflow: visible; border-radius: 6px; }
    .guide-editor-topbar { position: sticky; top: 0; min-height: 50px; padding: 6px 8px; }
    .guide-editor-identity small { display: none; }
    .guide-editor-top-actions span { display: none; }
    .guide-editor-top-actions > a,
    .guide-editor-top-actions > button { width: 36px; padding: 0; }
    .guide-editor-workspace { display: flex; flex-direction: column; height: auto; min-height: 0; }
    .guide-editor-outline { min-height: 0; max-height: 42vh; border-right: 0; border-bottom: 1px solid #dce5e7; }
    .guide-editor-document { min-height: 560px; overflow: visible; }
    .guide-document-form { width: calc(100% - 24px); padding: 28px 0 42px; }
    .guide-document-head > input[name="section_title"] { font-size: 25px; }
    .guide-document-rich-editor .ck.ck-toolbar { position: static; }
    .guide-document-rich-editor .ck.ck-editor__main > .ck-editor__editable { min-height: 360px; padding: 18px 2px 28px; font-size: 14px; }
    .guide-document-footer { align-items: flex-start; }
    .guide-editor-inspector { display: block; border-left: 0; overflow: visible; }
    .guide-editor-inspector > details { border-right: 0; }
    .guide-inspector-grid { grid-template-columns: 1fr 1fr; }
}

/* Standalone tutorial authoring workspace */
body.guide-editor-standalone-body {
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: #eef2f3;
}

.standalone-guide-editor {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

.standalone-guide-editor .guide-page-editor {
    width: 100%;
    height: 100vh;
    margin: 0;
}

.standalone-guide-editor .guide-page-editor > .alert {
    position: fixed;
    z-index: 100;
    top: 8px;
    left: 50%;
    width: min(520px, calc(100vw - 32px));
    margin: 0;
    transform: translateX(-50%);
}

.standalone-guide-editor .guide-visual-editor {
    width: 100%;
    height: 100vh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.standalone-guide-editor .guide-editor-topbar {
    min-height: 58px;
    border-bottom-color: #d6e0e2;
}

.standalone-guide-editor .guide-editor-workspace {
    height: calc(100vh - 59px);
    min-height: 0;
    grid-template-columns: 252px minmax(520px, 1fr) 300px;
    transition: grid-template-columns .18s ease;
}

.standalone-guide-editor .guide-document-form {
    width: min(1080px, calc(100% - 48px));
    padding-top: 28px;
}

.standalone-guide-editor .guide-visual-editor.is-outline-collapsed .guide-editor-workspace { grid-template-columns: 0 minmax(520px, 1fr) 300px; }
.standalone-guide-editor .guide-visual-editor.is-inspector-collapsed .guide-editor-workspace { grid-template-columns: 252px minmax(520px, 1fr) 0; }
.standalone-guide-editor .guide-visual-editor.is-outline-collapsed.is-inspector-collapsed .guide-editor-workspace { grid-template-columns: 0 minmax(520px, 1fr) 0; }
.guide-visual-editor.is-outline-collapsed .guide-editor-outline,
.guide-visual-editor.is-inspector-collapsed .guide-editor-inspector { visibility: hidden; overflow: hidden; border: 0; opacity: 0; pointer-events: none; }
.guide-visual-editor.is-focus-mode .guide-document-form { width: min(1180px, calc(100% - 64px)); }
.guide-visual-editor.is-focus-mode .guide-editor-layout-actions > button[data-guide-focus-mode] { background: #2f8f83; color: #fff; }

.guide-editor-outline-head { position: relative; }
.standalone-guide-editor [hidden] { display: none !important; }
.guide-editor-create-menu[hidden],
.guide-editor-quick-folder[hidden] { display: none !important; }
.guide-editor-create { position: relative; }
.guide-editor-create > button {
    display: grid;
    place-items: center;
    width: 31px;
    height: 31px;
    padding: 0;
    border: 0;
    border-radius: 5px;
    background: #e3f1ef;
    color: #26776e;
    cursor: pointer;
}
.guide-editor-create > button:hover,
.guide-editor-create > button[aria-expanded="true"] { background: #2f8f83; color: #fff; }
.guide-editor-create > button svg { width: 14px; height: 14px; }
.guide-editor-create-menu {
    position: absolute;
    z-index: 80;
    top: 36px;
    right: 0;
    display: grid;
    width: 210px;
    overflow: hidden;
    padding: 5px;
    border: 1px solid #ccdadd;
    border-radius: 7px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(27, 48, 56, .16);
}
.guide-editor-create-menu > button {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 51px;
    padding: 6px 8px;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: #415a63;
    text-align: left;
    cursor: pointer;
}
.guide-editor-create-menu > button:hover { background: #edf6f4; color: #26776e; }
.guide-editor-create-menu > button > svg { width: 17px; height: 17px; justify-self: center; }
.guide-editor-create-menu > button > span { display: grid; min-width: 0; }
.guide-editor-create-menu strong { font-size: 12px; }
.guide-editor-create-menu small { color: #849399; font-size: 9px; font-weight: 500; }

.guide-editor-quick-folder {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 7px;
    margin: 0 10px 9px;
    padding: 10px;
    border: 1px solid #cddbdd;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 7px 18px rgba(29, 53, 61, .07);
}
.guide-editor-quick-folder input,
.guide-editor-quick-folder select {
    width: 100%;
    min-width: 0;
    min-height: 34px;
    box-sizing: border-box;
    padding: 0 8px;
    border: 1px solid #cbdadd;
    border-radius: 5px;
    background: #fff;
    color: #314a53;
    font: inherit;
    font-size: 11px;
}
.guide-editor-quick-folder input:focus,
.guide-editor-quick-folder select:focus { border-color: #62a59c; outline: 0; box-shadow: 0 0 0 3px rgba(47, 143, 131, .08); }
.guide-editor-quick-folder > div { display: flex; justify-content: flex-end; gap: 6px; }
.guide-editor-quick-folder button { min-height: 31px; padding: 0 10px; border: 1px solid #cad8db; border-radius: 5px; background: #fff; color: #60747b; font-size: 10px; font-weight: 720; cursor: pointer; }
.guide-editor-quick-folder button[type="submit"] { border-color: #2f8f83; background: #2f8f83; color: #fff; }

.guide-editor-tree [data-guide-node] { cursor: grab; }
.guide-editor-tree [data-guide-node]:active { cursor: grabbing; }
.guide-editor-tree .is-dragging { opacity: .42; }
.guide-editor-tree .is-drop-target {
    outline: 2px solid #42a093;
    outline-offset: -2px;
    background: #e2f3ef;
}
.guide-editor-tree-category.is-drop-target > summary { background: #e2f3ef; }
.guide-editor-root-drop {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 38px;
    margin: 7px 3px 0;
    border: 1px dashed #7fb6af;
    border-radius: 5px;
    background: #eef8f6;
    color: #347b73;
    font-size: 10px;
    font-weight: 720;
}
.guide-editor-root-drop svg { width: 13px; height: 13px; }
.guide-tree-chevron { width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); transition: transform .15s ease; }
.guide-editor-tree-category[open] > summary .guide-tree-chevron { transform: rotate(45deg); }
.guide-tree-folder { width: 12px; height: 9px; border: 1px solid currentColor; border-radius: 1px; }

.guide-visual-editor.has-unsaved-changes .guide-editor-top-actions > button::after {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fff4a8;
    content: '';
}
.guide-visual-editor.has-unsaved-changes [data-guide-save-status] { color: #a56a12; font-weight: 720; }

@media (max-width: 1180px) {
    .standalone-guide-editor .guide-editor-workspace { grid-template-columns: 238px minmax(430px, 1fr) 270px; }
}

@media (max-width: 960px) {
    .standalone-guide-editor .guide-editor-workspace { grid-template-columns: 220px minmax(420px, 1fr); }
    .standalone-guide-editor .guide-editor-inspector { max-height: none; }
}

@media (max-width: 720px) {
    .standalone-guide-editor .guide-editor-workspace {
        height: calc(100vh - 51px);
        overflow-y: auto;
    }
    .standalone-guide-editor .guide-document-form { width: calc(100% - 24px); }
    .guide-editor-create-menu { position: fixed; top: 112px; right: 12px; left: 12px; width: auto; }
}
