
:root {
    --bg: #070707;
    --bg-soft: #0b0b0b;
    --sidebar: #080808;
    --panel: #0e0e0e;
    --panel-hover: #121212;
    --text: #f2f2f2;
    --muted: #969696;
    --muted-2: #656565;
    --border: rgba(255,255,255,.09);
    --border-strong: rgba(255,255,255,.15);
    --gold: #d9a11e;
    --gold-bright: #f1d25c;
    --gold-soft: rgba(217,161,30,.10);
    --sidebar-width: 286px;
}

* {
    box-sizing: border-box;
}

html {
    background: var(--bg);
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(
            circle at 62% -120px,
            rgba(217,161,30,.10),
            transparent 420px
        ),
        var(--bg);
    font-family:
        Inter,
        "Segoe UI",
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}


/* ----------------------------------------------------------
   SCROLLBARS
---------------------------------------------------------- */

html,
body,
.docs-table-wrap {
    scrollbar-width: thin;
    scrollbar-color: #555 #0a0a0a;
}

.docs-sidebar {
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
}

.docs-sidebar:hover {
    scrollbar-color: #555 transparent;
}

.docs-sidebar::-webkit-scrollbar,
.docs-table-wrap::-webkit-scrollbar,
body::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

.docs-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.docs-sidebar::-webkit-scrollbar-thumb {
    background: transparent;
    border: 3px solid transparent;
    border-radius: 999px;
}

.docs-sidebar:hover::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #666, #4a4a4a);
    background-clip: padding-box;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.04);
}

.docs-sidebar:hover::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #7a7a7a, #595959);
    background-clip: padding-box;
}

.docs-table-wrap::-webkit-scrollbar-track,
body::-webkit-scrollbar-track {
    background: #090909;
}

.docs-table-wrap::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #666, #4a4a4a);
    border: 3px solid #090909;
    border-radius: 999px;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.04);
}

.docs-table-wrap::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #7a7a7a, #595959);
}

.docs-sidebar::-webkit-scrollbar-corner {
    background: transparent;
}

.docs-table-wrap::-webkit-scrollbar-corner,
body::-webkit-scrollbar-corner {
    background: #090909;
}

/* ----------------------------------------------------------
   SIDEBAR
---------------------------------------------------------- */

.docs-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--sidebar-width);
    padding: 22px 18px 28px;
    overflow-y: auto;
    background:
        linear-gradient(
            180deg,
            rgba(217,161,30,.035),
            transparent 170px
        ),
        var(--sidebar);
    border-right: 1px solid var(--border);
    z-index: 50;
}

.docs-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 5px 28px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--border);
}

.docs-brand-logo {
    display: flex;
    flex: 0 0 auto;
    border-radius: 8px;
}

.docs-brand-logo:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.docs-brand img {
    width: 39px;
    height: 39px;
    object-fit: contain;
}

.docs-brand-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.docs-brand-copy strong {
    font-size: 14px;
    letter-spacing: .04em;
}

.docs-brand-copy span {
    color: var(--muted-2);
    font-size: 11px;
}

.nav-section-label {
    margin: 25px 10px 8px;
    color: #565656;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.docs-nav-link {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 38px;
    padding: 9px 11px;
    margin: 2px 0;
    border-radius: 8px;
    color: #a2a2a2;
    font-size: 13px;
    font-weight: 550;
    transition:
        background .16s ease,
        color .16s ease;
}

.docs-nav-link:hover {
    color: #eee;
    background: rgba(255,255,255,.035);
}

.docs-nav-link.active {
    color: var(--gold-bright);
    background: var(--gold-soft);
}

.docs-nav-link.active::before {
    content: "";
    position: absolute;
    left: 0;
    width: 2px;
    height: 19px;
    border-radius: 3px;
    background: var(--gold);
    box-shadow: 0 0 12px rgba(217,161,30,.5);
}

.sidebar-bottom {
    margin-top: 30px;
    padding: 18px 9px 0;
    border-top: 1px solid var(--border);
    color: #666;
    font-size: 11px;
}

.sidebar-bottom a {
    color: #878787;
}

