*{box-sizing:border-box}
:root{color-scheme:dark;--bg:#08090d;--surface:#171923;--border:#383b49;--text:#f5f2fa;--muted:#c9cbd5;--pink:#ff9bc4;--gradient:linear-gradient(135deg,#ffbd63,#ff5c9e)}
body{margin:0;min-height:100vh;min-height:100dvh;display:flex;flex-direction:column;background:radial-gradient(ellipse at 88% 8%,#2a1931 0,transparent 35%),linear-gradient(145deg,#090a0e,#12141d 55%,#08090d);color:var(--text);font:16px/1.65 Inter,Roboto,Arial,sans-serif}a{color:var(--pink)}
.product-header{background:rgba(8,9,13,.96);border-bottom:1px solid #ffffff15}.product-header-inner{width:min(1240px,calc(100% - 40px));min-height:78px;margin:auto;display:flex;align-items:center;gap:32px}.product-brand{display:flex;align-items:center;margin-right:auto;text-decoration:none;color:#fff;flex:none}.xnh-brand__mark{position:relative;display:flex;align-items:center;justify-content:center;width:43px;height:43px;overflow:hidden;border:1px solid #ffffff38;border-radius:14px;background:linear-gradient(145deg,#2b1c31,#101118);box-shadow:inset 0 1px #ffffff1f,0 8px 24px #0006;font-size:17px;font-weight:950;letter-spacing:-.08em}.xnh-brand__mark:before{content:'';position:absolute;width:42px;height:12px;right:-17px;top:4px;background:linear-gradient(90deg,#ffbb62,#ff5f9d);transform:rotate(38deg);opacity:.95}.xnh-brand__mark i{position:relative;z-index:1;color:#ff7cad;font-style:normal}.product-header nav{display:flex;align-items:center;flex-wrap:wrap;gap:27px}.product-header nav a{color:#e8e8ef;text-decoration:none;font-size:15px;font-weight:700;padding:8px 0}.product-header nav a:hover,.product-header nav a[aria-current],.product-header nav .section-active{color:var(--pink)}
.product-main{width:min(1180px,calc(100% - 48px));margin:0 auto;padding:56px 0 64px;flex:1;min-width:0}.research-main{width:min(900px,calc(100% - 48px))}h1{font-size:clamp(32px,5vw,54px);line-height:1.12;letter-spacing:-.035em;margin:12px 0 16px;overflow-wrap:anywhere}h2{font-size:clamp(22px,3vw,28px);line-height:1.3;margin:32px 0 14px}.eyebrow{letter-spacing:.15em;color:#ff87b6;font-size:12px;font-weight:800}.lead{font-size:20px;color:var(--muted);max-width:800px}.note{color:var(--muted)}.panel,.tile{background:var(--surface);border:1px solid var(--border);border-radius:20px;padding:24px;min-width:0}.panel{display:grid;gap:12px;max-width:800px}.tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.tile{display:grid;align-content:start;gap:10px;color:var(--text);text-decoration:none;overflow-wrap:anywhere}.tile:hover{border-color:#ff87b6}.tile strong{font-size:18px;line-height:1.35}.tile span{color:var(--muted)}.tile .tile-icon{display:grid;place-items:center;background:#2c2032;color:#ff9bc4;border:1px solid #ff9bc433;width:42px;height:42px;border-radius:12px;font-size:23px;line-height:1}.panel input:not([type=checkbox]),.panel select{width:100%;min-width:0}.panel output{font-size:1.2rem;font-weight:700;overflow-wrap:anywhere}input,select,button{font:inherit;max-width:100%;padding:10px 12px;border-radius:10px}input,select{background:#fff;color:#161019;border:1px solid #aaa;color-scheme:light}button{background:var(--gradient);font-weight:700;color:#161019;border:0;cursor:pointer}button:disabled{opacity:.45;cursor:default}pre{white-space:pre-wrap;overflow-wrap:anywhere;margin:0}img{max-width:100%;max-height:320px;object-fit:contain}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #fff;outline-offset:3px}[hidden]{display:none!important}
.product-footer{background:#090d18;border-top:1px solid #ffffff1f;color:#dfe6f6}.product-footer-inner{width:min(1240px,calc(100% - 40px));margin:auto;padding:40px 0 24px}.product-footer-brand{color:#fff;font-size:26px;font-weight:800;text-decoration:none}.product-footer-intro p{color:#aebad2;margin:6px 0 24px}.product-footer-directory{display:grid;grid-template-columns:1.25fr 1fr 1fr 1fr;gap:30px;padding:28px 0;border-top:1px solid #ffffff1a}.product-footer-directory h2{font-size:14px;text-transform:uppercase;letter-spacing:.06em;margin:0 0 14px;color:#fff}.product-footer-directory ul{list-style:none;margin:0;padding:0;display:grid;gap:8px}.product-footer-directory a{color:#bfcbe1;text-decoration:none;font-size:14px}.product-footer-directory a:hover{color:var(--pink)}.product-footer-bottom{display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px 20px;padding-top:22px;border-top:1px solid #ffffff1a;color:#a1acc3;font-size:13px}
@media(max-width:900px){.tiles{grid-template-columns:repeat(2,minmax(0,1fr))}.product-footer-directory{grid-template-columns:repeat(2,minmax(0,1fr))}.product-header-inner{min-height:70px;gap:20px}.product-header nav{gap:20px}}
@media(max-width:560px){.product-main,.research-main{width:calc(100% - 32px);padding:32px 0 40px}.tiles{grid-template-columns:1fr}.panel,.tile{padding:16px}.product-header-inner{width:calc(100% - 28px);min-height:68px;gap:12px;padding:10px 0}.product-header nav{gap:4px 14px;justify-content:flex-end}.product-header nav a{font-size:14px;padding:5px 0}.xnh-brand__mark{width:40px;height:40px;border-radius:12px;font-size:15px}.product-footer-inner{width:calc(100% - 28px);padding-top:28px}.product-footer-directory{gap:22px 16px}.product-footer-directory a{overflow-wrap:anywhere}}
@media(max-width:340px){.product-footer-directory{grid-template-columns:1fr}.product-header nav{gap:4px 10px}}

.extra-controls{display:grid;gap:10px}.extra-controls:empty{display:none}.downloads{display:grid;gap:8px}.downloads:empty{display:none}.downloads a{display:block;padding:12px;border:1px solid var(--border);border-radius:10px;overflow-wrap:anywhere}.secondary-tool-button{background:#242634;color:var(--text);border:1px solid var(--border)}#swatches{width:min(240px,100%);height:auto;border-radius:6px}body[data-extra-tool="color-picker"] #preview{cursor:crosshair;object-fit:fill;width:auto;height:auto;max-width:100%;max-height:320px;justify-self:start}.product-header{background:rgba(8,9,13,.88)}


/* R54 AI Lab */
.ai-tool-panel{max-width:none}.ai-stage{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-items:start}.ai-stage h2{font-size:18px;margin:0 0 10px}.ai-stage img,.ai-stage canvas{display:block;width:100%;height:auto;max-height:560px;object-fit:contain;border-radius:14px;border:1px solid var(--border);background:linear-gradient(45deg,#1b1e29 25%,transparent 25%),linear-gradient(-45deg,#1b1e29 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#1b1e29 75%),linear-gradient(-45deg,transparent 75%,#1b1e29 75%);background-size:24px 24px;background-position:0 0,0 12px,12px -12px,-12px 0;padding:6px;box-shadow:none;max-width:100%}.ai-stage p.note{margin:0;padding:12px;border:1px dashed var(--border);border-radius:12px}.downloads a{color:#fff;text-decoration:none;background:#242634}.downloads a:hover{border-color:#ff87b6}.panel ul{margin:0;padding-left:22px}.panel li+li{margin-top:6px}@media(max-width:760px){.ai-stage{grid-template-columns:1fr}}