.docs-shell {
    --docs-bg: #050914;
    --docs-panel: rgba(15, 23, 42, .82);
    --docs-panel-soft: rgba(2, 6, 23, .42);
    --docs-line: rgba(148, 163, 184, .24);
    --docs-copy: #dbeafe;
    --docs-muted: #b6c5d8;
    --docs-cyan: #7dd3fc;
    --docs-gold: #facc15;
    background:
        radial-gradient(circle at 8% 0%, rgba(14, 165, 233, .28), transparent 34rem),
        radial-gradient(circle at 94% 8%, rgba(245, 158, 11, .18), transparent 30rem),
        linear-gradient(180deg, #050914 0%, #0f172a 45%, #111827 100%);
    margin: -1.5rem 0 0;
    padding-bottom: 4rem;
}

.docs-hero {
    padding: 5rem 0 3rem;
    color: #fff;
}

.docs-eyebrow,
.docs-freshness {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .52rem .85rem;
    border-radius: 999px;
    font-size: .76rem;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.docs-eyebrow {
    color: #082f49;
    background: linear-gradient(135deg, #fde68a, #fbbf24);
    box-shadow: 0 14px 34px rgba(245, 158, 11, .24);
}

.docs-freshness {
    margin-left: .45rem;
    color: #ccfbf1;
    border: 1px solid rgba(94, 234, 212, .32);
    background: rgba(13, 148, 136, .2);
}

.docs-title {
    max-width: 950px;
    margin: 1.3rem 0 1rem;
    color: #fff;
    font-size: clamp(2.45rem, 6vw, 5.5rem);
    font-weight: 950;
    letter-spacing: -.055em;
    line-height: .95;
}

.docs-title span { color: var(--docs-cyan); }

.docs-lead {
    max-width: 900px;
    margin: 0;
    color: var(--docs-copy);
    font-size: 1.16rem;
    line-height: 1.75;
}

.docs-hero-card,
.doc-section,
.docs-toc {
    border: 1px solid var(--docs-line);
    background: var(--docs-panel);
    box-shadow: 0 28px 76px rgba(2, 6, 23, .4);
    backdrop-filter: blur(18px);
}

.docs-hero-card {
    padding: 1.3rem;
    border-radius: 28px;
}

.docs-stat {
    min-height: 112px;
    padding: 1rem;
    border: 1px solid rgba(125, 211, 252, .24);
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(14, 165, 233, .18), rgba(15, 23, 42, .9));
}

.docs-stat strong {
    display: block;
    color: #fff;
    font-size: 1.85rem;
    line-height: 1;
}

.docs-stat span {
    color: #bae6fd;
    font-size: .86rem;
    font-weight: 700;
}

.docs-command,
.docs-role-guides,
.docs-feedback {
    border: 1px solid var(--docs-line);
    border-radius: 28px;
    color: var(--docs-copy);
    background: rgba(8, 15, 30, .9);
    box-shadow: 0 28px 76px rgba(2, 6, 23, .4);
}

.docs-command {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(320px, 1.1fr);
    gap: 1.3rem;
    align-items: center;
    margin: 0 0 1.2rem;
    padding: 1.3rem;
}

.docs-command__intro,
.docs-feedback__copy {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.docs-command__icon,
.docs-feedback__icon {
    display: grid;
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    place-items: center;
    border-radius: 18px;
    color: #082f49;
    background: linear-gradient(135deg, #bae6fd, #facc15);
    box-shadow: 0 14px 32px rgba(56, 189, 248, .2);
}

.docs-command h2,
.docs-role-guides h2,
.docs-feedback h2,
.docs-empty-state h2 {
    margin: .2rem 0 .35rem;
    color: #fff;
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 950;
    letter-spacing: -.03em;
}

.docs-command p,
.docs-role-guides p,
.docs-feedback p,
.docs-empty-state p {
    margin: 0;
    color: var(--docs-muted);
}

.docs-search-field label,
.docs-feedback .form-label {
    display: block;
    margin-bottom: .45rem;
    color: #fff;
    font-weight: 850;
}

.docs-search-field__control {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .2rem .25rem .2rem .85rem;
    border: 2px solid rgba(125, 211, 252, .46);
    border-radius: 18px;
    background: #020617;
}

.docs-search-field__control:focus-within {
    border-color: var(--docs-gold);
    box-shadow: 0 0 0 4px rgba(250, 204, 21, .18);
}

.docs-search-field__control > i { color: #7dd3fc; }

.docs-search-field input {
    width: 100%;
    min-width: 0;
    padding: .78rem 0;
    border: 0;
    outline: 0;
    color: #fff;
    background: transparent;
    font-size: 1rem;
}

.docs-search-field input::placeholder { color: #8798ad; opacity: 1; }

.docs-search-clear {
    display: grid;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    place-items: center;
    border: 0;
    border-radius: 13px;
    color: #fff;
    background: rgba(248, 113, 113, .2);
}

.docs-search-clear:hover,
.docs-search-clear:focus { background: #ef4444; }

.docs-shortcuts {
    display: flex;
    flex-wrap: wrap;
    gap: .7rem;
    margin-top: .6rem;
    color: #a8b6ca;
    font-size: .76rem;
    font-weight: 750;
}

.docs-shortcuts span { display: inline-flex; align-items: center; gap: .25rem; }

.docs-shortcuts kbd {
    min-width: 25px;
    padding: .18rem .35rem;
    border: 1px solid rgba(148, 163, 184, .34);
    border-radius: 7px;
    color: #e0f2fe;
    background: #172033;
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .35);
    text-align: center;
}

.docs-search-status {
    grid-column: 1 / -1;
    padding: .72rem .9rem;
    border-radius: 14px;
    color: #d9f99d;
    background: rgba(22, 101, 52, .34);
    font-weight: 800;
}

.docs-role-guides {
    margin-bottom: 2rem;
    padding: 1.3rem;
}

.docs-role-guides__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.docs-role-reset {
    flex: 0 0 auto;
    padding: .64rem .9rem;
    border: 1px solid rgba(125, 211, 252, .38);
    border-radius: 999px;
    color: #e0f2fe;
    background: rgba(14, 116, 144, .18);
    font-weight: 900;
}

.docs-role-reset[aria-pressed="true"] {
    color: #082f49;
    background: #bae6fd;
}

.docs-role-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .75rem;
}

.docs-role-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: .75rem;
    align-items: center;
    min-width: 0;
    padding: .9rem;
    border: 1px solid rgba(148, 163, 184, .22);
    border-radius: 18px;
    color: #fff;
    background: rgba(15, 23, 42, .78);
    text-align: left;
}

.docs-role-card:hover,
.docs-role-card:focus {
    border-color: #7dd3fc;
    transform: translateY(-1px);
}

.docs-role-card[aria-pressed="true"] {
    border-color: var(--docs-gold);
    background: linear-gradient(135deg, rgba(161, 98, 7, .46), rgba(14, 116, 144, .36));
    box-shadow: 0 14px 32px rgba(2, 6, 23, .3);
}

.docs-role-card__icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 14px;
    color: #082f49;
    background: #bae6fd;
}

.docs-role-card strong { display: block; color: #fff; font-size: .92rem; }
.docs-role-card small { display: block; margin-top: .18rem; color: #b7c8da; line-height: 1.35; }
.docs-role-card__arrow { color: var(--docs-gold); }

.docs-layout {
    display: grid;
    grid-template-columns: minmax(230px, 295px) minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
}

.docs-toc {
    position: sticky;
    top: 1rem;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    padding: .9rem;
    border-radius: 22px;
    scrollbar-color: #38bdf8 #0f172a;
}

.docs-toc a {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .58rem .7rem;
    border-radius: 12px;
    color: var(--docs-copy);
    font-size: .88rem;
    font-weight: 760;
    text-decoration: none;
}

.docs-toc a span { min-width: 0; flex: 1; }

.docs-toc a small {
    margin-left: auto;
    color: #7dd3fc;
    font-size: .65rem;
    font-weight: 900;
}

.docs-toc a:hover,
.docs-toc a:focus,
.docs-toc a.is-active {
    color: #07111f;
    background: var(--docs-gold);
}

.docs-toc a:hover small,
.docs-toc a:focus small,
.docs-toc a.is-active small { color: #07111f; }

.docs-content {
    display: grid;
    min-width: 0;
    gap: 1.4rem;
}

.doc-section {
    overflow: hidden;
    border-radius: 28px;
    scroll-margin-top: 1rem;
}

.doc-section[hidden],
.docs-toc a[hidden] { display: none !important; }

.doc-section__header {
    padding: 1.45rem;
    border-bottom: 1px solid rgba(148, 163, 184, .18);
    background: linear-gradient(135deg, rgba(14, 165, 233, .18), rgba(245, 158, 11, .08));
}

.doc-section__header h2 {
    margin: .3rem 0;
    color: #fff;
    font-weight: 950;
    letter-spacing: -.03em;
}

.doc-section__header p,
.doc-section__body p,
.doc-section__body li {
    color: var(--docs-copy);
    line-height: 1.72;
}

.doc-section__header p { margin: 0; }
.doc-section__body { padding: 1.45rem; color: #e5edf7; }

.doc-section__body h3 {
    margin-top: 1.15rem;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 900;
}

.doc-kicker {
    color: var(--docs-gold);
    font-size: .76rem;
    font-weight: 900;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.doc-kicker-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .8rem;
}

.doc-release-badge {
    display: inline-flex;
    align-items: center;
    gap: .38rem;
    padding: .32rem .58rem;
    border: 1px solid rgba(125, 211, 252, .34);
    border-radius: 999px;
    color: #d9f99d;
    background: rgba(22, 101, 52, .34);
    font-size: .69rem;
    font-weight: 900;
    letter-spacing: .03em;
    white-space: nowrap;
}

.doc-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.doc-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.doc-card {
    min-width: 0;
    padding: 1rem;
    border: 1px solid rgba(148, 163, 184, .2);
    border-radius: 19px;
    background: var(--docs-panel-soft);
}

.doc-card h4 {
    margin-bottom: .45rem;
    color: #fff;
    font-size: 1rem;
    font-weight: 900;
}

.doc-card p { margin-bottom: .5rem; font-size: .95rem; }
.doc-card ul { margin: 0; padding-left: 1.15rem; }

.doc-callout {
    margin: 1rem 0;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(250, 204, 21, .3);
    border-radius: 20px;
    color: #fff;
    background: linear-gradient(135deg, rgba(250, 204, 21, .16), rgba(14, 165, 233, .1));
}

.doc-callout--danger {
    border-color: rgba(248, 113, 113, .42);
    background: linear-gradient(135deg, rgba(127, 29, 29, .62), rgba(15, 23, 42, .82));
}

.doc-button-row {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    margin-top: 1rem;
}

.doc-route {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .28rem .58rem;
    border-radius: 999px;
    color: #0f172a;
    background: #bae6fd;
    font-size: .78rem;
    font-weight: 900;
    text-decoration: none;
}

.doc-route:hover { color: #0f172a; background: var(--docs-gold); }

.doc-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.doc-table {
    width: 100%;
    min-width: 680px;
    border-collapse: separate;
    border-spacing: 0 .52rem;
}

.doc-table th {
    padding: 0 .8rem;
    color: var(--docs-gold);
    font-size: .78rem;
    letter-spacing: .07em;
    text-align: left;
    text-transform: uppercase;
}

.doc-table td {
    padding: .8rem;
    color: var(--docs-copy);
    vertical-align: top;
    border-top: 1px solid rgba(148, 163, 184, .14);
    border-bottom: 1px solid rgba(148, 163, 184, .14);
    background: rgba(2, 6, 23, .46);
}

.doc-table td:first-child {
    color: #fff;
    font-weight: 900;
    border-left: 1px solid rgba(148, 163, 184, .14);
    border-radius: 13px 0 0 13px;
}

.doc-table td:last-child {
    border-right: 1px solid rgba(148, 163, 184, .14);
    border-radius: 0 13px 13px 0;
}

.doc-shot {
    margin: 1rem 0 1.2rem;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, .26);
    border-radius: 23px;
    background: #020617;
    box-shadow: 0 22px 55px rgba(2, 6, 23, .46);
}

.doc-shot__bar {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .72rem .9rem;
    border-bottom: 1px solid rgba(148, 163, 184, .18);
    background: #0f172a;
}

.doc-shot__dots { display: inline-flex; gap: .34rem; }
.doc-shot__dots span { width: .68rem; height: .68rem; border-radius: 999px; background: #ef4444; }
.doc-shot__dots span:nth-child(2) { background: #f59e0b; }
.doc-shot__dots span:nth-child(3) { background: #22c55e; }
.doc-shot__url { flex: 1; color: #94a3b8; font-size: .8rem; font-weight: 800; text-align: center; }

.doc-shot__body {
    padding: 1rem;
    background:
        radial-gradient(circle at top right, var(--shot-accent), transparent 18rem),
        linear-gradient(135deg, #0b1120, #111827);
}

.doc-shot__header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 1rem;
}

.doc-shot__eyebrow { color: #bae6fd; font-size: .7rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.doc-shot h4 { margin: .2rem 0 .7rem; color: #fff; font-weight: 950; }
.doc-shot__badge { padding: .35rem .6rem; border-radius: 999px; color: #0f172a; background: var(--docs-gold); font-size: .7rem; font-weight: 950; }
.doc-shot__chips { display: flex; flex-wrap: wrap; gap: .42rem; margin-bottom: .85rem; }
.doc-shot__chips span { padding: .32rem .55rem; border: 1px solid rgba(255,255,255,.12); border-radius: 999px; color: #fff; background: rgba(255,255,255,.12); font-size: .76rem; font-weight: 800; }
.doc-shot__media { overflow: hidden; border: 1px solid rgba(226,232,240,.18); border-radius: 17px; background: #020617; }
.doc-shot__media img { display: block; width: 100%; height: auto; aspect-ratio: 1440 / 940; object-fit: cover; object-position: top center; }
.doc-shot figcaption { margin: 0; padding: .72rem 1rem; color: #a8b6ca; background: #020617; font-size: .83rem; }

.docs-empty-state {
    padding: 3rem 1.3rem;
    border: 1px dashed rgba(125, 211, 252, .5);
    border-radius: 26px;
    background: rgba(2, 6, 23, .62);
    text-align: center;
}

.docs-empty-state > span {
    display: grid;
    width: 64px;
    height: 64px;
    margin: 0 auto .8rem;
    place-items: center;
    border-radius: 20px;
    color: #082f49;
    background: var(--docs-gold);
    font-size: 1.5rem;
}

.docs-empty-state .btn { margin-top: 1rem; }

.docs-feedback {
    display: grid;
    grid-template-columns: minmax(0, .78fr) minmax(420px, 1.22fr);
    gap: 1.5rem;
    margin-top: 2rem;
    padding: 1.4rem;
}

.docs-feedback__form {
    padding: 1.1rem;
    border: 1px solid rgba(125, 211, 252, .24);
    border-radius: 21px;
    background: rgba(2, 6, 23, .52);
}

.docs-feedback .form-select,
.docs-feedback .form-control {
    border: 1px solid rgba(148, 163, 184, .46);
    color: #fff;
    background: #0f172a;
}

.docs-feedback .form-select:focus,
.docs-feedback .form-control:focus {
    border-color: var(--docs-gold);
    box-shadow: 0 0 0 4px rgba(250, 204, 21, .16);
}

.docs-feedback .form-select option { color: #fff; background: #0f172a; }
.docs-feedback .form-control::placeholder { color: #94a3b8; opacity: 1; }

.docs-feedback .btn-warning.text-dark {
    border-color: #facc15 !important;
    color: #08111d !important;
    background: #facc15 !important;
}

.docs-feedback .btn-warning.text-dark:hover,
.docs-feedback .btn-warning.text-dark:focus {
    border-color: #fde68a !important;
    color: #020617 !important;
    background: #fde68a !important;
}

.docs-feedback__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .7rem;
}

.docs-feedback__honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.docs-shell button:focus-visible,
.docs-shell a:focus-visible,
.docs-shell input:focus-visible,
.docs-shell select:focus-visible,
.docs-shell textarea:focus-visible {
    outline: 3px solid #facc15;
    outline-offset: 3px;
}

.doc-table-wrap:focus-visible {
    outline: 3px solid #38bdf8;
    outline-offset: 3px;
}

/* The authenticated reseller menu is wider than one desktop row. On docs, wrap
   its account controls instead of letting the navigation widen the document. */
@media (min-width: 992px) {
    #navbarNav { flex-wrap: wrap; }
}

@media (max-width: 1199.98px) {
    .docs-role-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .doc-grid--three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 991.98px) {
    .docs-command,
    .docs-feedback { grid-template-columns: 1fr; }
    .docs-layout { grid-template-columns: 1fr; }
    .docs-toc { position: static; max-height: none; }
}

@media (max-width: 767.98px) {
    .docs-hero { padding-top: 3.5rem; }
    .docs-freshness { margin: .5rem 0 0; }
    .docs-command,
    .docs-role-guides,
    .docs-feedback { padding: 1rem; border-radius: 22px; }
    .docs-role-guides__header { align-items: flex-start; flex-direction: column; }
    .docs-role-grid { grid-template-columns: 1fr; }
    .docs-feedback__actions { display: grid; }
    .docs-feedback__actions .btn { width: 100%; }
    .doc-grid,
    .doc-grid--three { grid-template-columns: 1fr; }
    .doc-section__body,
    .doc-section__header { padding: 1.1rem; }
    .doc-shot__header { display: block; }
    .doc-shot__badge { display: inline-block; margin-bottom: .7rem; }
}