.sidebar-bottom a:hover {
    color: var(--gold-bright);
}

/* ----------------------------------------------------------
   MOBILE HEADER
---------------------------------------------------------- */

.mobile-header {
    display: none;
    position: sticky;
    top: 0;
    z-index: 40;
    height: 62px;
    padding: 0 18px;
    align-items: center;
    justify-content: space-between;
    background: rgba(7,7,7,.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

.mobile-brand {
    font-weight: 800;
    font-size: 13px;
    letter-spacing: .06em;
}

.menu-button {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 9px;
    color: #ddd;
    background: #0d0d0d;
    cursor: pointer;
}

.mobile-overlay {
    display: none;
}

/* ----------------------------------------------------------
   PAGE
---------------------------------------------------------- */

.docs-main {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
}

.docs-content {
    width: min(860px, calc(100% - 72px));
    margin: 0 auto;
    padding: 72px 0 100px;
}

.breadcrumb {
    margin-bottom: 18px;
    color: #5d5d5d;
    font-size: 12px;
}

.breadcrumb a:hover {
    color: var(--gold);
}

.page-kicker {
    color: var(--gold);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

h1 {
    margin: 12px 0 15px;
    font-size: clamp(38px, 6vw, 58px);
    line-height: 1.04;
    letter-spacing: -.045em;
}

.page-lead {
    max-width: 720px;
    margin: 0 0 40px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.72;
}

h2 {
    margin: 50px 0 15px;
    font-size: 25px;
    letter-spacing: -.025em;
}

h3 {
    margin: 29px 0 11px;
    font-size: 18px;
    letter-spacing: -.015em;
}

p {
    color: #aaa;
    line-height: 1.72;
}

ul,
ol {
    color: #aaa;
    line-height: 1.8;
}

li + li {
    margin-top: 6px;
}

strong {
    color: #efefef;
}

/* ----------------------------------------------------------
   COMPONENTS
---------------------------------------------------------- */

.callout {
    margin: 26px 0;
    padding: 18px 20px;
    border: 1px solid rgba(217,161,30,.20);
    border-left: 3px solid var(--gold);
    border-radius: 9px;
    background: rgba(217,161,30,.055);
    color: #b7b7b7;
    line-height: 1.65;
    font-size: 14px;
}

.callout strong {
    color: var(--gold-bright);
}

.callout.neutral {
    border-color: var(--border);
    border-left-color: #5f5f5f;
    background: rgba(255,255,255,.022);
}

.path-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 13px;
    margin: 24px 0 32px;
}

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

.path-card {
    position: relative;
    min-height: 150px;
    padding: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 12px;
    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.025),
            transparent
        ),
        var(--panel);
    transition:
        transform .18s ease,
        border-color .18s ease,
        background .18s ease;
}

.path-card:hover {
    transform: translateY(-2px);
    border-color: rgba(217,161,30,.32);
    background: var(--panel-hover);
}

.path-card .tag {
    display: inline-flex;
    margin-bottom: 18px;
    color: var(--gold);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.path-card h3 {
    margin: 0 0 7px;
    font-size: 17px;
}

.path-card p {
    margin: 0;
    color: #7f7f7f;
    font-size: 13px;
    line-height: 1.55;
}

.path-card .arrow {
    position: absolute;
    right: 17px;
    bottom: 14px;
    color: #5d5d5d;
    font-size: 18px;
    transition:
        transform .18s ease,
        color .18s ease;
}

.path-card:hover .arrow {
    transform: translateX(3px);
    color: var(--gold);
}

.step-list {
    counter-reset: dilemma-step;
    margin: 25px 0;
}

.guide-step {
    position: relative;
    padding: 4px 0 27px 49px;
    counter-increment: dilemma-step;
}

.guide-step:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 16px;
    top: 37px;
    bottom: 2px;
    width: 1px;
    background: var(--border);
}

.guide-step::before {
    content: counter(dilemma-step);
    position: absolute;
    left: 0;
    top: 0;
    width: 33px;
    height: 33px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(217,161,30,.26);
    border-radius: 50%;
    background: #0d0d0d;
    color: var(--gold);
    font-size: 12px;
    font-weight: 800;
}

