.docs-page {
    background: #f8fafc;
    color: #0f172a;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    margin: 0;
}

.docs-shell {
    margin: 0 auto;
    max-width: 1120px;
    padding: 48px 20px 72px;
}

.docs-layout {
    align-items: start;
    display: grid;
    gap: 28px;
    grid-template-columns: 260px minmax(0, 1fr);
    max-width: 1220px;
}

.docs-main {
    min-width: 0;
}

.docs-side-nav {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
    padding: 16px;
    position: sticky;
    top: 96px;
}

.docs-side-nav-title {
    color: #0f172a;
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.docs-side-nav-home,
.docs-side-nav-link {
    border-radius: 8px;
    color: #334155;
    display: block;
    line-height: 1.35;
    padding: 10px 11px;
    text-decoration: none;
}

.docs-side-nav-home {
    font-weight: 700;
}

.docs-side-nav-home:hover,
.docs-side-nav-home:focus-visible,
.docs-side-nav-link:hover,
.docs-side-nav-link:focus-visible,
.docs-side-nav-home.active,
.docs-side-nav-link.active {
    background: #eff6ff;
    color: #1d4ed8;
}

.docs-side-nav-group {
    border-top: 1px solid #e2e8f0;
    margin-top: 12px;
    padding-top: 12px;
}

.docs-side-nav-group-label {
    color: #64748b;
    font-size: 0.74rem;
    font-weight: 800;
    margin: 0 0 7px 2px;
    text-transform: uppercase;
}

.docs-side-nav-link span {
    display: block;
    font-weight: 700;
}

.docs-side-nav-link small {
    color: #64748b;
    display: block;
    font-size: 0.78rem;
    margin-top: 3px;
}

.docs-eyebrow {
    color: #2563eb;
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.docs-breadcrumbs {
    align-items: center;
    color: #64748b;
    display: flex;
    flex-wrap: wrap;
    font-size: 0.86rem;
    gap: 8px;
    margin: 0 0 14px;
}

.docs-breadcrumbs a {
    color: #2563eb;
    font-weight: 700;
    text-decoration: none;
}

.docs-breadcrumbs a:hover,
.docs-breadcrumbs a:focus-visible {
    text-decoration: underline;
}

.docs-hero {
    margin-bottom: 28px;
}

.docs-hero-split {
    align-items: stretch;
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
}

.docs-hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    letter-spacing: 0;
    line-height: 1.05;
    margin: 0 0 12px;
}

.docs-hero p {
    color: #475569;
    font-size: 1.05rem;
    line-height: 1.65;
    max-width: 760px;
    margin: 0;
}

.docs-hero-panel {
    align-self: end;
    background: #0f172a;
    border-radius: 8px;
    color: #f8fafc;
    padding: 20px;
}

.docs-hero-panel span,
.docs-card-meta {
    color: #64748b;
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.docs-hero-panel strong {
    display: block;
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.docs-hero-panel p {
    color: #cbd5e1;
    font-size: 0.92rem;
    line-height: 1.55;
}

.docs-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.docs-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
    color: inherit;
    display: block;
    padding: 20px;
    text-decoration: none;
}

.docs-card-admin {
    border-color: #bfdbfe;
}

.docs-action {
    align-items: center;
    background: #2563eb;
    border-radius: 8px;
    color: #ffffff;
    display: inline-flex;
    font-weight: 700;
    min-height: 44px;
    padding: 0 16px;
    text-decoration: none;
    white-space: nowrap;
}

.docs-card h2,
.docs-card h3 {
    font-size: 1.05rem;
    margin: 0 0 8px;
}

.docs-card p,
.docs-section p,
.docs-section li {
    color: #475569;
    line-height: 1.65;
}

.docs-section {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-top: 18px;
    padding: 22px;
}

.docs-section-highlight {
    align-items: center;
    display: flex;
    gap: 20px;
    justify-content: space-between;
}

.docs-section-highlight p:last-child,
.docs-section-highlight h2:last-child {
    margin-bottom: 0;
}

.docs-section-heading {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
}

.docs-section h2 {
    font-size: 1.25rem;
    margin: 0 0 12px;
}

.docs-section h3 {
    font-size: 1rem;
    margin: 22px 0 8px;
}

.docs-section code,
.docs-config code {
    background: #e2e8f0;
    border-radius: 4px;
    color: #0f172a;
    padding: 2px 5px;
}

.docs-config {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin: 18px 0;
}

.docs-config-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 14px;
}

.docs-config-item span {
    color: #64748b;
    display: block;
    font-size: 0.78rem;
    margin-bottom: 5px;
}

.docs-config-item strong {
    display: block;
    overflow-wrap: anywhere;
}

.docs-note {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    color: #1e3a8a;
    padding: 14px;
}

.docs-note-plain {
    margin-top: 18px;
}

.docs-article .docs-section ol,
.docs-article .docs-section ul {
    margin-bottom: 0;
    padding-left: 1.3rem;
}

.docs-article .docs-section li + li {
    margin-top: 8px;
}

.docs-tutorial-hero {
    align-items: center;
    background: linear-gradient(135deg, #eef6ff 0%, #ffffff 52%, #ecfdf5 100%);
    border: 1px solid #dbeafe;
    border-radius: 8px;
    display: grid;
    gap: 26px;
    grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1.2fr);
    margin-bottom: 18px;
    overflow: hidden;
    padding: 28px;
}

.docs-tutorial-hero-copy h1 {
    color: #0f172a;
    font-size: clamp(2.1rem, 5vw, 3.3rem);
    letter-spacing: 0;
    line-height: 1.02;
    margin: 0 0 14px;
}

.docs-tutorial-hero-copy p {
    color: #334155;
    font-size: 1.08rem;
    line-height: 1.65;
    margin: 0;
}

.docs-tutorial-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.docs-secondary-action {
    align-items: center;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    color: #0f172a;
    display: inline-flex;
    font-weight: 700;
    min-height: 44px;
    padding: 0 16px;
    text-decoration: none;
}

.docs-tutorial-visual {
    margin: 0;
}

.docs-tutorial-visual img {
    aspect-ratio: 7 / 4;
    border-radius: 8px;
    box-shadow: 0 24px 55px rgba(15, 23, 42, 0.18);
    display: block;
    height: auto;
    object-fit: cover;
    width: 100%;
}

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

.docs-tutorial-summary article,
.docs-step-card,
.docs-checklist-card,
.docs-warning-card,
.docs-tutorial-final {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
}

.docs-tutorial-summary article {
    padding: 18px;
}

.docs-tutorial-summary strong {
    color: #0f172a;
    display: block;
    font-size: 1rem;
    margin: 10px 0 6px;
}

.docs-tutorial-summary p {
    color: #475569;
    line-height: 1.55;
    margin: 0;
}

.docs-mini-icon,
.docs-step-icon {
    align-items: center;
    background: #e0f2fe;
    border: 1px solid #bae6fd;
    border-radius: 8px;
    color: #0369a1;
    display: inline-flex;
    justify-content: center;
}

.docs-mini-icon {
    height: 38px;
    width: 38px;
}

.docs-mini-icon svg,
.docs-step-icon svg {
    fill: none;
    height: 22px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
    width: 22px;
}

.docs-tutorial-section {
    margin-top: 24px;
}

.docs-step-list {
    display: grid;
    gap: 14px;
}

.docs-step-card {
    display: grid;
    gap: 16px;
    grid-template-columns: 38px 52px minmax(0, 1fr);
    padding: 18px;
    position: relative;
}

.docs-step-number {
    align-items: center;
    background: #0f172a;
    border-radius: 999px;
    color: #ffffff;
    display: inline-flex;
    font-weight: 800;
    height: 34px;
    justify-content: center;
    width: 34px;
}

.docs-step-icon {
    height: 48px;
    width: 48px;
}

.docs-step-card h3 {
    color: #0f172a;
    font-size: 1.1rem;
    margin: 0 0 8px;
}

.docs-step-card p {
    color: #475569;
    line-height: 1.65;
    margin: 0;
}

.docs-tip {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #475569;
    line-height: 1.55;
    margin-top: 12px;
    padding: 10px 12px;
}

.docs-tutorial-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    margin-top: 18px;
}

