:root {
    --bg: #f5f7fb;
    --panel: #ffffff;
    --panel-alt: #eef2fb;
    --text: #1b2a4a;
    --muted: #5b6b86;
    --accent: #1f6bff;
    --accent-soft: rgba(31, 107, 255, 0.1);
    --border: #d7deea;
    --shadow: 0 20px 60px rgba(25, 42, 89, 0.12);
}
* { box-sizing: border-box; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
}
img { max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.doc-hero {
    background: #ffffff;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}
.doc-hero__content {
    max-width: 1140px;
    width: 100%;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    align-items: center;
    gap: 20px;
}
.doc-hero__logo {
    display: flex;
    align-items: center;
    gap: 14px;
}
.doc-hero__logo img {
    width: 170px;
    height: auto;
}
.doc-hero__title {
    margin: 0;
    font-size: 28px;
    letter-spacing: -0.01em;
    color: #c0c6d2;
}
.doc-hero__subtitle {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 15px;
}
.doc-hero__actions {
    margin-left: auto;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.layout {
    max-width: 1280px;
    margin: 0 auto;
    padding: 28px 20px 48px;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 20px;
}
.layout main {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 0;
    box-shadow: var(--shadow);
    padding: 20px 22px;
}
.toc {
    position: sticky;
    top: 20px;
    align-self: start;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 0;
    box-shadow: var(--shadow);
    padding: 16px;
}
.toc h4 {
    margin: 0 0 12px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}
.toc-group { margin-bottom: 14px; }
.toc-subtitle {
    display: block;
    margin: 8px 0 6px;
    font-size: 12px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.toc a {
    display: block;
    padding: 6px 10px;
    border-radius: 0;
    color: var(--text);
    margin-bottom: 4px;
}
.toc-subgroup {
    margin: 4px 0 12px;
    padding-left: 10px;
    border-left: 2px solid var(--border);
}
.toc-subgroup a {
    font-size: 12px;
    color: var(--muted);
}
.toc-subgroup a.active,
.toc-subgroup a:hover {
    background: var(--accent-soft);
    color: var(--accent);
    text-decoration: none;
}
.toc a.active,
.toc a:hover {
    background: var(--accent-soft);
    color: var(--accent);
    text-decoration: none;
}

.section {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 0 0 18px;
    margin-bottom: 0;
}
.section + .section {
    border-top: 1px solid var(--border);
    padding-top: 18px;
}
.section h2 {
    margin: 0 0 10px;
    font-size: 22px;
}
.section h3 {
    margin: 14px 0 6px;
    font-size: 18px;
}
.section h4 {
    margin: 12px 0 6px;
    font-size: 15px;
}
.section p { margin: 0 0 10px; }
.section ul,
.section ol { margin: 0 0 10px; padding-left: 18px; }

.pill {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 0;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 12px;
    margin-left: 6px;
}
.meta {
    font-size: 12px;
    color: var(--muted);
}
.screen { margin: 12px 0 6px; }
.screen img {
    border: 1px solid var(--border);
    border-radius: 0;
    box-shadow: var(--shadow);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
}
.card {
    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent;
}
.card h4 {
    margin: 0 0 6px;
    font-size: 15px;
}

.path-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.path-card h3 {
    margin: 0 0 6px;
    font-size: 18px;
}
.path-links {
    font-size: 13px;
    color: var(--muted);
    margin: 6px 0 0;
}
.path-links a { color: var(--accent); }

.howto-index {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 6px 12px;
    margin: 10px 0 16px;
    font-size: 14px;
}
.howto-index a {
    color: var(--text);
    padding: 4px 0;
}
.howto-index a:hover { color: var(--accent); }

.howto-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.howto-item {
    border-top: 1px solid var(--border);
    padding-top: 16px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    scroll-margin-top: 12px;
}
.howto-item:first-child {
    border-top: 0;
    padding-top: 0;
}
.howto-item h3 { margin-top: 0; }
.howto-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 6px 0 8px;
}
.howto-tags .pill { margin-left: 0; }
.howto-lead {
    color: var(--muted);
    margin-bottom: 10px;
}
.howto-steps { margin-bottom: 10px; }
.howto-media { margin: 0; }
.howto-media figcaption { margin-top: 6px; }

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}
.cta-callout {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}
.cta-callout__content { min-width: 240px; }
.cta-callout__title {
    margin: 0;
    font-size: 16px;
}
.cta-callout__subtitle {
    margin: 6px 0 0;
    color: var(--muted);
}
.path-card ul {
    margin: 6px 0 0;
    padding-left: 18px;
}

.case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}
.case-card {
    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent;
}
.case-card h4 {
    margin: 0 0 6px;
    font-size: 14px;
}
.case-card p {
    margin: 0 0 6px;
    color: var(--muted);
}

.callout {
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
    background: var(--accent-soft);
    border-radius: 0;
    padding: 10px 12px;
}
.doc-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 10px;
}
.doc-table th,
.doc-table td {
    border: 1px solid var(--border);
    padding: 8px 10px;
    text-align: left;
    vertical-align: top;
}
.doc-table th { background: var(--panel-alt); }

.code-block {
    background: #0f172a;
    color: #e2e8f0;
    padding: 12px;
    border-radius: 0;
    font-size: 13px;
    overflow: auto;
}

.btn,
.rounded,
.rounded-1,
.rounded-2,
.rounded-3,
.rounded-4,
.rounded-5,
.rounded-10,
.rounded-pill,
.rounded-circle {
    border-radius: 0 !important;
}

.doc-hero__actions .btn {
    border-radius: 10px !important;
}

@media (max-width: 1024px) {
    .layout { grid-template-columns: 1fr; }
    .toc { position: relative; top: 0; }
}