.guide-step h3 {
    margin: 2px 0 6px;
}

.guide-step p {
    margin: 0;
    font-size: 14px;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 11px;
    margin: 24px 0;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 750;
    transition: .18s ease;
}

.button.primary {
    color: #090909;
    background: var(--gold);
    border: 1px solid var(--gold);
}

.button.primary:hover {
    background: var(--gold-bright);
    border-color: var(--gold-bright);
    transform: translateY(-1px);
}

.button.secondary {
    color: #ddd;
    border: 1px solid var(--border);
    background: #0e0e0e;
}

.button.secondary:hover {
    border-color: var(--border-strong);
    background: #131313;
}

.docs-table-wrap {
    margin: 22px 0 30px;
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 10px;
}

.docs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.docs-table th,
.docs-table td {
    padding: 14px 16px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--border);
}

.docs-table tr:last-child td {
    border-bottom: none;
}

.docs-table th {
    color: #dbdbdb;
    background: #0c0c0c;
    font-size: 11px;
    letter-spacing: .055em;
    text-transform: uppercase;
}

.docs-table td {
    color: #9d9d9d;
}

.key {
    display: inline-block;
    margin: 1px 2px;
    padding: 2px 7px;
    border: 1px solid var(--border-strong);
    border-bottom-color: rgba(255,255,255,.24);
    border-radius: 5px;
    color: #ddd;
    background: #111;
    font-size: 12px;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.check {
    margin-top: 17px;
    padding: 13px 15px;
    border-radius: 8px;
    background: rgba(255,255,255,.025);
    border: 1px solid var(--border);
    color: #999;
    font-size: 13px;
}

.check::before {
    content: "CHECK";
    margin-right: 9px;
    color: var(--gold);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .12em;
}

.rule {
    height: 1px;
    margin: 45px 0;
    background: var(--border);
}

.page-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 65px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
}

.page-nav a {
    min-height: 75px;
    padding: 15px 17px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #0b0b0b;
}

.page-nav a:hover {
    border-color: rgba(217,161,30,.25);
}

.page-nav small {
    display: block;
    margin-bottom: 4px;
    color: #5f5f5f;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .1em;
}

.page-nav strong {
    font-size: 13px;
}

.page-nav .next {
    text-align: right;
}

.page-nav > .next:only-child {
    grid-column: 2;
}

.docs-footer {
    margin-top: 75px;
    padding-top: 25px;
    border-top: 1px solid var(--border);
    color: #595959;
    font-size: 11px;
    display: flex;
    justify-content: space-between;
    gap: 25px;
}

.docs-footer-links {
    display: flex;
    gap: 16px;
}

.docs-footer a:hover {
    color: #aaa;
}

@media (max-width: 1050px) {
    :root {
        --sidebar-width: 258px;
    }

    .docs-content {
        width: min(800px, calc(100% - 54px));
    }

    .path-grid.three {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 780px) {
    .docs-sidebar {
        width: 286px;
        transform: translateX(-100%);
        transition: transform .22s ease;
        box-shadow: 30px 0 70px rgba(0,0,0,.55);
    }

    body.menu-open .docs-sidebar {
        transform: translateX(0);
    }

    .mobile-header {
        display: flex;
    }

    .mobile-overlay {
        position: fixed;
        inset: 0;
        z-index: 45;
        background: rgba(0,0,0,.62);
    }

    body.menu-open .mobile-overlay {
        display: block;
    }

    .docs-main {
        margin-left: 0;
    }

    .docs-content {
        width: calc(100% - 36px);
        padding: 48px 0 75px;
    }

    .path-grid {
        grid-template-columns: 1fr;
    }

    .page-nav {
        grid-template-columns: 1fr;
    }

    .page-nav .next {
        text-align: left;
    }

    .page-nav > .next:only-child {
        grid-column: 1;
    }

    .docs-footer {
        flex-direction: column;
    }
}


/* DILEMMA CAPTURE REQUIREMENTS */

.capture-requirements {
    display: grid;
    gap: 14px;
    margin: 26px 0 30px;
}

.requirement-group {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 12px;
    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.024),
            transparent
        ),
        #0b0b0b;
}