.docs-checklist-card,
.docs-warning-card {
    padding: 22px;
}

.docs-checklist-card h2,
.docs-warning-card h2,
.docs-tutorial-final h2 {
    color: #0f172a;
    font-size: 1.25rem;
    margin: 0 0 12px;
}

.docs-check-list,
.docs-warning-card ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.docs-check-list li,
.docs-warning-card li {
    color: #475569;
    line-height: 1.55;
}

.docs-check-list li {
    align-items: center;
    display: flex;
    gap: 10px;
}

.docs-check-list li + li,
.docs-warning-card li + li {
    margin-top: 10px;
}

.docs-check-list li span {
    background: #10b981;
    border-radius: 999px;
    box-shadow: inset 0 0 0 4px #d1fae5;
    flex: 0 0 auto;
    height: 18px;
    width: 18px;
}

.docs-warning-card {
    border-color: #fed7aa;
}

.docs-warning-card li {
    border-left: 3px solid #fb923c;
    padding-left: 10px;
}

.docs-tutorial-final {
    align-items: center;
    background: #0f172a;
    display: flex;
    gap: 20px;
    justify-content: space-between;
    margin-top: 18px;
    padding: 24px;
}

.docs-tutorial-final h2,
.docs-tutorial-final p {
    color: #f8fafc;
}

