.guide-shell { width: min(1420px, calc(100% - 48px)); margin: 34px auto 70px; }
.guide-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin: 0 0 24px; padding: 0 6px; }
.guide-heading span, .guide-article > header > span { color: #c57cf2; font-size: 11px; font-weight: 700; letter-spacing: .15em; }
.guide-heading h1, .guide-article h1 { margin: 5px 0 0; color: #f1edf5; font-size: clamp(28px, 3vw, 42px); }
.guide-heading p { max-width: 560px; margin: 0; color: #aaa4b2; line-height: 1.65; }
.guide-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 26px; align-items: start; }
.guide-navigation, .guide-article, .guide-book, .guide-empty, .guide-children a { border-color: rgba(196, 93, 240, .24); }
.guide-navigation { position: sticky; top: 92px; padding: 16px 12px; }
.guide-navigation-title, .guide-navigation-home { display: flex; align-items: center; gap: 10px; padding: 0 8px 14px; color: #d492f7; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }
.guide-title-icon { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid rgba(200, 110, 243, .3); border-radius: 7px; background: rgba(184, 82, 226, .08); font-size: 14px; }
.guide-navigation ul { margin: 0; padding: 0; list-style: none; }
.guide-navigation ul ul { margin: 3px 0 7px; padding-left: 12px; border-left: 1px solid rgba(194, 111, 238, .18); }
.guide-navigation li > a { display: block; padding: 8px 10px; border-radius: 8px; color: #aaa5b0; font-size: 13px; line-height: 1.35; text-decoration: none; }
.guide-navigation li > a:hover, .guide-navigation li.is-active > a { color: #f0d9ff; background: rgba(184, 92, 232, .13); }
.guide-tree-kind-book > a { color: #d6cbdc !important; font-weight: 700; }
.guide-library { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.guide-book { display: flex; min-height: 238px; flex-direction: column; padding: 19px 20px 16px; color: inherit; text-decoration: none; transition: border-color .2s, box-shadow .2s, transform .2s; }
.guide-book:hover { transform: translateY(-3px); border-color: rgba(211, 121, 250, .52); }
.guide-book-heading { display: flex; align-items: center; gap: 11px; }
.guide-book-heading small { color: #bd70e4; font-size: 10px; letter-spacing: .13em; }
.guide-book-icon { display: grid; place-items: center; width: 40px; height: 40px; flex: 0 0 40px; border: 1px solid rgba(202, 117, 244, .3); border-radius: 9px; background: rgba(180, 82, 225, .09) center / cover; }
.guide-book-icon i { color: #d07df9; font-size: 19px; font-style: normal; }
.guide-book-icon.has-cover i { display: none; }
.guide-book-copy { display: flex; flex: 1; flex-direction: column; padding: 22px 1px 18px; }
.guide-book-copy strong { color: #e9e3ed; font-size: 18px; line-height: 1.3; }
.guide-book-copy em { display: -webkit-box; margin-top: 10px; overflow: hidden; color: #97919d; font-size: 13px; font-style: normal; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.guide-book-footer { display: flex; justify-content: space-between; padding-top: 13px; border-top: 1px solid rgba(196, 119, 235, .15); color: #77717d; font-size: 11px; }
.guide-book-footer i { color: #c271e9; font-size: 17px; font-style: normal; }
.guide-empty { grid-column: 1 / -1; padding: 44px; color: #aaa4b2; text-align: center; }
.guide-empty strong { display: block; color: #e4dce9; font-size: 22px; }
.guide-layout--article { grid-template-columns: 260px minmax(0, 1fr); justify-content: stretch; }
.guide-article { padding: clamp(28px, 5vw, 64px); overflow: hidden; }
.guide-breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 34px; color: #706b76; font-size: 12px; }
.guide-breadcrumbs a { color: #a974c4; text-decoration: none; }
.guide-cover { width: calc(100% + 2 * clamp(28px, 5vw, 64px)); max-width: none; margin: 0 calc(-1 * clamp(28px, 5vw, 64px)) 36px; aspect-ratio: 16 / 7; object-fit: cover; }
.guide-article > header { padding-bottom: 28px; border-bottom: 1px solid rgba(196, 119, 235, .18); }
.guide-article > header p { max-width: 700px; color: #aaa4b2; line-height: 1.65; }
.guide-content { padding-top: 22px; color: #c8c2cc; font-size: 16px; line-height: 1.78; }
.guide-content:empty { display: none; }
.guide-content h2, .guide-content h3 { margin: 1.8em 0 .65em; color: #eee8f2; }
.guide-content code { padding: .15em .42em; border: 1px solid rgba(196, 119, 235, .25); border-radius: 6px; background: #14111a; color: #d7a2f2; }
.guide-content pre { padding: 17px; overflow: auto; border: 1px solid rgba(196, 119, 235, .24); border-radius: 10px; background: #100d16; }
.guide-content pre code { padding: 0; border: 0; background: none; }
.guide-content img { max-width: 100%; height: auto; border-radius: 12px; box-shadow: 0 18px 42px rgba(4, 2, 9, .38); }
.guide-children { margin-top: 34px; padding-top: 24px; border-top: 1px solid rgba(196, 119, 235, .18); }
.guide-children h2 { color: #d9d1dd; font-size: 18px; }
.guide-children a { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; margin-top: 10px; padding: 14px 16px; text-decoration: none; }
.guide-children a:hover { border-color: rgba(211, 121, 250, .42); }
.guide-children span { color: #d8d1dc; }
.guide-children small { grid-column: 1; color: #817b86; }
.guide-children i { grid-column: 2; grid-row: 1 / 3; align-self: center; color: #c177e7; font-style: normal; }
@media (max-width: 1120px) { .guide-library { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .guide-shell { width: min(100% - 24px, 720px); } .guide-heading { display: block; } .guide-heading p { margin-top: 12px; } .guide-layout, .guide-layout--article { grid-template-columns: 1fr; } .guide-navigation { position: relative; top: auto; } }
@media (max-width: 600px) { .guide-library { grid-template-columns: 1fr; } .guide-article { padding: 22px; } }

/* V33.3 — единый каркас и компактное оглавление */
.guide-heading {
    min-height: 88px;
    align-items: center;
    margin-bottom: 30px;
    padding: 0 2px 18px;
    border-bottom: 1px solid rgba(190, 105, 231, .16);
}

.guide-heading-title {
    width: min(58%, 760px);
}

.guide-heading h1 {
    max-width: 760px;
    font-size: clamp(27px, 2.6vw, 40px);
    line-height: 1.13;
}

.guide-heading > p {
    width: min(38%, 520px);
    font-size: 13px;
}

.guide-layout--article {
    grid-template-columns: 260px minmax(0, 1fr);
    justify-content: stretch;
}

.guide-navigation {
    max-height: calc(100vh - 116px);
    padding: 12px 9px 11px;
    overflow: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(190, 104, 230, .35) transparent;
}

.guide-navigation-title,
.guide-navigation-home {
    gap: 8px;
    padding: 0 5px 9px;
    font-size: 10px;
}

.guide-title-icon {
    width: 24px;
    height: 24px;
    font-size: 12px;
}

.guide-navigation ul ul {
    margin: 1px 0 3px 7px;
    padding-left: 7px;
}

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

.guide-tree-row > a {
    min-width: 0;
    padding: 5px 6px;
    border-radius: 6px;
    color: #9f99a5;
    font-size: 11.5px;
    line-height: 1.28;
    text-decoration: none;
}

.guide-tree-row > a:hover,
.guide-navigation li.is-active > .guide-tree-row > a {
    color: #f0d9ff;
    background: rgba(184, 92, 232, .13);
}

.guide-tree-row > button {
    display: grid;
    place-items: center;
    width: 23px;
    height: 23px;
    padding: 0;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: #756d7b;
    cursor: pointer;
}

.guide-tree-row > button:hover {
    background: rgba(184, 92, 232, .1);
    color: #cf82f5;
}

.guide-tree-row > button span {
    display: block;
    transform: rotate(-90deg);
    transition: transform .18s ease;
}

.guide-navigation li.is-open > .guide-tree-row > button span {
    transform: rotate(0);
}

.guide-navigation li > a {
    padding: 5px 6px;
    font-size: 11.5px;
}

.guide-tree-kind-book > .guide-tree-row > a,
.guide-tree-kind-chapter > .guide-tree-row > a {
    color: #c9bfce;
    font-weight: 650;
}

.guide-tree-branch[hidden] {
    display: none;
}

.guide-main {
    display: grid;
    gap: 22px;
    min-width: 0;
}

.guide-article {
    padding: clamp(26px, 4vw, 50px);
}

.guide-cover {
    width: calc(100% + 2 * clamp(26px, 4vw, 50px));
    margin: calc(-1 * clamp(26px, 4vw, 50px)) calc(-1 * clamp(26px, 4vw, 50px)) 30px;
}

.guide-content {
    padding-top: 0;
}

.guide-children {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.guide-children h2 {
    margin: 0 0 12px 2px;
    color: #bcb5c1;
    font-size: 12px;
    letter-spacing: .09em;
    text-transform: uppercase;
}

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

.guide-children a {
    min-height: 124px;
    margin-top: 0;
    padding: 17px 18px;
}

.guide-children a > span {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.guide-children a small {
    color: #ba6dde;
    font-size: 9px;
    letter-spacing: .12em;
}

.guide-children a strong {
    margin-top: 7px;
    color: #ded7e2;
    font-size: 14px;
    line-height: 1.35;
}

.guide-children a em {
    display: -webkit-box;
    margin-top: 7px;
    overflow: hidden;
    color: #817b86;
    font-size: 11px;
    font-style: normal;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.guide-children a > i {
    align-self: end;
}

@media (max-width: 900px) {
    .guide-heading { align-items: start; }
    .guide-heading-title,
    .guide-heading > p { width: auto; }
    .guide-navigation { max-height: 46vh; }
}

/* V33.7 — поиск и инструменты оглавления */
.guide-tree-tools {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 32px;
    gap: 6px;
    margin: 7px 2px 10px;
}

.guide-tree-search {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    padding: 7px 9px;
    border: 1px solid rgba(196, 119, 235, .18);
    border-radius: 8px;
    background: rgba(7, 6, 11, .22);
    color: #8d8492;
}

.guide-tree-search:focus-within { border-color: rgba(207, 113, 248, .46); }
.guide-tree-search input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: #d9d1dd; font: inherit; font-size: 11px; }
.guide-tree-search input::placeholder { color: #77717d; }
.guide-tree-tools details { position: relative; }
.guide-tree-tools summary { display: grid; height: 32px; place-items: center; border: 1px solid rgba(196, 119, 235, .18); border-radius: 8px; color: #a99faf; cursor: pointer; list-style: none; }
.guide-tree-tools summary::-webkit-details-marker { display: none; }
.guide-tree-tools details[open] summary { border-color: rgba(207, 113, 248, .46); color: #ca78ed; }
.guide-tree-tools details > div { position: absolute; z-index: 8; top: calc(100% + 6px); right: 0; display: grid; width: 142px; gap: 3px; padding: 5px; border: 1px solid rgba(196, 119, 235, .25); border-radius: 9px; background: rgba(24, 21, 30, .97); box-shadow: 0 12px 28px rgba(0,0,0,.35); }
.guide-tree-tools details button { border: 0; border-radius: 6px; padding: 8px 9px; background: transparent; color: #bdb5c1; font: inherit; font-size: 11px; text-align: left; cursor: pointer; }
.guide-tree-tools details button:hover { background: rgba(186, 94, 227, .12); color: #d899f3; }
.guide-tree-empty { margin: 7px 3px 10px; color: #77717d; font-size: 11px; text-align: center; }
.guide-navigation li.is-search-match > .guide-tree-row > a { color: #dd91fa; }

@media (max-width: 600px) {
    .guide-children-grid { grid-template-columns: 1fr; }
}

/* V33.5 — плиточная иерархия и читательская страница */
.guide-library,
.guide-children-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.guide-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
}

.guide-card-cover {
    position: relative;
    z-index: 2;
    display: block;
    width: calc(100% - 18px);
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid rgba(199, 109, 240, .3);
    border-radius: 12px;
    aspect-ratio: 16 / 9;
    background: #15121c;
    box-shadow: 0 14px 30px rgba(3, 2, 8, .36);
    transition: border-color .22s ease, box-shadow .22s ease, transform .22s ease;
}

.guide-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: var(--custom-tile-media-opacity, 1);
    transition: opacity .46s ease, transform .28s ease;
}

.guide-card-cover.is-placeholder img {
    opacity: var(--custom-tile-media-opacity, 1);
    filter: brightness(.78) saturate(.82);
}

.guide-card-panel {
    z-index: 1;
    display: flex;
    min-height: 192px;
    flex: 1;
    flex-direction: column;
    margin-top: -24px;
    padding: 39px 17px 13px;
}

.guide-card-panel > small {
    color: #bb6ee1;
    font-size: 9px;
    font-weight: 650;
    letter-spacing: .13em;
}

.guide-card-panel > strong {
    display: -webkit-box;
    margin-top: 7px;
    overflow: hidden;
    color: #e3dde7;
    font-size: 15px;
    line-height: 1.32;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.guide-card-panel > em {
    display: -webkit-box;
    margin-top: 8px;
    overflow: hidden;
    color: #918b96;
    font-size: 11px;
    font-style: normal;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
}

.guide-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 11px;
    border-top: 1px solid rgba(196, 119, 235, .14);
    color: #77717d;
    font-size: 10px;
}

.guide-card-footer i {
    color: #c271e9;
    font-size: 16px;
    font-style: normal;
}

.guide-card:hover .guide-card-cover {
    border-color: rgba(216, 126, 255, .58);
    box-shadow: 0 18px 38px rgba(3, 2, 8, .46), 0 0 24px rgba(183, 81, 231, .12);
    transform: translateY(-2px);
}

.guide-card:hover .guide-card-cover img {
    transform: scale(1.018);
}

.guide-card:hover .guide-card-panel {
    border-color: rgba(211, 121, 250, .46);
}

/* V33.6 — универсальная иерархия и одинаковые плитки на всех уровнях */
.guide-heading-title {
    width: auto;
    max-width: min(72%, 820px);
}

.guide-heading > .guide-heading-kind {
    margin-left: auto;
    padding-bottom: 7px;
    color: #b96cdd;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .15em;
    text-align: right;
    text-transform: uppercase;
}

.guide-children a.guide-card {
    display: flex;
    min-height: 0;
    flex-direction: column;
    gap: 0;
    margin-top: 0;
    padding: 0;
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.guide-children a.guide-card > .guide-card-cover {
    display: block;
    width: calc(100% - 18px);
    min-width: 0;
    flex: none;
}

.guide-card-panel,
.guide-children a.guide-card > .guide-card-panel {
    display: flex;
    min-height: 186px;
    flex: 1;
    flex-direction: column;
    margin-top: -14%;
    padding: calc(14% + 14px) 17px 13px;
}

.guide-children .guide-card-panel > small { color: #bb6ee1; font-size: 9px; letter-spacing: .13em; }
.guide-children .guide-card-panel > strong { margin-top: 7px; color: #e3dde7; font-size: 15px; line-height: 1.32; }
.guide-children .guide-card-panel > em { margin-top: 8px; color: #918b96; font-size: 11px; line-height: 1.45; }

@media (max-width: 900px) {
    .guide-heading-title { max-width: none; }
    .guide-heading > .guide-heading-kind { margin: 10px 0 0; text-align: left; }
}

.guide-article {
    padding: clamp(30px, 4.5vw, 58px);
}

.guide-article-inner {
    width: min(100%, 880px);
    margin: 0 auto;
}

.guide-article .guide-cover {
    width: 100%;
    max-width: 100%;
    margin: 0 0 32px;
    border-radius: 12px;
    aspect-ratio: 16 / 9;
    box-shadow: 0 18px 42px rgba(4, 2, 9, .38);
    object-fit: cover;
}

.guide-content img {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 26px 0;
    object-fit: contain;
}

.guide-content table {
    width: 100%;
    margin: 24px 0;
    border-collapse: collapse;
    font-size: 14px;
}

.guide-content th,
.guide-content td {
    padding: 10px 12px;
    border: 1px solid rgba(196, 119, 235, .18);
    text-align: left;
    vertical-align: top;
}

.guide-content th {
    background: rgba(180, 82, 225, .08);
    color: #ddd4e2;
}

.guide-content blockquote {
    margin: 24px 0;
    padding: 12px 16px;
    border-left: 3px solid rgba(199, 109, 240, .55);
    background: rgba(180, 82, 225, .07);
    color: #aaa3af;
}

.guide-content > p:first-child { margin-top: 0; color: #d6cfd9; font-size: 17px; }
.guide-content ol { display: grid; gap: 11px; margin: 22px 0; padding: 0; counter-reset: guide-step; list-style: none; }
.guide-content ol > li { position: relative; min-height: 34px; padding: 7px 0 7px 48px; counter-increment: guide-step; }
.guide-content ol > li::before { position: absolute; top: 2px; left: 0; display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid rgba(199,109,240,.35); border-radius: 10px; background: rgba(180,82,225,.1); color: #d991f7; content: counter(guide-step); font-size: 12px; font-weight: 700; }
.guide-command { margin: 8px 0; overflow: hidden; border: 1px solid rgba(193,113,233,.22); border-radius: 9px; background: linear-gradient(100deg,rgba(29,24,40,.9),rgba(16,17,25,.78)); }
.guide-command-main { display: grid; grid-template-columns: minmax(145px,220px) minmax(0,1fr) auto; min-height: 42px; align-items: center; }
.guide-command-main code { align-self: stretch; display: flex; min-width: 0; align-items: center; padding: 0 13px; border: 0; border-right: 1px solid rgba(107,181,255,.16); border-radius: 0; background: rgba(83,149,211,.055); color: #8ec9ff; font-size: 13px; font-weight: 700; white-space: nowrap; }
.guide-command-description { min-width: 0; overflow: hidden; padding: 8px 13px; color: #aaa4b2; font-size: 12px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.guide-command-copy { min-height: 30px; margin: 5px 6px 5px 0; border: 1px solid rgba(193,113,233,.28); border-radius: 7px; padding: 0 9px; background: rgba(178,76,224,.09); color: #cc86ec; font: inherit; font-size: 10px; white-space: nowrap; cursor: pointer; transition: border-color .2s,color .2s,background .2s; }
.guide-command-copy:hover,.guide-command-copy.is-copied { border-color: rgba(199,109,240,.55); background: rgba(178,76,224,.16); color: #edc8ff; }
.guide-content a:not(.guide-action-link) { color: #c984eb; text-decoration-color: rgba(201,132,235,.42); text-decoration-thickness: 1px; text-underline-offset: .18em; transition: color .2s,text-decoration-color .2s; }
.guide-content a:not(.guide-action-link):hover { color: #e7b7fb; text-decoration-color: rgba(231,183,251,.78); }
.guide-external-mark { display: inline; color: #a86cca; font-size: .82em; text-decoration: none; }
.guide-action-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0; }
.guide-action-link { display: inline-flex; min-height: 36px; align-items: center; justify-content: center; border: 1px solid rgba(193,113,233,.34); border-radius: 8px; padding: 0 15px; background: rgba(178,76,224,.11); color: #d992f5!important; font-size: 12px; font-weight: 700; line-height: 1; text-decoration: none!important; transition: border-color .2s,background .2s,color .2s,transform .2s; }
.guide-action-link--inline { margin: 0 .28em; vertical-align: middle; white-space: nowrap; }
.guide-action-link:hover { transform: translateY(-1px); border-color: rgba(211,121,250,.62); background: rgba(178,76,224,.2); color: #f0d2ff!important; }
.guide-callout { display: grid; grid-template-columns: 24px minmax(0,1fr); align-items: start; gap: 10px; margin: 14px 0; padding: 10px 13px; border: 1px solid rgba(196,119,235,.22); border-left-width: 3px; border-radius: 9px; background: rgba(22,18,29,.66); }
.guide-callout-icon { display: grid; width: 22px; height: 22px; place-items: center; border-radius: 7px; font-size: 10px; font-weight: 800; }
.guide-callout > div { min-width: 0; padding-top: 1px; }
.guide-callout strong { display: inline; margin: 0 7px 0 0; color: #e1d9e5; font-size: 12px; line-height: 1.5; }
.guide-callout p { display: inline; margin: 0; color: #aaa4b2; font-size: 12px; line-height: 1.5; }
.guide-callout--body-only p { color: #b9b2bf; font-weight: 400; }
.guide-callout p strong { margin: 0; color: #ded6e2; font-weight: 700; }
.guide-callout p em { color: #c8bdcd; }
.guide-callout p code { padding: 1px 5px; border: 1px solid rgba(103,174,232,.2); border-radius: 5px; background: rgba(103,174,232,.08); color: #9fd4ff; font-size: .94em; }
.guide-action-break { display: block; }
.guide-callout--tip { border-left-color: #b868df; }.guide-callout--tip .guide-callout-icon { background: rgba(184,104,223,.14); color: #d590f4; }
.guide-callout--note { border-left-color: #67aee8; }.guide-callout--note .guide-callout-icon { background: rgba(103,174,232,.13); color: #91cfff; }
.guide-callout--warning { border-left-color: #d59a62; }.guide-callout--warning .guide-callout-icon { background: rgba(213,154,98,.13); color: #e9b47f; }

/* V34.11 — compact route and deterministic server-rendered callouts */
.guide-content .guide-route-title { margin-bottom: 13px; }
.guide-content .guide-route-plan {
    grid-template-columns: minmax(0, 1fr);
    gap: 7px;
    margin: 13px 0 14px;
}
.guide-content .guide-route-plan > li {
    min-height: 42px;
    padding: 8px 12px 8px 44px;
    border: 1px solid rgba(196,119,235,.12);
    border-radius: 9px;
    background: rgba(12,10,17,.15);
    line-height: 1.5;
}
.guide-content .guide-route-plan > li::before {
    top: 6px;
    left: 9px;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    font-size: 11px;
}
.guide-continuation {
    display: flex;
    width: max-content;
    max-width: 100%;
    align-items: center;
    gap: 8px;
    margin: 17px auto 6px;
    padding: 7px 12px;
    border: 1px solid rgba(199,109,240,.2);
    border-radius: 999px;
    background: rgba(178,76,224,.055);
    color: #a99eae !important;
    font-size: 11px;
    letter-spacing: .02em;
    text-decoration: none !important;
    transition: border-color .2s, background .2s, color .2s;
}
.guide-continuation:hover { border-color: rgba(199,109,240,.42); background: rgba(178,76,224,.1); color: #d39aee !important; }
.guide-continuation b { color: #c87bea; font-size: 14px; animation: guide-continuation-cue 1.15s ease-in-out 2; }
.guide-continuation.is-seen b { animation: none; }
@keyframes guide-continuation-cue { 0%,100% { transform: translateY(-1px); opacity: .65; } 50% { transform: translateY(3px); opacity: 1; } }

.guide-page-toc {
    display: grid;
    gap: 1px;
    margin: 5px 0 2px 26px;
    padding: 3px 0 3px 9px;
    border-left: 1px solid rgba(199,109,240,.16);
}
.guide-page-toc a {
    display: block;
    overflow: hidden;
    padding: 3px 7px;
    border-radius: 5px;
    color: #77717e;
    font-size: 10px;
    line-height: 1.35;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color .18s, background .18s;
}
.guide-page-toc a.is-subsection { padding-left: 13px; }
.guide-page-toc a:hover { color: #c291d9; }
.guide-page-toc a.is-current { background: rgba(177,78,220,.09); color: #d28df0; }
.guide-content h2[id],
.guide-content h3[id] { scroll-margin-top: 82px; }

@media (prefers-reduced-motion: reduce) {
    .guide-continuation b { animation: none; }
}

/* V34.15 — article rhythm and readable, aligned navigation */
.guide-content h3 {
    margin-top: 2.6em;
}

.guide-navigation-title,
.guide-navigation-home {
    font-size: 11px;
}

.guide-tree-row > a,
.guide-navigation li > a {
    font-size: 12.5px;
    line-height: 1.34;
}

.guide-page-toc {
    margin-left: 5px;
    padding-left: 9px;
}

.guide-page-toc a {
    padding-block: 4px;
    font-size: 11.5px;
    line-height: 1.4;
}

.guide-page-toc a.is-subsection {
    padding-left: 11px;
}

.guide-callout {
    padding-block: 11px;
}

.guide-callout strong,
.guide-callout p {
    font-size: 13px;
    line-height: 1.55;
}

@media (max-width: 600px) {
    .guide-command-main { grid-template-columns: minmax(0,1fr) auto; }
    .guide-command-main code { border-right: 0; }
    .guide-command-description { grid-row: 2; grid-column: 1 / -1; padding-top: 2px; white-space: normal; }
}

/* V34.16 — authored article structure, compact screenshots and reader route */
.guide-content h2,
.guide-content h3 {
    font-family: inherit;
    font-style: normal;
    text-transform: none;
}

.guide-content h3 {
    margin: 2.55em 0 .28em;
    color: #e5dfe9;
    font-size: 1.08em;
    font-weight: 720;
    line-height: 1.35;
    letter-spacing: .015em;
}

.guide-content h3 + p,
.guide-content h3 + ul,
.guide-content h3 + ol,
.guide-content h3 + .guide-command,
.guide-content h3 + .guide-callout {
    margin-top: .32em;
}

.guide-article .guide-cover--legacy {
    width: min(88%, 800px);
    max-width: 800px;
    margin: 0 auto 30px;
    border: 1px solid rgba(199,109,240,.22);
    border-radius: 12px;
    aspect-ratio: 16 / 7;
}

.guide-welcome-banner {
    width: 100%;
    margin: 22px 0 30px;
}

.guide-content .guide-welcome-banner img {
    width: 100%;
    max-width: none;
    margin: 0;
    border: 1px solid rgba(199,109,240,.25);
    border-radius: 12px;
    aspect-ratio: 16 / 7;
    object-fit: cover;
    cursor: default;
}

.guide-content img:not([data-guide-no-lightbox]) {
    width: min(74%, 720px);
    max-width: 720px;
    margin: 22px 0 28px auto;
    cursor: zoom-in;
    transition: border-color .2s, box-shadow .2s, transform .2s;
}

.guide-content img:not([data-guide-no-lightbox]):hover {
    box-shadow: 0 20px 46px rgba(4,2,9,.5), 0 0 0 1px rgba(199,109,240,.25);
    transform: translateY(-1px);
}

.guide-reader-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 14px;
    margin-top: 48px;
    padding-top: 20px;
    border-top: 1px solid rgba(196,119,235,.16);
}

.guide-reader-nav a {
    display: flex;
    min-height: 72px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 12px 15px;
    border: 1px solid rgba(196,119,235,.2);
    border-radius: 10px;
    background: rgba(20,16,27,.42);
    text-decoration: none;
    transition: border-color .2s, background .2s, transform .2s;
}

.guide-reader-nav a:hover {
    border-color: rgba(211,121,250,.48);
    background: rgba(178,76,224,.08);
    transform: translateY(-1px);
}

.guide-reader-nav small { color: #8e8794; font-size: 10px; }
.guide-reader-nav strong { color: #d7cfdc; font-size: 13px; line-height: 1.4; }
.guide-reader-nav__next { text-align: right; }

.guide-lightbox {
    position: fixed;
    z-index: 10000;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 30px;
    border: 0;
    background: rgba(5,3,9,.88);
    backdrop-filter: blur(8px);
    cursor: zoom-out;
}

.guide-lightbox[hidden] { display: none; }
.guide-lightbox img { display: block; max-width: min(94vw, 1600px); max-height: 91vh; border-radius: 12px; box-shadow: 0 28px 90px rgba(0,0,0,.72); object-fit: contain; }
.guide-lightbox__close { position: absolute; top: 18px; right: 22px; color: #e7dceb; font-size: 30px; line-height: 1; }
body.guide-lightbox-open { overflow: hidden; }

@media (max-width: 700px) {
    .guide-content img:not([data-guide-no-lightbox]),
    .guide-content .guide-welcome-banner img,
    .guide-article .guide-cover--legacy { width: 100%; max-width: 100%; }
    .guide-reader-nav { grid-template-columns: 1fr; }
    .guide-reader-nav > span { display: none; }
    .guide-reader-nav__next { text-align: left; }
    .guide-lightbox { padding: 12px; }
}

/* V34.17 — cover/card separation and compact illustrated instructions */
.guide-content h2,
.guide-content h3 {
    clear: both;
}

/* An ordinary image remains a large authored illustration. */
.guide-content img:not([data-guide-no-lightbox]) {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 26px 0;
}

/* A banner is a wide, naturally low strip controlled by the uploaded file. */
.guide-welcome-banner {
    clear: both;
    width: 100%;
    margin: 22px 0 30px;
}

.guide-content .guide-welcome-banner img {
    display: block;
    width: 100%;
    max-width: 100%;
    max-height: 320px;
    margin: 0;
    border-radius: 12px;
    aspect-ratio: auto;
    object-fit: cover;
}

/* Numbered instructions become compact text + tile rows. */
.guide-content ol > li.guide-step--illustrated {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(230px,300px);
    gap: 18px 24px;
    align-items: start;
    min-height: 0;
    padding-top: 10px;
    padding-bottom: 14px;
}

.guide-step-copy { min-width: 0; }
.guide-step-copy > :first-child { margin-top: 0; }
.guide-step-copy > :last-child { margin-bottom: 0; }
.guide-step-media { margin: 0; }

.guide-content .guide-step-media img {
    width: 100%;
    max-width: 100%;
    margin: 0;
    border: 1px solid rgba(199,109,240,.27);
    border-radius: 10px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    box-shadow: 0 12px 28px rgba(4,2,9,.35);
}

/* Explicit right-hand illustration for prose outside numbered steps. */
.guide-side-media {
    float: right;
    width: min(38%, 300px);
    margin: 3px 0 20px 24px;
}

.guide-content .guide-side-media img {
    width: 100%;
    max-width: 100%;
    margin: 0;
    border: 1px solid rgba(199,109,240,.27);
    border-radius: 10px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    box-shadow: 0 12px 28px rgba(4,2,9,.35);
}

@media (max-width: 760px) {
    .guide-content ol > li.guide-step--illustrated { grid-template-columns: 1fr; }
    .guide-side-media { float: none; width: 100%; max-width: 420px; margin: 16px 0 22px auto; }
}

/* V34.18 — final reading rhythm and compact route controls */
.guide-heading > .guide-heading-kind {
    padding-bottom: 7px;
    color: var(--cofi-accent, #c57cf2);
    font-size: .71rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.guide-continuation { display: none; }

.guide-reader-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 38px;
    padding-top: 15px;
}

.guide-reader-nav a {
    width: auto;
    min-width: 0;
    max-width: min(42%, 330px);
    min-height: 0;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8px;
}

.guide-reader-nav a > span {
    flex: 0 0 auto;
    color: #a66bc2;
    font-size: 12px;
}

.guide-reader-nav a > strong {
    overflow: hidden;
    font-size: 11.5px;
    font-weight: 650;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.guide-reader-nav__next { text-align: left; }

.guide-command-description {
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 8px;
    text-overflow: clip;
    scrollbar-width: none;
    overscroll-behavior-inline: contain;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 10px, #000 calc(100% - 10px), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 10px, #000 calc(100% - 10px), transparent 100%);
}

.guide-command-description::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

@media (max-width: 600px) {
    .guide-reader-nav { flex-wrap: wrap; }
    .guide-reader-nav a { max-width: 100%; }
}

/* V34.20 — respect Markdown list starts and keep route slots stable */
.guide-content ol {
    counter-reset: guide-step var(--guide-list-start, 0);
}

.guide-reader-nav {
    display: grid;
    width: min(100%, 680px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-right: auto;
    margin-left: auto;
}

.guide-reader-nav a {
    width: max-content;
    max-width: min(100%, 320px);
}

.guide-reader-nav__previous {
    grid-column: 1;
    justify-self: end;
}

.guide-reader-nav__next {
    grid-column: 2;
    justify-self: start;
}

@media (max-width: 600px) {
    .guide-reader-nav { grid-template-columns: 1fr; }
    .guide-reader-nav__previous,
    .guide-reader-nav__next { grid-column: 1; justify-self: center; }
}

@media (max-width: 1180px) {
    .guide-library,
    .guide-children-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
    .guide-library,
    .guide-children-grid { grid-template-columns: 1fr; }
}

/* V34.22 — collapsible sections of the active article */
.guide-page-toc[hidden] { display: none !important; }
.guide-tree-row > .guide-page-toc-toggle { flex-shrink: 0; }
.guide-tree-row > .guide-page-toc-toggle span { transform: rotate(0deg) !important; }
.guide-tree-row > .guide-page-toc-toggle[aria-expanded="false"] span { transform: rotate(-90deg) !important; }
.guide-tree-row > .guide-page-toc-toggle:focus-visible { outline: 2px solid #c687e8; outline-offset: 2px; }