.requirement-heading {
    padding: 17px 19px 15px;
    border-bottom: 1px solid var(--border);
}

.requirement-heading h3 {
    margin: 5px 0 0;
    font-size: 17px;
}

.requirement-label {
    color: var(--gold);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.requirement-list {
    padding: 2px 18px;
}

.requirement-item {
    display: grid;
    grid-template-columns: 26px 1fr;
    gap: 11px;
    padding: 17px 0;
}

.requirement-item + .requirement-item {
    border-top: 1px solid var(--border);
}

.requirement-check {
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    margin-top: 1px;
    border: 1px solid rgba(217,161,30,.3);
    border-radius: 50%;
    color: var(--gold-bright);
    background: rgba(217,161,30,.07);
    font-size: 11px;
    font-weight: 900;
}

.requirement-item strong {
    font-size: 14px;
}

.requirement-item p {
    margin: 5px 0 0;
    color: #8d8d8d;
    font-size: 13px;
    line-height: 1.65;
}

.settings-path {
    color: #c3c3c3;
}

.requirement-subnote {
    margin-top: 11px;
    padding: 11px 13px;
    border-left: 2px solid rgba(217,161,30,.45);
    background: rgba(217,161,30,.045);
    color: #8e8e8e;
    font-size: 12px;
    line-height: 1.6;
}

.inline-doc-link {
    display: inline-flex;
    margin-top: 10px;
    color: var(--gold);
    font-size: 12px;
    font-weight: 700;
}

.inline-doc-link:hover {
    color: var(--gold-bright);
}

.capture-restart-warning {
    margin-bottom: 42px;
}



/* TITAN TWO GUIDE IMAGES */

.titan-guide-section {
    margin-top: 58px;
    scroll-margin-top: 30px;
}

.titan-guide-heading {
    margin-bottom: 18px;
}

.titan-guide-heading h2 {
    margin-top: 7px;
    margin-bottom: 8px;
}

.titan-guide-heading p {
    max-width: 720px;
    margin-top: 0;
}

.guide-shot {
    position: relative;
    margin: 20px 0 22px;
    padding: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #f5f5f5;
}

.guide-shot img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 auto;
    border-radius: 8px;
}

@media (max-width: 780px) {

    .guide-shot {
        padding: 6px;
        border-radius: 10px;
    }

    .guide-shot img {
        border-radius: 6px;
    }

}


/* TITAN 2 COMPACT DIAGRAMS START */

.titan-guide-section .guide-shot {
    width: min(100%, 620px);
    margin: 20px auto 24px;
    padding: 8px;
}

.titan-guide-section .guide-shot img {
    display: block;
    width: 100%;
    max-width: 580px;
    height: auto;
    margin: 0 auto;
}

@media (max-width: 700px) {
    .titan-guide-section .guide-shot {
        width: 100%;
    }

    .titan-guide-section .guide-shot img {
        max-width: 100%;
    }
}

/* TITAN 2 COMPACT DIAGRAMS END */


/* TITAN 2 EXPANDABLE IMAGES START */

.titan-guide-section .guide-shot {
    width: min(100%, 470px);
    margin: 18px auto 22px;
    padding: 7px;
}

.titan-guide-section .guide-shot img {
    display: block;
    width: 100%;
    max-width: 440px;
    height: auto;
    margin: 0 auto;
    border-radius: 7px;
    cursor: zoom-in;
    transition:
        transform .16s ease,
        opacity .16s ease;
}

.titan-guide-section .guide-shot img:hover {
    transform: scale(1.012);
    opacity: .96;
}

.titan-image-hint {
    margin: -10px 0 25px;
    color: #666;
    font-size: 11px;
    text-align: center;
}


/* Expanded image overlay */

.dilemma-image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;

    display: none;
    align-items: center;
    justify-content: center;

    padding: 28px;

    background: rgba(0, 0, 0, .88);
    backdrop-filter: blur(7px);

    cursor: zoom-out;
}