.docs-tutorial-final p {
    line-height: 1.65;
    margin: 0;
    max-width: 720px;
}

.docs-guide-hero {
    background: #ffffff;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
    margin-bottom: 18px;
    padding: 26px;
}

.docs-guide-hero h1 {
    color: #0f172a;
    font-size: clamp(2rem, 5vw, 3rem);
    letter-spacing: 0;
    line-height: 1.05;
    margin: 0 0 12px;
}

.docs-guide-hero p {
    color: #475569;
    font-size: 1.05rem;
    line-height: 1.65;
    margin: 0;
    max-width: 760px;
}

.docs-guide-list {
    display: grid;
    gap: 14px;
}

.docs-guide-step {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    display: grid;
    gap: 16px;
    grid-template-columns: 42px minmax(0, 1fr);
    padding: 20px;
}

.docs-guide-step-number {
    align-items: center;
    background: #e0f2fe;
    border: 1px solid #bae6fd;
    border-radius: 999px;
    color: #0369a1;
    display: inline-flex;
    font-weight: 800;
    height: 38px;
    justify-content: center;
    width: 38px;
}

.docs-guide-step h2 {
    color: #0f172a;
    font-size: 1.2rem;
    margin: 0 0 8px;
}

.docs-guide-step p {
    color: #475569;
    line-height: 1.65;
    margin: 0;
}

.docs-guide-step p + p {
    margin-top: 10px;
}

.docs-guide-final {
    margin-top: 18px;
}

.docs-admin-page .docs-shell {
    max-width: 1180px;
    padding-top: 12px;
}

.docs-admin-page .docs-section,
.docs-admin-page .docs-card {
    background: #0f172a;
    border-color: #1e293b;
    color: #f8fafc;
    box-shadow: none;
}

.docs-admin-page .docs-hero h1,
.docs-admin-page .docs-card h2,
.docs-admin-page .docs-card h3,
.docs-admin-page .docs-section h2,
.docs-admin-page .docs-section h3 {
    color: #f8fafc;
}

.docs-admin-page .docs-hero p,
.docs-admin-page .docs-card p,
.docs-admin-page .docs-section p,
.docs-admin-page .docs-section li {
    color: #94a3b8;
}

.docs-admin-page .docs-config-item {
    background: #111827;
    border-color: #1f2937;
}

.docs-admin-page .docs-note {
    background: #172554;
    border-color: #1d4ed8;
    color: #dbeafe;
}

@media (max-width: 720px) {
    .docs-shell {
        padding: 32px 16px 54px;
    }

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

    .docs-side-nav {
        position: static;
    }

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

    .docs-section-highlight {
        align-items: flex-start;
        flex-direction: column;
    }

    .docs-tutorial-hero,
    .docs-tutorial-summary,
    .docs-tutorial-grid {
        grid-template-columns: 1fr;
    }

    .docs-tutorial-hero {
        padding: 20px;
    }

    .docs-step-card {
        grid-template-columns: 34px minmax(0, 1fr);
    }

    .docs-step-icon {
        grid-column: 1;
        grid-row: 2;
    }

    .docs-step-card > div:last-child {
        grid-column: 2;
        grid-row: 1 / span 2;
    }

    .docs-tutorial-final {
        align-items: flex-start;
        flex-direction: column;
    }
}
