/* V28: repair nested layout constraints without removing content or motion. */
body.mastr-v28 .mastr-ecosystem-stage{display:block!important;grid-template-columns:none!important;width:100%!important;max-width:100%!important;min-width:0!important}
body.mastr-v28 .mastr-ecosystem-stage>.section-heading{width:100%!important;max-width:100%!important;margin-bottom:24px!important}
body.mastr-v28 .v27-hub{width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important;container-type:inline-size;container-name:mastr-hub}
body.mastr-v28 .v27-hub-layout{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:24px!important;align-items:start!important}
body.mastr-v28 .v27-hub-core{width:100%!important;min-width:0!important;height:300px!important;min-height:0!important}
body.mastr-v28 .v27-platform{object-position:65% 48%!important}
body.mastr-v28 .v27-hub-nodes{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr))!important;gap:14px!important;min-width:0!important;width:100%!important}
body.mastr-v28 .v27-hub-node{display:grid!important;grid-template-columns:52px minmax(0,1fr) 18px!important;align-items:center!important;gap:14px!important;min-height:112px!important;height:auto!important;padding:20px!important;min-width:0!important;box-sizing:border-box!important;flex-direction:row!important}
body.mastr-v28 .v27-hub-node>img{width:52px!important;height:52px!important;flex:none!important;object-fit:cover!important}
body.mastr-v28 .v27-hub-node>span{min-width:0!important;max-width:100%!important}
body.mastr-v28 .v27-hub-node>span:last-child{display:block!important;width:18px!important}
body.mastr-v28 .v27-hub-node strong{font-size:17px!important;line-height:1.4!important;overflow-wrap:normal!important;word-break:normal!important;white-space:normal!important;hyphens:none!important}
body.mastr-v28 .v27-hub-node small{font-size:14px!important;line-height:1.6!important;overflow-wrap:normal!important;word-break:normal!important;white-space:normal!important;hyphens:none!important}
@container mastr-hub (max-width:380px){
 body.mastr-v28 .v27-hub-node{grid-template-columns:40px minmax(0,1fr)!important;padding:14px!important;gap:12px!important}
 body.mastr-v28 .v27-hub-node>img{width:40px!important;height:40px!important}
 body.mastr-v28 .v27-hub-node>span:last-child{display:none!important}
}
/* The old flex-basis:100% allocated a full column height to every field. */
body.mastr-v28 .contract-panel{display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:auto auto auto!important;grid-auto-rows:auto!important;align-items:start!important;align-content:start!important;justify-content:stretch!important;gap:14px!important;height:auto!important;min-height:0!important;max-height:none!important;width:100%!important;max-width:100%!important;margin-top:26px!important;padding:22px!important;box-sizing:border-box!important}
body.mastr-v28 .contract-panel>*{flex:0 0 auto!important;flex-basis:auto!important;align-self:start!important;height:auto!important;min-height:0!important;max-height:none!important;margin:0!important;min-width:0!important;width:auto!important;max-width:100%!important;position:static!important}
body.mastr-v28 .contract-panel div span{font:600 12px/1.5 Arial,sans-serif!important;letter-spacing:.06em!important;color:#adf991!important}
body.mastr-v28 .contract-panel div strong{font:400 14px/1.6 Arial,sans-serif!important;color:#bfcfc1!important;margin-top:4px!important}
body.mastr-v28 .contract-panel code{display:block!important;font:500 16px/1.7 ui-monospace,monospace!important;white-space:normal!important;overflow-wrap:anywhere!important;word-break:normal!important;overflow:visible!important;text-overflow:clip!important;user-select:all;padding:12px!important;border:1px solid #35503d;border-radius:6px;background:#030c07}
body.mastr-v28 .contract-panel>a{display:inline-flex!important;align-items:center!important;min-height:44px!important;font:600 14px/1.5 Arial,sans-serif!important;letter-spacing:.02em!important;text-decoration:none!important;padding:6px 0!important}
body.mastr-v28 .token-hero{align-items:start!important}
body.mastr-v28 .token-hero-copy{min-width:0!important;height:auto!important;min-height:0!important}
body.mastr-v28 .token-core{align-self:center!important;aspect-ratio:auto!important;height:auto!important;min-height:320px!important;max-width:520px!important}
/* Keep every remaining navigation destination, with less vertical padding. */
@media(min-width:1101px){
 body.mastr-v28 .v27-header{padding:12px 24px 0!important;gap:8px!important}
 body.mastr-v28 .v27-navigation{gap:2px clamp(12px,1.4vw,22px)!important;padding:5px 0 8px!important}
 body.mastr-v28 .v27-navigation>a{min-height:40px!important;font-size:14px!important}
 body.mastr-v28 .v27-nav-controls{top:12px!important}
}
@media(max-width:600px){
 body.mastr-v28 .v27-hub-core{height:240px!important}
 body.mastr-v28 .v27-hub-node{padding:16px!important;min-height:100px!important}
 body.mastr-v28 .contract-panel{padding:16px!important;gap:12px!important}
 body.mastr-v28 .contract-panel code{font-size:14px!important}
 body.mastr-v28 .token-core{min-height:270px!important}
}