.dilemma-image-lightbox.open {
    display: flex;
}

.dilemma-image-lightbox img {
    display: block;

    width: auto;
    height: auto;

    max-width: 94vw;
    max-height: 92vh;

    object-fit: contain;

    border-radius: 10px;

    box-shadow:
        0 20px 80px rgba(0,0,0,.55);
}

.dilemma-lightbox-close {
    position: fixed;
    top: 18px;
    right: 22px;

    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    border: 1px solid rgba(255,255,255,.15);
    border-radius: 50%;

    background: rgba(15,15,15,.88);
    color: white;

    font-size: 24px;
    line-height: 1;

    cursor: pointer;
}

.dilemma-lightbox-close:hover {
    border-color: rgba(217,161,30,.55);
    color: var(--gold-bright);
}

@media (max-width: 700px) {

    .titan-guide-section .guide-shot {
        width: min(100%, 390px);
    }

    .titan-guide-section .guide-shot img {
        max-width: 370px;
    }

    .dilemma-image-lightbox {
        padding: 14px;
    }

}

/* TITAN 2 EXPANDABLE IMAGES END */


/* TITAN 2 SIDEBAR SUBNAV START */

.docs-subnav {
    margin:
        3px
        0
        9px
        13px;

    padding-left: 11px;

    border-left:
        1px solid
        rgba(255,255,255,.075);
}

.docs-subnav-link {
    display: block;

    margin: 1px 0;
    padding: 6px 9px;

    border-radius: 6px;

    color: #696969;

    font-size: 11px;
    font-weight: 550;
    line-height: 1.4;

    transition:
        color .15s ease,
        background .15s ease;
}

.docs-subnav-link:hover {
    color: #bdbdbd;
    background: rgba(255,255,255,.025);
}

.docs-subnav-link.active {
    color: var(--gold-bright);
    background: rgba(217,161,30,.065);
}

.titan-guide-section {
    scroll-margin-top: 80px;
}

/* TITAN 2 SIDEBAR SUBNAV END */

/* CAPTURE CARD DIAGRAM */

.capture-diagram {
    width: min(100%, 680px);
    margin: 22px auto 26px;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #f5f5f5;
}

.capture-diagram img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 7px;
}

@media (max-width: 700px) {
    .capture-diagram {
        width: 100%;
    }
}


/* SYNCER MEDIA START */

.syncer-diagram {
    width: min(100%, 520px);
    margin: 22px auto 32px;
    padding: 8px;

    border: 1px solid var(--border);
    border-radius: 12px;

    background: #f5f5f5;
}

.syncer-diagram img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 auto;
    border-radius: 7px;
}

.syncer-video {
    width: min(100%, 720px);
    margin: 20px auto 30px;
    padding: 8px;

    border: 1px solid var(--border);
    border-radius: 12px;

    background: #0b0b0b;
}

.syncer-video video {
    display: block;
    width: 100%;
    height: auto;
    max-height: 70vh;

    border-radius: 7px;
    background: #000;
}

@media (max-width: 700px) {

    .syncer-diagram,
    .syncer-video {
        width: 100%;
    }

}

/* SYNCER MEDIA END */


/* ----------------------------------------------------------
   DOCS SEARCH
---------------------------------------------------------- */
.docs-search {
    position: relative;
    margin: -8px 4px 18px;
    z-index: 80;
}

.docs-search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 10px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: #0d0d0d;
    transition: border-color .16s ease, background .16s ease;
}

.docs-search-box:focus-within {
    border-color: rgba(217,161,30,.38);
    background: #101010;
}

.docs-search-box svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: #6f6f6f;
    stroke-width: 1.8;
    stroke-linecap: round;
}

.docs-search-box input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    color: #dedede;
    background: transparent;
    font: inherit;
    font-size: 12px;
}

