/* ============ RESET & BASE ============ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    min-height: 100vh;
    background: #f6f7fa;
    color: #0a1126;
    font-family: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-size: 15px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #2563eb; text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; }

/* ============ VARIABLES ============ */
:root {
    --ink: #0a1126;
    --mu: #636a7f;
    --ln: #e5e7ed;
    --bg: #f6f7fa;
    --blue: #2563eb;
    --blue2: #3b82f6;
    --bsoft: #eff6ff;
    --card: #ffffff;
    --fd: 'Bricolage Grotesque', system-ui, sans-serif;
    --mono: 'Fira Code', 'SF Mono', Monaco, Consolas, monospace;
    --radius: 14px;
    --shadow-sm: 0 1px 2px rgba(10,17,38,.06);
    --shadow-md: 0 4px 20px -8px rgba(10,17,38,.12);
    --shadow-lg: 0 20px 45px -20px rgba(37,99,235,.25);
}

/* ============ HEADER ============ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,.92);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--ln);
}
.site-header .inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    font-family: var(--fd);
    font-weight: 700;
    font-size: 18px;
    text-decoration: none;
    min-width: 0;
}
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; flex: none; }
.brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(180deg, var(--blue2), var(--blue));
    color: #fff;
    padding: 9px 18px;
    border: 0;
    border-radius: 999px;
    font-weight: 600;
    font-size: 13.5px;
    text-decoration: none;
    white-space: nowrap;
    transition: filter .2s, transform .2s;
    box-shadow: 0 4px 14px -4px rgba(37,99,235,.4);
}
.btn-primary:hover { filter: brightness(1.08); text-decoration: none; transform: translateY(-1px); }

/* ============ HERO ============ */
.hero {
    background:
        radial-gradient(900px 400px at 88% -20%, rgba(37,99,235,.15), transparent 60%),
        linear-gradient(180deg, #ffffff, #f5f7fe);
    padding: 56px 24px 60px;
    text-align: center;
    border-bottom: 1px solid var(--ln);
}
.hero h1 {
    font-family: var(--fd);
    font-size: clamp(24px, 4.5vw, 38px);
    line-height: 1.15;
    margin: 0 0 12px;
    letter-spacing: -.02em;
    background: linear-gradient(90deg, #0d1735, #2563eb);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero p {
    color: var(--mu);
    max-width: 640px;
    margin: 0 auto;
    font-size: clamp(14px, 2vw, 16.5px);
}

/* ============ LAYOUT ============ */
.layout {
    max-width: 1280px;
    margin: 28px auto 80px;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

/* ============ SIDEBAR ============ */
.sidebar {
    position: sticky;
    top: 84px;
    max-height: calc(100vh - 104px);
    overflow-y: auto;
    background: var(--card);
    border-radius: var(--radius);
    padding: 16px 12px;
    box-shadow: var(--shadow-sm), 0 0 0 1px var(--ln);
    scrollbar-width: thin;
}
.sidebar::-webkit-scrollbar { width: 6px; }
.sidebar::-webkit-scrollbar-thumb { background: #ced2de; border-radius: 999px; }
.sidebar .group-label {
    display: block;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--mu);
    padding: 12px 12px 6px;
}
.sidebar .group-label:first-child { padding-top: 4px; }
.sidebar a {
    display: block;
    padding: 8px 12px;
    border-radius: 8px;
    color: #383e50;
    font-weight: 500;
    font-size: 13.5px;
    text-decoration: none;
    transition: background .15s, color .15s;
    line-height: 1.4;
}
.sidebar a:hover { background: var(--bg); color: var(--ink); text-decoration: none; }
.sidebar a.active { background: var(--bsoft); color: var(--blue); font-weight: 600; }

/* ============ CONTENT ============ */
.content {
    background: var(--card);
    border-radius: var(--radius);
    padding: 36px 40px;
    box-shadow: var(--shadow-sm), 0 0 0 1px var(--ln);
    min-width: 0;
}
.content section { margin-bottom: 52px; scroll-margin-top: 90px; }
.content section:last-child { margin-bottom: 0; }
.content h2 {
    font-family: var(--fd);
    font-size: clamp(20px, 2.6vw, 25px);
    line-height: 1.25;
    margin: 0 0 14px;
    letter-spacing: -.01em;
    color: var(--ink);
    padding-bottom: 10px;
    border-bottom: 2px solid var(--bsoft);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.content h3 {
    font-family: var(--fd);
    font-size: 17px;
    margin: 28px 0 10px;
    color: var(--ink);
    letter-spacing: -.005em;
}
.content p { color: #383e50; margin: 0 0 14px; }
.content ul, .content ol { color: #383e50; padding-left: 22px; margin: 0 0 16px; }
.content li { margin-bottom: 5px; }
.content code {
    background: var(--bsoft);
    color: var(--blue);
    padding: 2px 6px;
    border-radius: 5px;
    font-family: var(--mono);
    font-size: .85em;
    font-weight: 500;
    word-break: break-word;
}
.content strong { color: var(--ink); }

/* ============ BADGES ============ */
.badge {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 6px;
    font-family: var(--mono);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .02em;
    vertical-align: middle;
}
.badge.post { background: #dee6fb; color: #1e3a8a; }
.badge.get  { background: #dceffc; color: #155180; }
.pill {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    font-family: var(--mono);
    font-size: 11.5px;
    font-weight: 700;
}
.pill.g { background: #dceffc; color: #155180; }
.pill.y { background: #fef9c3; color: #854d0e; }
.pill.r { background: #fee2e2; color: #991b1b; }

/* ============ CALLOUTS ============ */
.callout {
    padding: 14px 18px;
    border-radius: 12px;
    margin: 16px 0;
    font-size: 14.5px;
    border-left: 4px solid;
    line-height: 1.6;
}
.callout.info { background: #eff6ff; border-color: #3b82f6; color: #193173; }
.callout.warn { background: #fffbeb; border-color: #f59e0b; color: #78350f; }
.callout.bad  { background: #fef2f2; border-color: #ef4444; color: #7f1d1d; }
.callout.ok   { background: #f0f8fd; border-color: #227ec5; color: #143653; }
.callout b:first-child { display: inline; }

/* ============ FLOW STEPS ============ */
.flow {
    counter-reset: step;
    list-style: none;
    padding: 0;
    margin: 16px 0;
}
.flow li {
    counter-increment: step;
    position: relative;
    padding: 8px 0 8px 46px;
    color: #383e50;
    min-height: 36px;
}
.flow li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 6px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(180deg, var(--blue2), var(--blue));
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    display: grid;
    place-items: center;
    box-shadow: 0 4px 10px -4px rgba(37,99,235,.5);
}

/* ============ CODE BLOCKS ============ */
.code-block {
    background: #0d1735;
    border-radius: 12px;
    overflow: hidden;
    margin: 16px 0;
    border: 1px solid #222837;
    box-shadow: var(--shadow-md);
}
.code-block .cb-head {
    background: #13224d;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: #99a0b3;
    font-family: var(--mono);
    font-size: 12px;
    border-bottom: 1px solid #222837;
}
.code-block .cb-head .cb-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}
.code-block .cb-head button {
    background: var(--blue);
    color: #fff;
    border: 0;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    flex: none;
    transition: filter .15s;
}
.code-block .cb-head button:hover { filter: brightness(1.15); }
.code-block pre {
    margin: 0;
    padding: 16px 18px;
    overflow-x: auto;
    color: #e4e6ee;
    font-family: var(--mono);
    font-size: 13px;
    line-height: 1.6;
    -webkit-overflow-scrolling: touch;
    tab-size: 2;
}
.code-block pre::-webkit-scrollbar { height: 8px; }
.code-block pre::-webkit-scrollbar-thumb { background: #383e50; border-radius: 999px; }
.code-block pre::-webkit-scrollbar-track { background: #0d1735; }

/* ============ TABS ============ */
.tabs { margin: 16px 0; }
.tab-bar {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.tab-bar::-webkit-scrollbar { display: none; }
.tab-bar button {
    flex: none;
    background: var(--bg);
    border: 1px solid var(--ln);
    padding: 7px 14px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    color: var(--mu);
    transition: all .15s;
    white-space: nowrap;
}
.tab-bar button:hover { color: var(--ink); border-color: #ced2de; }
.tab-bar button.active {
    background: var(--blue);
    color: #fff;
    border-color: var(--blue);
    box-shadow: 0 4px 12px -4px rgba(37,99,235,.5);
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ============ TABLES ============ */
.table-wrap {
    overflow-x: auto;
    margin: 16px 0;
    border-radius: 10px;
    border: 1px solid var(--ln);
    -webkit-overflow-scrolling: touch;
}
table.data {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    min-width: 480px;
}
table.data th, table.data td {
    text-align: left;
    padding: 11px 14px;
    border-bottom: 1px solid var(--ln);
    vertical-align: top;
}
table.data th {
    background: var(--bsoft);
    color: var(--blue);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .04em;
    white-space: nowrap;
}
table.data tr:last-child td { border-bottom: 0; }
table.data td code { font-size: 12.5px; }

/* ============ TOAST ============ */
#toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    left: 24px;
    max-width: 340px;
    margin-left: auto;
    background: #0d1735;
    color: #fff;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 13.5px;
    text-align: center;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .25s, transform .25s;
    pointer-events: none;
    z-index: 999;
    box-shadow: 0 12px 30px -8px rgba(0,0,0,.35);
}
#toast.show { opacity: 1; transform: translateY(0); }

/* ============ MOBILE MENU BUTTON ============ */
.menu-toggle {
    display: none;
    background: var(--bg);
    border: 1px solid var(--ln);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    cursor: pointer;
    padding: 0;
    place-items: center;
    color: var(--ink);
    flex: none;
}
.menu-toggle svg { width: 20px; height: 20px; }

/* ============ RESPONSIVE ============ */
@media (max-width: 960px) {
    .layout {
        grid-template-columns: minmax(0, 1fr);
        padding: 0 16px;
        margin-top: 20px;
        gap: 16px;
    }
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 280px;
        max-width: 85vw;
        max-height: none;
        border-radius: 0 14px 14px 0;
        padding: 20px 12px;
        z-index: 200;
        transform: translateX(-105%);
        transition: transform .25s ease;
        box-shadow: 8px 0 30px -10px rgba(10,17,38,.2);
    }
    .sidebar.open { transform: translateX(0); }
    .menu-toggle { display: grid; }
    .content { padding: 26px 22px; }
}
@media (max-width: 600px) {
    .hero { padding: 40px 18px 44px; }
    .site-header .inner { padding: 12px 16px; }
    .brand { font-size: 16px; }
    .brand span { max-width: 180px; }
    .btn-primary { padding: 8px 14px; font-size: 12.5px; }
    .layout { padding: 0 12px; margin-top: 16px; }
    .content { padding: 22px 16px; border-radius: 12px; }
    .content section { margin-bottom: 40px; }
    .content h2 { font-size: 19px; }
    .content h3 { font-size: 16px; }
    .code-block pre { font-size: 12px; padding: 14px; }
    .callout { padding: 12px 14px; font-size: 13.5px; }
    .flow li { padding-left: 40px; }
    .flow li::before { width: 26px; height: 26px; font-size: 12px; }
    #toast { right: 12px; left: 12px; bottom: 12px; }
}
@media (max-width: 400px) {
    .brand span { max-width: 130px; }
    .content { padding: 18px 12px; }
    table.data th, table.data td { padding: 9px 10px; font-size: 13px; }
}

/* Backdrop for mobile sidebar */
.backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10,17,38,.4);
    z-index: 150;
    opacity: 0;
    transition: opacity .25s;
}
.backdrop.show { display: block; opacity: 1; }

/* ================= PREMIUM OVERRIDES ================= */
:root{--blue:#2563eb;--blue2:#567ff0;--bsoft:#eff6ff;--v:#3b82f6;--radius:20px}
body{background:#f5f7fe}
#prog{position:fixed;left:0;top:0;height:3px;width:0;z-index:300;background:linear-gradient(90deg,#2563eb,#3b82f6,#3b82f6);box-shadow:0 0 12px rgba(20,42,184,.7);transition:width .1s linear}

/* header */
.site-header{background:rgba(255,255,255,.78);border-bottom:1px solid rgba(229,232,241,.9);box-shadow:0 10px 30px -24px rgba(19,49,129,.5)}
.brand img{width:38px;height:38px;border-radius:11px;box-shadow:0 8px 16px -6px rgba(37,99,235,.55)}
.brand span{font-size:19px;letter-spacing:-.4px}
.btn-primary{padding:10px 20px;border-radius:13px;background:linear-gradient(135deg,#3b82f6,#2563eb 50%,#3b82f6);box-shadow:0 10px 20px -8px rgba(37,99,235,.7);transition:transform .25s,box-shadow .25s}
.btn-primary:hover{transform:translateY(-2px);box-shadow:0 14px 26px -8px rgba(37,99,235,.75);filter:none}
.menu-toggle{border-radius:13px;background:#fff}

/* hero */
.hero{position:relative;overflow:hidden;padding:76px 24px 84px;text-align:center;color:#fff;background:linear-gradient(135deg,#0d1735,#182e68 55%,#173571)}
.hero::before{content:"";position:absolute;inset:0;background:radial-gradient(640px 320px at 85% -10%,rgba(37,99,235,.65),transparent 60%),radial-gradient(520px 320px at 5% 115%,rgba(20,42,184,.38),transparent 60%),radial-gradient(rgba(255,255,255,.08) 1px,transparent 1.4px) 0 0/24px 24px}
.hero>*{position:relative;z-index:1}
.hero .hk{display:inline-flex;align-items:center;gap:9px;margin-bottom:22px;padding:7px 16px;border-radius:99px;font-size:12.5px;font-weight:700;letter-spacing:.04em;color:#cdd9f9;background:rgba(255,255,255,.09);box-shadow:0 0 0 1px rgba(255,255,255,.2);animation:dUp .6s backwards}
.hero .hk i{position:relative;width:8px;height:8px;border-radius:50%;background:#60a5fa}.hero .hk i::after{content:"";position:absolute;inset:0;border-radius:50%;background:#60a5fa;animation:dPing 1.6s ease-out infinite}
@keyframes dPing{to{transform:scale(3.2);opacity:0}}@keyframes dUp{from{opacity:0;transform:translateY(18px)}}
.hero h1{margin:0 auto;max-width:820px;color:#fff;background:none;-webkit-background-clip:border-box;background-clip:border-box;-webkit-text-fill-color:#fff;font-size:clamp(32px,5vw,56px);line-height:1.06;letter-spacing:-.04em;animation:dUp .6s .08s backwards}
.hero h1 em{font-style:normal;-webkit-text-fill-color:transparent;background:linear-gradient(100deg,#93c5fd,#99a5f6 50%,#5e71ea);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}
.hero p{margin:20px auto 0;max-width:640px;font-size:17px;line-height:1.7;color:#aabcee;animation:dUp .6s .16s backwards}
.hero .hb{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;margin-top:32px;animation:dUp .6s .24s backwards}
.hero .hb a{display:inline-flex;align-items:center;gap:8px;padding:13px 24px;border-radius:14px;font-weight:700;font-size:14.5px;text-decoration:none;transition:transform .25s,box-shadow .25s,background .25s}
.hero .hb a:hover{transform:translateY(-3px);text-decoration:none}
.hero .hb .p{color:#0d1735;background:#fff;box-shadow:0 16px 30px -10px rgba(0,0,0,.5)}
.hero .hb .g{color:#fff;background:rgba(255,255,255,.1);box-shadow:0 0 0 1px rgba(255,255,255,.28)}.hero .hb .g:hover{background:rgba(255,255,255,.18)}
.hero .hu{display:inline-flex;align-items:center;gap:10px;margin-top:26px;padding:9px 16px;border-radius:14px;font:500 13px var(--mono);color:#cdd9f9;background:rgba(8,14,32,.45);box-shadow:0 0 0 1px rgba(255,255,255,.14);animation:dUp .6s .32s backwards;max-width:92vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hero .hu b{color:#93c5fd;font-weight:600}

/* layout + sidebar */
.layout{margin-top:-34px;position:relative;z-index:2;gap:32px}
.sidebar{top:90px;max-height:calc(100vh - 112px);padding:18px 14px;border-radius:22px;box-shadow:0 0 0 1px var(--ln),0 24px 50px -30px rgba(19,49,129,.45)}
.sidebar .sq{position:sticky;top:-18px;z-index:2;margin:-18px -14px 10px;padding:18px 14px 10px;background:linear-gradient(#fff 80%,rgba(255,255,255,0))}
.sidebar .sq input{width:100%;padding:11px 14px 11px 38px;border:0;border-radius:13px;font:500 13.5px inherit;font-family:inherit;color:var(--ink);background:#f5f7fe url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235d6985' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M21 21l-4.3-4.3'/%3E%3C/svg%3E") 12px 50%/17px no-repeat;box-shadow:0 0 0 1px var(--ln) inset;outline:0;transition:box-shadow .2s,background-color .2s}
.sidebar .sq input:focus{background-color:#fff;box-shadow:0 0 0 2px #93c5fd}
.sidebar .group-label{margin-top:8px;color:#919ab1;font-size:11px;letter-spacing:.1em}
.sidebar a{position:relative;margin:2px 0;padding:9px 14px;border-radius:12px;font-weight:600;color:#5e6882;transition:background .2s,color .2s,transform .2s}
.sidebar a:hover{background:#f5f7fe;color:var(--blue);transform:translateX(3px)}
.sidebar a.active{color:var(--blue);background:linear-gradient(90deg,#eaeffd,#f1f5fd)}
.sidebar a.active::before{content:"";position:absolute;left:0;top:9px;bottom:9px;width:4px;border-radius:0 4px 4px 0;background:linear-gradient(#2563eb,#3b82f6)}
.sidebar a.hide,.sidebar .group-label.hide{display:none}

/* content */
.content{padding:40px 44px 44px;border-radius:26px;background:#fff;box-shadow:0 0 0 1px var(--ln),0 30px 60px -38px rgba(19,49,129,.4)}
.content section{margin-bottom:68px}
.content h2{position:relative;padding-left:20px;font-size:30px;letter-spacing:-.04em}
.content h2::before{content:"";position:absolute;left:0;top:.18em;bottom:.18em;width:6px;border-radius:6px;background:linear-gradient(#2563eb,#3b82f6 60%,#3b82f6)}
.content h3{margin-top:30px;letter-spacing:-.02em}
.content code{border-radius:8px;background:#eff6ff;color:#213d89;box-shadow:0 0 0 1px #e2e9fc inset}
.content a{font-weight:600}
.content section{animation:dSec .7s backwards}@keyframes dSec{from{opacity:0;transform:translateY(24px)}}
@supports (animation-timeline:view()){.content section{animation:dSec linear both;animation-timeline:view();animation-range:entry 0% entry 35%}}

/* callouts */
.callout{position:relative;padding:18px 20px 18px 56px;border:0;border-radius:18px;font-size:14.5px}
.callout::before{content:"i";position:absolute;left:18px;top:17px;display:grid;place-items:center;width:25px;height:25px;border-radius:9px;color:#fff;font:800 14px var(--fd)}
.callout.info{background:linear-gradient(135deg,#f0f3fd,#f2f5fd);box-shadow:0 0 0 1px #d5dffa}.callout.info::before{background:linear-gradient(135deg,#60a5fa,#2563eb)}
.callout.warn{background:#fffaeb;box-shadow:0 0 0 1px #fde7a8}.callout.warn::before{content:"!";background:linear-gradient(135deg,#fbbf24,#f59e0b)}
.callout.bad{background:#fff1f2;box-shadow:0 0 0 1px #fecdd3}.callout.bad::before{content:"!";background:linear-gradient(135deg,#7687f3,#ef4444)}
.callout.ok{background:#eff6ff;box-shadow:0 0 0 1px #b7c6ea}.callout.ok::before{content:"✓";background:linear-gradient(135deg,#60a5fa,#2563eb)}

/* flow steps */
.flow li{border-radius:16px;transition:transform .25s,box-shadow .25s}
.flow li:hover{transform:translateX(4px)}
.flow li::before{background:linear-gradient(135deg,#2563eb,#3b82f6)!important;color:#fff!important;box-shadow:0 8px 14px -6px rgba(37,99,235,.7)}

/* badges */
.badge{border-radius:9px;letter-spacing:.05em;font-weight:800}
.badge.post{color:#fff;background:linear-gradient(135deg,#60a5fa,#2563eb);box-shadow:0 6px 12px -6px rgba(37,99,235,.7)}
.badge.get{color:#fff;background:linear-gradient(135deg,#60a5fa,#2563eb);box-shadow:0 6px 12px -6px rgba(37,99,235,.7)}
.pill{border-radius:99px}

/* code blocks */
.code-block{border:0;border-radius:18px;background:#0b152f;box-shadow:0 0 0 1px rgba(20,42,184,.25),0 26px 46px -26px rgba(13,23,53,.85)}
.code-block .cb-head{padding:12px 16px;background:linear-gradient(90deg,#142655,#1a2c52);border-bottom:1px solid rgba(255,255,255,.07)}
.code-block .cb-head .cb-title{position:relative;padding-left:62px;color:#cdd9f9}
.code-block .cb-head .cb-title::before{content:"";position:absolute;left:0;top:50%;width:11px;height:11px;margin-top:-5.5px;border-radius:50%;background:#ff5f57;box-shadow:19px 0 0 #febc2e,38px 0 0 #28a5c8}
.code-block .cb-head button{border:0;border-radius:10px;padding:6px 14px;font-weight:700;color:#fff;background:linear-gradient(135deg,#3b82f6,#3b82f6);transition:transform .2s,filter .2s}
.code-block .cb-head button:hover{transform:translateY(-1px);filter:brightness(1.12)}
.code-block pre{padding:20px 22px}
.code-block pre::-webkit-scrollbar-track{background:transparent}

/* tabs */
.tab-bar{gap:6px;padding:5px;border:0;border-radius:15px;background:#f1f3fb;width:max-content;max-width:100%;box-shadow:0 0 0 1px var(--ln) inset}
.tab-bar button{border:0!important;border-radius:11px;background:transparent;font-weight:700;color:#727b92;transition:background .2s,color .2s,box-shadow .2s}
.tab-bar button:hover{color:var(--blue);background:rgba(255,255,255,.7)}
.tab-bar button.active{color:#fff!important;background:linear-gradient(135deg,#2563eb,#3b82f6)!important;box-shadow:0 8px 14px -6px rgba(4,29,120,.7)}
.tab-panel.active{animation:dUp .35s}

/* tables */
.table-wrap{border:0;border-radius:18px;box-shadow:0 0 0 1px var(--ln),0 16px 30px -24px rgba(19,49,129,.4)}
.table-wrap table th{background:linear-gradient(180deg,#f5f7fe,#eff6ff);font-size:11.5px;letter-spacing:.08em;text-transform:uppercase;color:#5e6882}
.table-wrap table tr:nth-child(even) td{background:#fbfcfe}
.table-wrap table tr:hover td{background:#f2f5fe}

/* extras */
#toTop{position:fixed;right:22px;bottom:24px;z-index:150;display:grid;place-items:center;width:46px;height:46px;border:0;border-radius:15px;color:#fff;cursor:pointer;background:linear-gradient(135deg,#3b82f6,#3b82f6);box-shadow:0 14px 26px -8px rgba(4,29,120,.75);opacity:0;transform:translateY(16px);pointer-events:none;transition:opacity .3s,transform .3s}
#toTop.on{opacity:1;transform:none;pointer-events:auto}#toTop svg{width:20px;height:20px}
#toast{border-radius:14px;background:#0d1735}

@media(max-width:960px){.layout{margin-top:-24px}.content{padding:28px 22px}.hero{padding:56px 20px 64px}.sidebar .sq{position:static;margin:0 0 10px;padding:0;background:none}}
@media(max-width:600px){.content{padding:24px 16px;border-radius:22px}.content h2{font-size:25px}.hero p{font-size:15.5px}.hero .hb a{flex:1 1 100%;justify-content:center}.callout{padding-left:52px}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

/* ================= DOCS POLISH v2 (white + blue) ================= */
.hero .hst{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;margin-top:26px}
.hero .hst div{min-width:112px;padding:12px 16px;border-radius:16px;background:rgba(255,255,255,.08);box-shadow:0 0 0 1px rgba(255,255,255,.16);backdrop-filter:blur(6px)}
.hero .hst b{display:block;font:800 22px var(--fd);color:#fff}.hero .hst span{font-size:12px;color:#aabcee}
.qs-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:14px;margin:18px 0}
.qs-card{position:relative;padding:18px;border-radius:18px;background:linear-gradient(160deg,#f6f8fe,#fff);box-shadow:0 0 0 1px #e2e9fc,0 18px 30px -24px rgba(37,99,235,.5);transition:transform .25s,box-shadow .25s}
.qs-card:hover{transform:translateY(-4px);box-shadow:0 0 0 1px #bfcef9,0 24px 36px -22px rgba(37,99,235,.6)}
.qs-card span{display:grid;place-items:center;width:30px;height:30px;border-radius:10px;color:#fff;font-weight:800;background:linear-gradient(135deg,#2563eb,#60a5fa);margin-bottom:10px}
.qs-card b{display:block;font-family:var(--fd);font-size:16px}.qs-card p{margin:4px 0 0;font-size:13.5px}
.sidebar a.active{background:linear-gradient(90deg,#eaeffd,#f6f8fe)}
.sidebar a.active::before,.content h2::before{background:linear-gradient(#2563eb,#60a5fa)}
#prog{background:linear-gradient(90deg,#2563eb,#60a5fa)}
.content h2{border-bottom:0}
.content section:target h2{animation:dFlash 1.6s}@keyframes dFlash{0%{background:#ecf1fd}100%{background:transparent}}
.code-block .cb-head button.ok{background:#1666a3}

/* ===== dark theme (auto-generated from the rules above) ===== */
html[data-theme="dark"]{color-scheme:dark;--ink:#e0e7fc;--mu:#abb5ce;--ln:#29324b;--bg:#0a1229;--card:#141e3a;--bsoft:#132044;--blue:#7294f3;--blue2:#98b1f6;--shadow-sm:0 1px 2px rgba(0,0,0,.4);--shadow-md:0 4px 20px -8px rgba(0,0,0,.5);--shadow-lg:0 20px 45px -20px rgba(0,0,0,.6)}
html[data-theme="dark"] body{background:var(--bg);color:var(--ink)}
html[data-theme="dark"] body{background:#1a1e2a;color:#d5ddf3}
html[data-theme="dark"] a{color:#7c9cf3}
html[data-theme="dark"] .site-header{background:rgba(28,33,46,0.92);border-bottom:1px solid var(--ln)}
html[data-theme="dark"] .btn-primary{background:linear-gradient(180deg, var(--blue2), var(--blue));color:#fff;border:0;box-shadow:0 4px 14px -4px rgba(37,99,235,.4)}
html[data-theme="dark"] .hero{background:radial-gradient(900px 400px at 88% -20%, rgba(37,99,235,.15), transparent 60%),
        linear-gradient(180deg, #1c212e, #0c1429);border-bottom:1px solid var(--ln)}
html[data-theme="dark"] .hero h1{background:linear-gradient(90deg, #0d1735, #2563eb);-webkit-background-clip: text;background-clip: text;-webkit-text-fill-color: transparent}
html[data-theme="dark"] .sidebar::-webkit-scrollbar-thumb{background:#3f475c}
html[data-theme="dark"] .sidebar a{color:#c5cad6}
html[data-theme="dark"] .content h2{border-bottom:2px solid var(--bsoft)}
html[data-theme="dark"] .content p{color:#c5cad6}
html[data-theme="dark"] .content ul,html[data-theme="dark"] .content ol{color:#c5cad6}
html[data-theme="dark"] .badge.post{background:#192a57;color:#5278e2}
html[data-theme="dark"] .badge.get{background:#1a3f58;color:#4ea1e2}
html[data-theme="dark"] .pill.g{background:#1a3f58;color:#4ea1e2}
html[data-theme="dark"] .pill.y{background:#6b641f;color:#eb9c43}
html[data-theme="dark"] .pill.r{background:#501717;color:#e35f5f}
html[data-theme="dark"] .callout{border-left:4px solid}
html[data-theme="dark"] .callout.info{background:#111c3c;border-color:#3b82f6;color:#3660d3}
html[data-theme="dark"] .callout.warn{background:#463c14;border-color:#f59e0b;color:#e9c6b3}
html[data-theme="dark"] .callout.bad{background:#340f0f;border-color:#ef4444;color:#d95a5a}
html[data-theme="dark"] .callout.ok{background:#132f40;border-color:#227ec5;color:#bfd8ed}
html[data-theme="dark"] .flow li{color:#c5cad6}
html[data-theme="dark"] .flow li::before{background:linear-gradient(180deg, var(--blue2), var(--blue));color:#fff;box-shadow:0 4px 10px -4px rgba(37,99,235,.5)}
html[data-theme="dark"] .code-block{background:#0d1735;border:1px solid #222837}
html[data-theme="dark"] .code-block .cb-head{background:#13224d;color:#99a0b3;border-bottom:1px solid #222837}
html[data-theme="dark"] .code-block .cb-head button{color:#fff;border:0}
html[data-theme="dark"] .code-block pre{color:#e4e6ee}
html[data-theme="dark"] .code-block pre::-webkit-scrollbar-thumb{background:#383e50}
html[data-theme="dark"] .code-block pre::-webkit-scrollbar-track{background:#0d1735}
html[data-theme="dark"] .tab-bar button{border:1px solid var(--ln)}
html[data-theme="dark"] .tab-bar button:hover{border-color:#48516a}
html[data-theme="dark"] .tab-bar button.active{color:#fff;box-shadow:0 4px 12px -4px rgba(37,99,235,.5)}
html[data-theme="dark"] .table-wrap{border:1px solid var(--ln)}
html[data-theme="dark"] table.data th,html[data-theme="dark"] table.data td{border-bottom:1px solid var(--ln)}
html[data-theme="dark"] table.data tr:last-child td{border-bottom:0}
html[data-theme="dark"] #toast{background:#0d1735;color:#fff;box-shadow:0 12px 30px -8px rgba(0,0,0,.35)}
html[data-theme="dark"] .menu-toggle{border:1px solid var(--ln)}
@media (max-width: 960px){html[data-theme="dark"] .sidebar{box-shadow:8px 0 30px -10px rgba(10,17,38,.2)}}
html[data-theme="dark"] .backdrop{background:rgba(10,17,38,.4)}
html[data-theme="dark"] body{background:#0c1429}
html[data-theme="dark"] #prog{background:linear-gradient(90deg,#2563eb,#3b82f6,#3b82f6);box-shadow:0 0 12px rgba(20,42,184,.7)}
html[data-theme="dark"] .site-header{background:rgba(28,33,46,0.78);border-bottom:1px solid rgba(229,232,241,.9);box-shadow:0 10px 30px -24px rgba(19,49,129,.5)}
html[data-theme="dark"] .brand img{box-shadow:0 8px 16px -6px rgba(37,99,235,.55)}
html[data-theme="dark"] .btn-primary{background:linear-gradient(135deg,#3b82f6,#2563eb 50%,#3b82f6);box-shadow:0 10px 20px -8px rgba(37,99,235,.7)}
html[data-theme="dark"] .btn-primary:hover{box-shadow:0 14px 26px -8px rgba(37,99,235,.75)}
html[data-theme="dark"] .menu-toggle{background:#1c212e}
html[data-theme="dark"] .hero{color:#fff;background:linear-gradient(135deg,#0d1735,#182e68 55%,#173571)}
html[data-theme="dark"] .hero::before{background:radial-gradient(640px 320px at 85% -10%,rgba(37,99,235,.65),transparent 60%),radial-gradient(520px 320px at 5% 115%,rgba(20,42,184,.38),transparent 60%),radial-gradient(rgba(255,255,255,.08) 1px,transparent 1.4px) 0 0/24px 24px}
html[data-theme="dark"] .hero .hk{color:#cdd9f9;background:rgba(255,255,255,.09);box-shadow:0 0 0 1px rgba(255,255,255,.2)}
html[data-theme="dark"] .hero .hk i{background:#60a5fa}
html[data-theme="dark"] .hero .hk i::after{background:#60a5fa}
html[data-theme="dark"] .hero h1{color:#fff;background:none;-webkit-background-clip:border-box;background-clip:border-box;-webkit-text-fill-color:#fff}
html[data-theme="dark"] .hero h1 em{background:linear-gradient(100deg,#93c5fd,#213c72 50%,#1f296b);-webkit-text-fill-color:transparent;-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}
html[data-theme="dark"] .hero p{color:#aabcee}
html[data-theme="dark"] .hero .hb .p{color:#ced8f1;background:#1c212e;box-shadow:0 16px 30px -10px rgba(0,0,0,.5)}
html[data-theme="dark"] .hero .hb .g{color:#fff;background:rgba(255,255,255,.1);box-shadow:0 0 0 1px rgba(255,255,255,.28)}
html[data-theme="dark"] .hero .hb .g:hover{background:rgba(255,255,255,.18)}
html[data-theme="dark"] .hero .hu{color:#cdd9f9;background:rgba(8,14,32,.45);box-shadow:0 0 0 1px rgba(255,255,255,.14)}
html[data-theme="dark"] .hero .hu b{color:#93c5fd}
html[data-theme="dark"] .sidebar{box-shadow:0 0 0 1px var(--ln),0 24px 50px -30px rgba(19,49,129,.45)}
html[data-theme="dark"] .sidebar .sq{background:linear-gradient(#1c212e 80%,rgba(255,255,255,0))}
html[data-theme="dark"] .sidebar .sq input{border:0;background:#0c1429 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235d6985' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M21 21l-4.3-4.3'/%3E%3C/svg%3E") 12px 50%/17px no-repeat;box-shadow:0 0 0 1px var(--ln) inset;outline:0}
html[data-theme="dark"] .sidebar .sq input:focus{background-color:#1c212e;box-shadow:0 0 0 2px #93c5fd}
html[data-theme="dark"] .sidebar .group-label{color:#919ab1}
html[data-theme="dark"] .sidebar a{color:#b7bdcc}
html[data-theme="dark"] .sidebar a:hover{background:#0c1429}
html[data-theme="dark"] .sidebar a.active{background:linear-gradient(90deg,#152349,#111f3c)}
html[data-theme="dark"] .sidebar a.active::before{background:linear-gradient(#2563eb,#3b82f6)}
html[data-theme="dark"] .content{background:#1c212e;box-shadow:0 0 0 1px var(--ln),0 30px 60px -38px rgba(19,49,129,.4)}
html[data-theme="dark"] .content h2::before{background:linear-gradient(#2563eb,#3b82f6 60%,#3b82f6)}
html[data-theme="dark"] .content code{background:#131f40;color:#8ca3e3;box-shadow:0 0 0 1px #1d3064 inset}
html[data-theme="dark"] .callout{border:0}
html[data-theme="dark"] .callout::before{color:#fff}
html[data-theme="dark"] .callout.info{background:linear-gradient(135deg,#131f40,#101d38);box-shadow:0 0 0 1px #213773}
html[data-theme="dark"] .callout.info::before{background:linear-gradient(135deg,#60a5fa,#2563eb)}
html[data-theme="dark"] .callout.warn{background:#463914;box-shadow:0 0 0 1px #8e7429}
html[data-theme="dark"] .callout.warn::before{background:linear-gradient(135deg,#fbbf24,#f59e0b)}
html[data-theme="dark"] .callout.bad{background:#340f12;box-shadow:0 0 0 1px #77222d}
html[data-theme="dark"] .callout.bad::before{background:linear-gradient(135deg,#7687f3,#ef4444)}
html[data-theme="dark"] .callout.ok{background:#142947;box-shadow:0 0 0 1px #364c84}
html[data-theme="dark"] .callout.ok::before{background:linear-gradient(135deg,#60a5fa,#2563eb)}
html[data-theme="dark"] .flow li::before{background:linear-gradient(135deg,#2563eb,#3b82f6)!important;color:#fff!important;box-shadow:0 8px 14px -6px rgba(37,99,235,.7)}
html[data-theme="dark"] .badge.post{color:#fff;background:linear-gradient(135deg,#60a5fa,#2563eb);box-shadow:0 6px 12px -6px rgba(37,99,235,.7)}
html[data-theme="dark"] .badge.get{color:#fff;background:linear-gradient(135deg,#60a5fa,#2563eb);box-shadow:0 6px 12px -6px rgba(37,99,235,.7)}
html[data-theme="dark"] .code-block{border:0;background:#0b152f;box-shadow:0 0 0 1px rgba(20,42,184,.25),0 26px 46px -26px rgba(13,23,53,.85)}
html[data-theme="dark"] .code-block .cb-head{background:linear-gradient(90deg,#142655,#1a2c52);border-bottom:1px solid rgba(255,255,255,.07)}
html[data-theme="dark"] .code-block .cb-head .cb-title{color:#cdd9f9}
html[data-theme="dark"] .code-block .cb-head .cb-title::before{background:#ff5f57;box-shadow:19px 0 0 #febc2e,38px 0 0 #28a5c8}
html[data-theme="dark"] .code-block .cb-head button{border:0;color:#fff;background:linear-gradient(135deg,#3b82f6,#3b82f6)}
html[data-theme="dark"] .code-block pre::-webkit-scrollbar-track{background:transparent}
html[data-theme="dark"] .tab-bar{border:0;background:#1f2538;box-shadow:0 0 0 1px var(--ln) inset}
html[data-theme="dark"] .tab-bar button{border:0!important;background:transparent;color:#aeb3c1}
html[data-theme="dark"] .tab-bar button:hover{background:rgba(28,33,46,0.7)}
html[data-theme="dark"] .tab-bar button.active{color:#fff!important;background:linear-gradient(135deg,#2563eb,#3b82f6)!important;box-shadow:0 8px 14px -6px rgba(4,29,120,.7)}
html[data-theme="dark"] .table-wrap{border:0;box-shadow:0 0 0 1px var(--ln),0 16px 30px -24px rgba(19,49,129,.4)}
html[data-theme="dark"] .table-wrap table th{background:linear-gradient(180deg,#0c1429,#131f40);color:#b7bdcc}
html[data-theme="dark"] .table-wrap table tr:nth-child(even) td{background:#0b1226}
html[data-theme="dark"] .table-wrap table tr:hover td{background:#0f1934}
html[data-theme="dark"] #toTop{border:0;color:#fff;background:linear-gradient(135deg,#3b82f6,#3b82f6);box-shadow:0 14px 26px -8px rgba(4,29,120,.75)}
html[data-theme="dark"] #toast{background:#0d1735}
@media(max-width:960px){html[data-theme="dark"] .sidebar .sq{background:none}}
html[data-theme="dark"] .hero .hst div{background:rgba(255,255,255,.08);box-shadow:0 0 0 1px rgba(255,255,255,.16)}
html[data-theme="dark"] .hero .hst b{color:#fff}
html[data-theme="dark"] .hero .hst span{color:#aabcee}
html[data-theme="dark"] .qs-card{background:linear-gradient(160deg,#0c1429,#1c212e);box-shadow:0 0 0 1px #1d3064,0 18px 30px -24px rgba(37,99,235,.5)}
html[data-theme="dark"] .qs-card:hover{box-shadow:0 0 0 1px #20356c,0 24px 36px -22px rgba(37,99,235,.6)}
html[data-theme="dark"] .qs-card span{color:#fff;background:linear-gradient(135deg,#2563eb,#60a5fa)}
html[data-theme="dark"] .sidebar a.active{background:linear-gradient(90deg,#152349,#0c1429)}
html[data-theme="dark"] .sidebar a.active::before,html[data-theme="dark"] .content h2::before{background:linear-gradient(#2563eb,#60a5fa)}
html[data-theme="dark"] #prog{background:linear-gradient(90deg,#2563eb,#60a5fa)}
html[data-theme="dark"] .content h2{border-bottom:0}
html[data-theme="dark"] .code-block .cb-head button.ok{background:#1666a3}
html[data-theme="dark"] .hero h1{background:none!important;-webkit-text-fill-color:#fff!important}
html[data-theme="dark"] .hero h1 em{-webkit-text-fill-color:transparent!important;background:linear-gradient(100deg,#93c5fd,#99a5f6 50%,#5e71ea)!important;-webkit-background-clip:text!important;background-clip:text!important}

/* ===== white + emerald override (light mode): docs hero ===== */
html:not([data-theme="dark"]) .hero{color:#0f141f;background:linear-gradient(160deg,#eff6ff,#fff 70%);border-bottom:1px solid #dce2eb}
html:not([data-theme="dark"]) .hero::before{background:radial-gradient(640px 320px at 85% -10%,rgba(16,61,185,.18),transparent 60%),radial-gradient(520px 320px at 5% 115%,rgba(20,42,184,.12),transparent 60%),radial-gradient(rgba(37,99,235,.14) 1px,transparent 1.4px) 0 0/24px 24px}
html:not([data-theme="dark"]) .hero .hk{color:#1d4ed8;background:#fff;box-shadow:0 0 0 1px #a7c5f3}
html:not([data-theme="dark"]) .hero h1{color:#0f141f;-webkit-text-fill-color:#0f141f}
html:not([data-theme="dark"]) .hero h1 em{background:linear-gradient(100deg,#2563eb,#3b82f6 50%,#3b82f6);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}
html:not([data-theme="dark"]) .hero p{color:#4f5766}
html:not([data-theme="dark"]) .hero .btn-ghost,html:not([data-theme="dark"]) .hero a.ghost{color:#0f141f;background:#fff;box-shadow:0 0 0 1px #dce2eb}
html:not([data-theme="dark"]) body{background:#fff}

/* ---- developer card + AI prompt card ---- */
.hxdev{max-width:1240px;margin:-46px auto 0;padding:0 24px;position:relative;z-index:3;display:grid;gap:18px}
.hxd-card{padding:26px 28px;border-radius:24px;background:#fff;box-shadow:0 0 0 1px var(--ln),0 26px 50px -34px rgba(19,49,129,.45)}
.hxd-chips{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px}
.hxc{display:inline-flex;align-items:center;gap:7px;padding:5px 12px;border-radius:99px;font-size:12px;font-weight:700;background:#eff6ff;color:#1d4ed8;box-shadow:0 0 0 1px #cfe0fb inset}
.hxc.g{background:#ecfdf3;color:#15803d;box-shadow:0 0 0 1px #bbf0d0 inset}.hxc.g i{width:8px;height:8px;border-radius:50%;background:#22c55e}
.hxc.w{background:#fff7e6;color:#b45309;box-shadow:0 0 0 1px #f6d9a1 inset}.hxc.w i{width:8px;height:8px;border-radius:50%;background:#f59e0b}
.hxc.n{background:#f3f5f9;color:#44506a;box-shadow:0 0 0 1px var(--ln) inset}
.hxd-card h2{margin:0;font-size:clamp(26px,3.4vw,38px);letter-spacing:-.025em;color:var(--ink);line-height:1.15}
.hxd-card>p{margin:10px 0 18px;max-width:640px;font-size:16px;line-height:1.6;color:var(--mu)}
.hxd-bar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;padding:12px;border-radius:16px;background:#f6f8fd;box-shadow:0 0 0 1px var(--ln) inset}
.hxd-pip{display:flex;align-items:center;gap:10px;padding:9px 12px;border-radius:12px;background:#fff;box-shadow:0 0 0 1px var(--ln)}
.hxd-pip span{color:var(--mu);font-family:'Fira Code',monospace}.hxd-pip code{font:600 13.5px 'Fira Code',monospace;color:var(--ink);background:none;padding:0}
.hxd-pip button{display:grid;place-items:center;width:28px;height:28px;border:0;border-radius:8px;background:none;color:var(--mu);cursor:pointer}.hxd-pip button:hover{background:#eff6ff;color:var(--a)}
.hxd-pip svg{width:16px;height:16px}
.hxd-btns{display:flex;flex-wrap:wrap;gap:8px}
.hxd-btns a,.hxd-btns button,.hxd-ab a,.hxd-ab button{display:inline-flex;align-items:center;gap:7px;padding:9px 16px;border-radius:11px;border:0;font:600 13.5px/1 inherit;font-family:inherit;color:var(--ink);background:#fff;box-shadow:0 0 0 1px var(--ln);cursor:pointer;text-decoration:none;transition:.15s}
.hxd-btns a:hover,.hxd-btns button:hover,.hxd-ab a:hover,.hxd-ab button:hover{box-shadow:0 0 0 1px #93b4f0;transform:translateY(-1px)}
.hxd-btns .p,.hxd-ab .p{background:var(--a);color:#fff;box-shadow:0 10px 20px -10px rgba(37,99,235,.7)}
.hxd-btns .e{color:var(--a)}.hxd-btns .f{background:#f1f4fa}.hxd-btns .ai{background:#eef4ff;color:#1d4ed8;box-shadow:0 0 0 1px #cfe0fb}
.hxd-btns svg,.hxd-ab svg{width:16px;height:16px;flex:none}
.hxd-ai{background:linear-gradient(180deg,#fff,#f8fbff)}
.hxd-aih{display:flex;gap:16px;align-items:flex-start}
.hxd-ic{flex:none;display:grid;place-items:center;width:46px;height:46px;border-radius:12px;background:#eef4ff;color:#1d4ed8;box-shadow:0 0 0 1px #cfe0fb}.hxd-ic svg{width:22px;height:22px}
.hxd-ai h3{margin:0;display:flex;flex-wrap:wrap;align-items:center;gap:10px;font-size:22px;color:var(--ink)}.hxd-ai h3 .hxc{font-size:11.5px}
.hxd-ai p{margin:6px 0 0;color:var(--mu);font-size:14.5px}
.hxd-key{display:inline-block;margin:16px 0 14px;padding:7px 12px;border-radius:9px;background:#f3f5f9;font-size:13px;color:var(--mu);box-shadow:0 0 0 1px var(--ln) inset}.hxd-key code{color:#1d4ed8;font-weight:600;background:none;padding:0}
.hxd-ab{display:flex;flex-wrap:wrap;gap:10px}.hxd-ab .f{color:var(--mu);background:#fafbfd}
.hxd-pre{margin:16px 0 0;max-height:340px;overflow:auto;padding:16px;border-radius:14px;background:#0b1329;color:#cbd5e8;font:12.5px/1.6 'Fira Code',monospace;white-space:pre-wrap}
html[data-theme="dark"] .hxd-card{background:#101a33;box-shadow:0 0 0 1px #27324d}
html[data-theme="dark"] .hxd-ai{background:#101a33}
html[data-theme="dark"] .hxd-bar,html[data-theme="dark"] .hxd-key{background:#0b1329;box-shadow:0 0 0 1px #27324d inset}
html[data-theme="dark"] .hxd-pip,html[data-theme="dark"] .hxd-btns a,html[data-theme="dark"] .hxd-btns button,html[data-theme="dark"] .hxd-ab a,html[data-theme="dark"] .hxd-ab button{background:#16213f;color:#e6ecf8;box-shadow:0 0 0 1px #27324d}
html[data-theme="dark"] .hxd-btns .p,html[data-theme="dark"] .hxd-ab .p{background:var(--a);color:#0b1329}
@media(max-width:720px){.hxdev{padding:0 14px;margin-top:-30px}.hxd-card{padding:20px 16px;border-radius:20px}.hxd-bar{flex-direction:column;align-items:stretch}.hxd-btns a,.hxd-btns button{flex:1 1 auto;justify-content:center}.hxd-ai h3{font-size:18px}}
.hxdev ~ .layout{margin-top:26px}

.hxdev{margin-top:34px}.hxd-base{font-family:"Fira Code",monospace;font-weight:600}

/* official logo (black mark): always on a white tile so it shows on dark and light themes */
.brand img{background:#fff;padding:4px;object-fit:contain}
