.banri-site,.banri-auth{--ink:#142f28;--leaf:#113d32;--muted:#48635a;--lime:#d5f18f;--paper:#f8faf3;--stroke:#d7e2d4;box-sizing:border-box;background:var(--paper);color:var(--ink);font:16px/1.65 system-ui,"Yu Gothic",sans-serif;margin:0;min-height:100vh;min-height:100dvh;color-scheme:light}
.banri-site *, .banri-auth *{box-sizing:border-box}
.banri-site a,.banri-auth .banri-brand{color:inherit;text-decoration:none}
.banri-site a:focus-visible,.banri-auth a:focus-visible{outline:3px solid #367c60;outline-offset:4px}
.banri-header,.banri-hero,.banri-measurement,.banri-footer{width:min(1180px,100% - 64px);margin-inline:auto}
.banri-header{display:flex;justify-content:space-between;align-items:center;gap:16px;min-height:84px;border-bottom:1px solid var(--stroke)}
.banri-brand{display:inline-flex;align-items:center;gap:11px;font-weight:800;line-height:1.25;white-space:nowrap}
.banri-brand img{display:block;flex:none}.banri-brand small{display:block;font-size:.69rem;letter-spacing:.12em;color:var(--muted);margin-top:3px}
.banri-header nav{display:flex;gap:24px;align-items:center;font-size:.9rem}
.banri-button{display:inline-flex;align-items:center;gap:16px;padding:10px 16px;border-radius:9px;font-weight:750}
.banri-outline{border:1px solid var(--stroke);background:#fff}.banri-site .banri-primary{background:var(--leaf);color:white;padding:13px 19px}.banri-primary span{color:var(--lime)}
.banri-hero{padding-block:66px;display:grid;grid-template-columns:.95fr 1fr;align-items:center;gap:56px}
.banri-hero h1,.banri-auth h1,.banri-auth h2{margin:0;line-height:1.16;font-weight:850;letter-spacing:-.04em}
.banri-hero h1{font-size:clamp(2.5rem,5.1vw,4.65rem)}.banri-hero h1 em{font-style:normal;color:#267456}
.banri-hero p{color:var(--muted);max-width:29em;margin:24px 0}
.banri-graph{padding:28px;border-radius:24px;background-color:#12382f;background-image:radial-gradient(#75a58850 1px,transparent 1px);background-size:17px 17px;color:#fff}
.banri-graph-head{display:flex;align-items:center;gap:10px;font-weight:700;margin-bottom:24px}
.banri-dot{width:10px;height:10px;border-radius:50%;background:var(--lime)}
.banri-node{border:1px solid #74988b;border-radius:12px;padding:14px 16px;background:#1d4b3e;text-align:center}
.banri-node span{display:block;color:var(--lime);font-size:.78rem}.banri-node strong{display:block;margin-top:2px}
.banri-trunk{height:20px;border-left:1px solid #abc9b8;margin-left:50%}.banri-fork{height:20px;width:50%;margin:0 auto;border:1px solid #abc9b8;border-bottom:0;border-top:0;background:linear-gradient(#abc9b8,#abc9b8) center bottom/100% 1px no-repeat}
.banri-branches{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.banri-measurement{padding:36px 0 52px;border-top:1px solid var(--stroke)}.banri-measurement h2{font-size:clamp(1.55rem,3vw,2.4rem);margin:0 0 20px}.banri-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.banri-cards article{background:white;border:1px solid var(--stroke);border-radius:14px;padding:21px}.banri-cards h3{margin:0;font-size:1.1rem}.banri-cards p{margin:7px 0 0;color:var(--muted)}.banri-footer{padding:20px 0;border-top:1px solid var(--stroke);font-size:.85rem;color:var(--muted)}
.banri-auth{display:grid;grid-template-columns:1fr 1fr}.banri-auth-panel{padding:clamp(24px,5vw,80px);display:flex;flex-direction:column}.banri-auth-form{width:min(100%,420px);margin:auto;padding:40px 0}.banri-auth-form h1{font-size:2.5rem}.banri-auth-form>p{margin:12px 0 24px;color:var(--muted)}.banri-auth-aside{display:grid;place-content:center;padding:clamp(24px,6vw,90px);background-color:#12382f;background-image:radial-gradient(#75a58850 1px,transparent 1px);background-size:19px 19px;color:white}.banri-auth-aside h2{max-width:13ch;font-size:clamp(2rem,4.2vw,4rem)}.banri-auth-aside p{max-width:30em;color:#d5e4d9;margin:20px 0}.banri-auth-aside em{font-style:normal;color:var(--lime)}
@media(max-width:760px){.banri-header,.banri-hero,.banri-measurement,.banri-footer{width:calc(100% - 36px)}.banri-header{min-height:68px}.banri-header nav>a:first-child{display:none}.banri-hero{grid-template-columns:1fr;gap:30px;padding-block:40px}.banri-cards,.banri-auth{grid-template-columns:1fr}.banri-auth-aside{display:none}.banri-graph{padding:18px}.banri-node{padding:10px 5px}}
.banri-site,.banri-auth{--ink:#17213b;--leaf:#355bf1;--muted:#596682;--lime:#aec5ff;--paper:#fff;--stroke:#e1e6f0}
.banri-header,.banri-hero,.banri-measurement,.banri-footer{width:min(1170px,100% - 64px)}
.banri-hero{gap:clamp(30px,7vw,115px);padding-block:70px;grid-template-columns:1.05fr 1fr}
.trace-intro .trace-label{color:#355bf1;font-weight:750;font-size:.83rem;letter-spacing:.075em;margin:0 0 18px}
.banri-hero h1{font-size:clamp(2.6rem,5.3vw,4.8rem);letter-spacing:-.065em}
.banri-hero h1 em{color:#355bf1}
.trace-jump{display:inline-block;color:#2546cd!important;font-weight:750;border-bottom:1px solid #aec5ff;padding-bottom:3px}
.trace-check{background:#f8faff;border:1px solid #e0e7f6;border-radius:24px;padding:clamp(20px,4vw,38px);box-shadow:0 20px 56px #182f650f;scroll-margin-top:20px}
.trace-check-head h2{margin:10px 0 0;font-size:clamp(1.55rem,3vw,2.15rem);line-height:1.3}
.trace-check-head p{margin:8px 0 18px;font-size:.85rem}
.trace-free{display:inline-flex;border-radius:999px;background:#e7edff;color:#2345bb;font-weight:750;font-size:.76rem;padding:3px 10px}
.trace-check form{display:grid;gap:11px}
.trace-check label{display:grid;gap:4px;font-weight:680;font-size:.83rem}
.trace-check input{width:100%;min-width:0;padding:10px 12px;min-height:43px;font:inherit;color:var(--ink);background:#fff;border:1px solid #d7dfee;border-radius:9px}
.trace-check input::placeholder{color:#62708e;font-weight:400}
.trace-check input:focus{outline:2px solid #4568ff;outline-offset:2px}
.trace-check button{margin-top:4px;width:100%;justify-content:space-between;cursor:pointer;border:0;font:inherit;font-weight:760}
.trace-error{border:1px solid #f3c5c5;background:#fff1f1;color:#982733;border-radius:8px;padding:6px 10px}
.trace-error p{margin:0}
.banri-auth-aside{background-color:#f1f5ff;background-image:radial-gradient(#98b0ed80 1px,transparent 1px);color:var(--ink)}
.banri-auth-aside p{color:var(--muted)}.banri-auth-aside em{color:#355bf1}
@media(max-width:760px){.banri-header,.banri-hero,.banri-measurement,.banri-footer{width:calc(100% - 36px)}.banri-hero{grid-template-columns:1fr;padding-block:36px;gap:26px}.banri-hero p{margin-block:15px}.trace-intro .trace-label{margin-bottom:12px}}
.trace-result{--foreground:#17213b;--background:#fff;--card:#fff;--muted-foreground:#596682;--border:#e1e6f0;--muted:#f0f4ff}
.trace-result .site-shell{width:min(1170px,100% - 64px);margin-inline:auto;padding-inline:0}
.trace-result .site-label{color:#355bf1;font-size:.83rem;font-weight:750;letter-spacing:.04em}
.trace-result .site-display{font:850 clamp(2rem,4vw,3.7rem)/1.17 system-ui,"Yu Gothic",sans-serif;letter-spacing:-.05em}
.trace-result .site-lead{font-size:1rem;color:#596682}
.trace-result .site-field{min-height:42px;padding:9px 12px;border:1px solid #d7dfee;background:#fff;border-radius:9px}
.trace-result .banri-header nav>a:first-child{display:inline-flex}
@media(max-width:760px){.trace-result .site-shell{width:calc(100% - 36px)}}
.trace-product, .trace-dashboard {
    --background: #fff; --foreground: #17213b; --card: #fff; --card-foreground: #17213b;
    --popover: #fff; --popover-foreground: #17213b; --primary: #355bf1; --primary-foreground: #fff;
    --secondary: #eff3ff; --secondary-foreground: #243662; --muted: #f3f6fb; --muted-foreground: #596682;
    --accent: #edf2ff; --accent-foreground: #2546cd; --border: #e1e6f0; --input: #d7dfee;
    --ring: #4568ff; --sidebar: #fff; --sidebar-foreground: #17213b; --sidebar-primary: #355bf1;
    --sidebar-primary-foreground: #fff; --sidebar-accent: #eef2ff; --sidebar-accent-foreground: #2546cd;
    --sidebar-border: #e1e6f0; --sidebar-ring: #4568ff;
    color-scheme: light; background: #fff; color: #17213b;
}
.trace-product [data-slot="sidebar-inset"] { background: #fff; }

/* White surfaces across the public site, authentication and application. */
.banri-site .trace-check,
.banri-site .banri-graph,
.banri-site .banri-node,
.banri-auth .banri-auth-panel,
.banri-auth .banri-auth-aside {
    background: #fff;
    color: #17213b;
}
.banri-site .banri-graph,
.banri-site .banri-node {
    border: 1px solid #e1e6f0;
}
.banri-site .banri-node span { color: #2546cd; }

.trace-product :is(.site-paper, .site-ink, .site-screen, .trace-result) {
    --background: #fff;
    --card: #fff;
    --foreground: #17213b;
    --card-foreground: #17213b;
    --muted: #fff;
    --muted-foreground: #596682;
    --secondary: #fff;
    --secondary-foreground: #243662;
    --border: #e1e6f0;
    background: #fff;
    color: #17213b;
}
.trace-product, .trace-dashboard {
    --sidebar-background: #fff;
    --secondary: #fff;
    --muted: #fff;
}
.trace-product [data-slot="sidebar-inset"] :is(section, textarea, input:not([type="checkbox"], [type="radio"], [type="range"])) {
    background-color: #fff;
}
.trace-product [data-slot="sidebar-inset"] :is(.bg-muted, [class~="bg-muted/60"], [class~="bg-foreground/[0.03]"]) {
    background-color: #fff;
}

/* The legacy marketing wrapper owns its own palette, independent of body. */
.trace-product .site-theme {
    --background: #fff;
    --foreground: #17213b;
    --card: #fff;
    --card-foreground: #17213b;
    --popover: #fff;
    --popover-foreground: #17213b;
    --primary: #355bf1;
    --primary-foreground: #fff;
    --secondary: #fff;
    --secondary-foreground: #17213b;
    --muted: #fff;
    --muted-foreground: #596682;
    --accent: #fff;
    --accent-foreground: #2546cd;
    --border: #e1e6f0;
    --input: #d7dfee;
    --ring: #4568ff;
    --marker: #e7edff;
    background: #fff;
    color: #17213b;
}
.trace-product .site-theme > header,
.trace-product .site-theme footer {
    background: #fff;
}
.trace-product .site-theme .site-btn {
    background: #355bf1;
    color: #fff;
}
.trace-product .site-theme .site-screen {
    --accent: #fff;
    --input: #d7dfee;
    border-color: #e1e6f0;
}
.trace-product .site-theme :is(.site-screen, [class~="bg-[#111113]"]) :is([class^="text-white/"], [class*=" text-white/"]),
.trace-product .site-theme .site-screen .font-mono.text-white {
    color: #3d4d6b;
}
.trace-product .site-theme :is([class~="bg-[#111113]"], [class~="bg-black/90"]) {
    background: #fff;
    color: #17213b;
    border: 1px solid #e1e6f0;
}
.trace-product .site-theme [class~="bg-black/90"] .text-white {
    color: #17213b;
}
.trace-product .site-theme [class*="bg-[radial-gradient(70%_60%_at_72%_0%"] {
    background-image: none;
}

.trace-product .site-theme :is([class~="bg-[#0b0b0d]"], [class~="bg-[#0d0d10]"]) {
    background: #fff;
    color: #17213b;
    border: 1px solid #e1e6f0;
}
.trace-product .site-theme :is([class~="bg-[#0b0b0d]"], [class~="bg-[#0d0d10]"]) [class*="text-white/"] {
    color: #3d4d6b;
}
.trace-product .site-theme [class*="bg-[radial-gradient("][class*="-z-10"] {
    background-image: none;
}


.trace-home .banri-hero h1 {
    font-size: clamp(2.1rem, 4.1vw, 3.7rem);
    line-height: 1.3;
    letter-spacing: -.04em;
    overflow-wrap: anywhere;
}
.trace-home .trace-intro .trace-note { font-size: .83rem; margin-block: 12px 0; }
.trace-example { margin: 0; border: 1px solid #d7dfee; border-radius: 20px; padding: clamp(16px, 3vw, 28px); background: #fff; box-shadow: 0 14px 35px #182f650e; }
.trace-example figcaption { font-size: .85rem; font-weight: 750; padding-bottom: 14px; border-bottom: 1px solid #e1e6f0; }
.trace-example small { color: #596682; margin-inline-start: 8px; font-weight: 500; }
.trace-example-chat, .trace-example-reply { border: 1px solid #e1e6f0; border-radius: 12px; margin-top: 14px; padding: 13px 16px; }
.trace-example-chat { border-inline-start: 3px solid #355bf1; }
.trace-example :is(strong, span) { display: block; }
.trace-example span { font-size: .75rem; color: #596682; margin-bottom: 3px; }
.trace-example .trace-example-reply p { margin: 0; max-width: none; color: #17213b; }
.trace-example mark { color: #2546cd; background: #edf2ff; border-radius: 4px; padding-inline: 4px; }
.trace-example dl { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); margin: 16px 0 0; gap: 10px; }
.trace-example dl > div { border-top: 1px solid #e1e6f0; padding-top: 9px; }
.trace-example dt { font-size: .74rem; color: #596682; }
.trace-example dd { margin: 0; font-weight: 750; font-size: .9rem; }
.trace-home .trace-home-check { width: min(100% - 36px, 610px); margin: 12px auto 54px; }
.trace-home .trace-home-check button { width: 100%; }
@media (max-width: 470px) {
    .trace-home .banri-header { gap: 10px; }
    .trace-home .banri-header nav { gap: 10px; }
    .trace-home .banri-header nav > a { font-size: .8rem; padding-inline: 0; border: 0; }
    .trace-home .banri-hero h1 br { display: none; }
}

/* Querygraph keeps its dotted diagram on a white page. */
.trace-product .st-neural {
    --nr-bg: #fff;
    --nr-stone: #fff;
    --nr-card: #fff;
}