.docs-search-box input::placeholder { color: #5d5d5d; }

.docs-search-box kbd {
    min-width: 20px;
    padding: 2px 5px;
    border: 1px solid var(--border);
    border-radius: 5px;
    color: #606060;
    background: #0a0a0a;
    font: 10px/1.3 "Segoe UI", sans-serif;
    text-align: center;
}

.docs-search-results {
    position: absolute;
    top: calc(100% + 7px);
    left: 0;
    right: 0;
    max-height: min(430px, 62vh);
    overflow-y: auto;
    padding: 6px;
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    background: #0c0c0c;
    box-shadow: 0 18px 50px rgba(0,0,0,.55);
}

.docs-search-result {
    display: block;
    padding: 9px 10px;
    border-radius: 7px;
}

.docs-search-result:hover,
.docs-search-result:focus-visible {
    outline: 0;
    background: rgba(217,161,30,.09);
}

.docs-search-result strong {
    display: block;
    color: #e9e9e9;
    font-size: 12px;
}

.docs-search-result span {
    display: block;
    margin-top: 3px;
    color: #727272;
    font-size: 10px;
    line-height: 1.45;
}

.docs-search-empty {
    padding: 12px 10px;
    color: #686868;
    font-size: 11px;
}


/* CONTROLLER OUTPUT COLLAPSIBLE TREE START */

.controller-output-tree {
    margin: 0;
}

.controller-output-row {
    display: flex;
    align-items: stretch;
    width: 100%;
}

.controller-output-row > a,
.controller-output-row > .controller-output-label {
    flex: 1 1 auto;
    min-width: 0;
}

.controller-output-label {
    display: flex;
    align-items: center;
    min-height: 36px;
    padding: 8px 12px;
    color: rgba(255,255,255,.52);
    font-size: 13px;
    line-height: 1.25;
}

.controller-output-toggle {
    flex: 0 0 32px;
    width: 32px;
    border: 0;
    background: transparent;
    color: rgba(255,255,255,.45);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.controller-output-toggle:hover {
    color: rgba(255,255,255,.9);
    background: rgba(255,255,255,.035);
}

.controller-output-toggle::before {
    content: "›";
    font-size: 18px;
    line-height: 1;
    transition: transform 150ms ease;
}

.controller-output-toggle[aria-expanded="true"]::before {
    transform: rotate(90deg);
}

.controller-output-children[hidden] {
    display: none;
}

.controller-output-children {
    margin-left: 14px;
    padding-left: 8px;
    border-left: 1px solid rgba(255,255,255,.07);
}

.controller-output-children .docs-subnav-link {
    margin-left: 0;
}

.controller-output-level-2 {
    margin-left: 8px;
}

.controller-output-level-3 {
    margin-left: 8px;
}

/* CONTROLLER OUTPUT COLLAPSIBLE TREE END */

/* GUIDED SETUP / COLLAPSIBLE DOC SECTIONS START */
.docs-nav-standalone {
    margin-top: 6px;
    margin-bottom: 10px;
    font-weight: 700;
}

.setup-flow,
.capture-source-list,
.nested-flow {
    display: grid;
    gap: 12px;
    margin: 22px 0 30px;
}

.nested-flow {
    margin: 14px 0 4px;
}

.flow-choice,
.doc-collapse {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #0b0b0b;
}

.flow-choice > summary,
.doc-collapse > summary {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 74px;
    padding: 15px 52px 15px 18px;
    list-style: none;
    cursor: pointer;
    user-select: none;
    transition: background .16s ease, border-color .16s ease;
}

.flow-choice.compact > summary {
    min-height: 64px;
    padding-top: 12px;
    padding-bottom: 12px;
}

.flow-choice > summary::-webkit-details-marker,
.doc-collapse > summary::-webkit-details-marker {
    display: none;
}

.flow-choice > summary:hover,
.doc-collapse > summary:hover {
    background: rgba(255,255,255,.025);
}

.flow-choice > summary::after,
.doc-collapse > summary::after {
    content: "›";
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #737373;
    font-size: 24px;
    line-height: 1;
    transition: transform .16s ease, color .16s ease;
}

.flow-choice[open] > summary::after,
.doc-collapse[open] > summary::after {
    transform: translateY(-50%) rotate(90deg);
    color: var(--gold);
}

.flow-choice[open] > summary,
.doc-collapse[open] > summary {
    border-bottom: 1px solid var(--border);
}

.flow-summary-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.flow-summary-copy strong {
    color: #e7e7e7;
    font-size: 16px;
}

.flow-summary-copy small {
    color: #777;
    font-size: 12px;
    line-height: 1.45;
}

.flow-step {
    color: var(--gold);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.flow-panel,
.collapse-panel {
    padding: 20px;
}

.flow-panel > :first-child,
.collapse-panel > :first-child {
    margin-top: 0;
}

.flow-panel > :last-child,
.collapse-panel > :last-child {
    margin-bottom: 0;
}

.flow-intro {
    color: #999;
}

.flow-next {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 18px;
    padding: 13px 15px;
    border: 1px solid rgba(217,161,30,.18);
    border-radius: 9px;
    background: rgba(217,161,30,.04);
}

.flow-next span {
    color: #777;
    font-size: 11px;
}

.flow-next a {
    color: var(--gold-bright);
    font-size: 12px;
    font-weight: 750;
}

.window-gotcha ul {
    margin: 10px 0 0 18px;
    padding: 0;
}

.window-gotcha li + li {
    margin-top: 7px;
}

.flat-requirements .requirement-list,
.optional-requirements .requirement-list,
.compact-list {
    padding-top: 2px;
    padding-bottom: 2px;
}

.doc-collapse {
    margin: 18px 0;
}

.collapse-note {
    margin-bottom: 0;
}

.capture-source-list .capture-source {
    margin: 0;
}

@media (max-width: 700px) {
    .flow-next {
        align-items: flex-start;
        flex-direction: column;
    }

    .flow-choice > summary,
    .doc-collapse > summary {
        padding-right: 44px;
    }
}

.requirements-bullets {
    margin: 20px 0 28px;
    padding-left: 22px;
}

.requirements-bullets li {
    padding-left: 3px;
}

.requirements-bullets.compact-bullets {
    margin: 0;
}

/* GUIDED SETUP / COLLAPSIBLE DOC SECTIONS END */


/* FLAT TROUBLESHOOTING LIST */
.troubleshooting-list {
    margin: 20px 0 38px;
}

.troubleshooting-item {
    padding: 20px 0 22px;
    border-bottom: 1px solid var(--border);
}

.troubleshooting-item:first-child {
    padding-top: 4px;
}

.troubleshooting-item h3 {
    margin: 5px 0 7px;
    font-size: 16px;
}

.troubleshooting-item p {
    max-width: 790px;
    margin: 0;
    color: #9a9a9a;
    font-size: 13px;
    line-height: 1.68;
}

.troubleshooting-label {
    display: inline-block;
    color: var(--gold);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.troubleshooting-item .inline-doc-link {
    margin-top: 8px;
}
/* FLAT TROUBLESHOOTING LIST END */


/* MULTI-GAME DOCS + FORTNITE */
.docs-hub-body { min-height:100vh; display:grid; place-items:center; }
.docs-hub { width:min(860px, calc(100% - 40px)); padding:70px 0; }
.hub-brand { display:inline-flex; align-items:center; gap:10px; margin-bottom:54px; color:#bdbdbd; font-size:13px; font-weight:700; letter-spacing:.03em; }
.hub-brand img { width:32px; height:32px; object-fit:contain; }
.game-doc-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; margin-top:26px; }
.game-doc-card { position:relative; min-height:230px; padding:28px; border:1px solid var(--border); border-radius:14px; background:linear-gradient(145deg,rgba(255,255,255,.025),transparent),var(--panel); transition:.18s ease; }
.game-doc-card:hover { transform:translateY(-2px); border-color:rgba(217,161,30,.32); background:var(--panel-hover); }
.game-doc-card .tag { display:inline-block; margin-bottom:8px; color:var(--gold); font-size:10px; font-weight:800; letter-spacing:.12em; text-transform:uppercase; }
.game-doc-card h2 { margin:0 0 8px; font-size:25px; }
.game-doc-card p { margin:0; max-width:300px; color:#7f7f7f; font-size:13px; line-height:1.6; }
.game-doc-card .arrow { position:absolute; right:25px; bottom:22px; color:#5d5d5d; font-size:21px; }
.game-doc-card:hover .arrow { color:var(--gold); }
.game-mark { width:58px; height:58px; display:grid; place-items:center; margin-bottom:26px; color:var(--gold-bright); }
.game-mark-ball svg { width:58px; height:58px; fill:none; stroke:currentColor; stroke-width:2.6; stroke-linecap:round; stroke-linejoin:round; }
.game-mark-fn { border:1px solid rgba(217,161,30,.35); border-radius:12px; background:rgba(217,161,30,.06); font-weight:900; font-size:20px; letter-spacing:.06em; }
.hub-footer { display:flex; gap:10px; margin-top:34px; color:#666; font-size:11px; }
.hub-footer a:hover { color:#aaa; }
.button.disabled { color:#777; border:1px solid var(--border); background:#0c0c0c; cursor:not-allowed; }
.small-note { color:#777; font-size:12px; }
.inline-doc-link { color:var(--gold-bright); font-size:12px; font-weight:700; }
.inline-doc-link:hover { color:#fff0a8; }
.model-list { margin:22px 0; border-top:1px solid var(--border); }
.model-row { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:17px 0; border-bottom:1px solid var(--border); }
.model-row > div { display:flex; flex-direction:column; gap:4px; }
.model-row span { color:#777; font-size:12px; }
.compact-button { min-height:36px; padding:0 14px; }
@media (max-width:700px) { .game-doc-grid { grid-template-columns:1fr; } .game-doc-card { min-height:210px; } .docs-hub { padding:46px 0; } .hub-brand { margin-bottom:36px; } .model-row { align-items:flex-start; flex-direction:column; } }

/* SIMPLE GAME CHOOSER */
.docs-hub-simple {
    width:min(560px, calc(100% - 36px));
    padding:40px 0;
}
.game-chooser-title {
    margin:0 0 28px;
    font-size:clamp(34px, 6vw, 48px);
}
.game-doc-grid-simple {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:18px;
    margin-top:0;
}
.game-doc-card-simple {
    min-height:0;
    aspect-ratio:1 / 1;
    padding:0;
    display:grid;
    place-items:center;
}
.game-doc-card-simple .game-mark {
    width:88px;
    height:88px;
    margin:0;
}
.game-doc-card-simple .game-mark-ball svg {
    width:88px;
    height:88px;
}
.game-doc-card-simple .game-mark-fn {
    border-radius:16px;
    font-size:30px;
}
@media (max-width:700px) {
    .game-doc-grid-simple { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
    .game-doc-card-simple { min-height:0; }
    .game-doc-card-simple .game-mark,
    .game-doc-card-simple .game-mark-ball svg { width:68px; height:68px; }
    .game-doc-card-simple .game-mark-fn { font-size:24px; border-radius:14px; }
}

/* DilemmaAim icon on game chooser: uses the supplied gun SVG */
.game-mark-aim { border:1px solid rgba(217,161,30,.35); border-radius:16px; background:rgba(217,161,30,.06); }
.game-mark-aim img { width:82%; height:82%; object-fit:contain; display:block; }
@media (max-width:700px) { .game-mark-aim { border-radius:14px; } }

/* Basketball selector: supplied SVG displayed in the existing gold palette. */
.game-mark-ball img { width:100%; height:100%; object-fit:contain; display:block; filter:brightness(0) saturate(100%) invert(81%) sepia(40%) saturate(711%) hue-rotate(346deg) brightness(104%) contrast(92%); }

/* DILEMMAAIM_MATCHING_DOCS_ICONS_V1: gold line icons, no gun tile */
.game-doc-card-simple .game-mark-aim {
    border: 0;
    border-radius: 0;
    background: transparent;
}
.game-doc-card-simple .game-mark-aim img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    filter: brightness(0) saturate(100%) invert(81%) sepia(40%) saturate(711%) hue-rotate(346deg) brightness(104%) contrast(92%);
}
