/* A preview uses the space available, without shrinking a phone inside another phone. */
.crlp .hb .hb-canvas{width:100%;max-width:100%;transition:width .3s ease}
.crlp .hb .hb-canvas.tab{width:min(768px,100%)}
.crlp .hb .hb-canvas.phone{width:min(390px,100%)}
.crlp .hb.v11-browsing .hb-canvas{overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#90acd1 #e4eaf3}
.crlp .hb.v11-browsing .ns{transform:none!important;transition:none!important}
.crlp .hb .ns{font-size:clamp(13px,1.65cqw,15px)}
.crlp .hb .hb-canvas.tab .ns{font-size:clamp(13px,1.8cqw,15px)}
.crlp .hb .hb-canvas.phone .ns{font-size:14px}
.crlp .hb .ns-hero p{font-size:max(13px,.95em);line-height:1.55}
.crlp .v11-device-name{display:none}
.crlp .v11-mobile-tools{display:none}
.crlp .hb-body{position:relative}
.crlp .v11-table-scroll{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;scrollbar-color:#8097b2 #e5eaf1}
.crlp .hb .hb-canvas .ns-tbl{font-size:12px;min-width:360px}
.crlp .hb .hb-canvas .ns-tbl th,.crlp .hb .hb-canvas .ns-tbl td{padding:8px 6px;font-size:11px}
.crlp .v11-table-hint{display:none;font:500 11px/18px Inter,sans-serif;margin:8px 0 0;color:var(--ns-muted)}
.crlp .v11-table-scroll:focus-visible{outline:2px solid #0066ff;outline-offset:2px}
.crlp .demo-node-more{display:contents}
.crlp .demo-node-bar .demo-node-more{padding:0;margin:0;border:0;background:transparent;color:inherit}
.crlp .demo-node-more>summary{display:none}
.crlp .demo-node-menu{display:flex;flex-wrap:wrap;gap:3px}
.crlp .v11-action-text{display:none}
@container(max-width:760px){.crlp .demo-columns,.crlp .demo-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@container(max-width:520px){
 .crlp .hb .ns-head{gap:10px;padding:12px 14px;flex-wrap:wrap}
 .crlp .hb .ns-logo{font-size:16px;white-space:normal;gap:7px;min-width:0}
 .crlp .hb .ns-logo img{width:24px;height:24px}
 .crlp .hb .ns-nav,.crlp .hb .ns-util span+span{display:none}
 .crlp .hb .ns-cta{font-size:12px;padding:8px 10px;margin-left:auto}
 .crlp .hb .ns-util{font-size:11px;line-height:1.5;padding:8px 14px}
 .crlp .hb .ns-hero{padding:24px 16px}
 .crlp .hb .hb-canvas .ns-hero .ns-h{font-size:clamp(28px,8cqw,38px);line-height:1.06}
 .crlp .hb .ns-hero small{font-size:11px;line-height:1.5;letter-spacing:.05em}
 .crlp .hb .ns-b{font-size:12px;line-height:18px;padding:10px 12px}
 .crlp .hb .ns-trust,.crlp .hb .ns-trust.three{grid-template-columns:1fr;gap:8px;padding:12px 16px;font-size:12px}
 .crlp .hb .ns-pad{padding:20px 14px}
 .crlp .hb .ns-note{font-size:11px;line-height:1.55}
 .crlp .hb .ns-date{display:grid;grid-template-columns:24px minmax(0,1fr);gap:8px;padding:12px;font-size:12px}
 .crlp .hb .ns-date .lv{grid-column:2;margin:0;text-align:left;white-space:normal;font-size:12px}
 .crlp .hb .ns-quote{grid-template-columns:1fr}
 .crlp .hb .ns-quote p{font-size:13px}
 .crlp .hb .ns-qf i,.crlp .hb .ns-qf span{font-size:12px}
 .crlp .demo-node{font-size:14px;line-height:1.55}
 .crlp .demo-node-body input:not([type=checkbox]):not([type=radio]),.crlp .demo-node-body select,.crlp .demo-node-body textarea{font-size:16px;min-height:42px}
 .crlp .demo-node-body button:not([data-node-action]):not(.demo-drag-handle){min-height:40px;font-size:13px}
 .crlp .demo-node-body figcaption,.crlp .demo-node-body small{font-size:12px;line-height:1.55}
}
@container(max-width:420px){
 .crlp .demo-columns,.crlp .demo-split,.crlp .demo-cards,.crlp .demo-form-grid{grid-template-columns:1fr}
 .crlp .demo-node-bar{gap:6px;padding:6px}
 .crlp .demo-node-bar>span{font-size:11px}
 .crlp .demo-node-bar button{min-width:38px;min-height:38px;font-size:11px;padding:4px 7px}
 .crlp .demo-node-bar .demo-drag-handle{min-width:30px;min-height:38px}
 .crlp .demo-node-more{display:block;position:relative}
 .crlp .demo-node-more>summary{display:flex;align-items:center;justify-content:center;min-width:38px;min-height:38px;border:1px solid #a8bedb;background:#fff;color:#173653;border-radius:3px;list-style:none;font:700 20px/24px Inter,sans-serif;cursor:pointer}
 .crlp .demo-node-more>summary::-webkit-details-marker{display:none}
 .crlp .demo-node-more>.demo-node-menu{display:none}
 .crlp .demo-node-more[open]>.demo-node-menu{display:grid;position:absolute;right:0;top:calc(100% + 4px);width:158px;z-index:10;gap:4px;padding:6px;background:#f5f8ff;border:1px solid #a8bedb;border-radius:5px;box-shadow:0 6px 18px #00142926;overflow-y:auto;overscroll-behavior:contain}
 .crlp .demo-node-more.v11-menu-up[open]>.demo-node-menu{top:auto;bottom:calc(100% + 4px)}
 .crlp .demo-node-menu>button{display:flex;align-items:center;justify-content:flex-start;gap:8px;width:100%;min-height:40px}
 .crlp .v11-action-text{display:inline}
 .crlp .v11-table-hint{display:block}
}
@container(max-width:300px){.crlp .hb .ns-head{display:grid;grid-template-columns:1fr}.crlp .hb .ns-cta{margin:0;justify-self:start}.crlp .hb .hb-canvas .ns-hero .ns-h{font-size:28px}}
/* Tablet portrait retains a useful library beside the page. */
@media(min-width:641px) and (max-width:980px){
 .crlp .hb .hb-body{grid-template-columns:200px minmax(0,1fr);height:620px}
 .crlp .hb .hb-panel{height:auto;padding:10px;position:static}
 .crlp .hb .hb-stage{height:100%;padding:10px}
 .crlp .hb-library-scroll .hb-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}
 .crlp .hb-library-scroll .hb-tile{font-size:11px;min-height:64px;padding:8px}
 .crlp .hb .hb-panel.style .hb-pv-style,.crlp .hb .hb-panel.sec .hb-pv-sec{display:block}
 .crlp .hb .hb-looks,.crlp .hb .hb-cols,.crlp .hb .hb-sels{grid-template-columns:1fr}
 .crlp .hb .hb-look{grid-template-columns:auto minmax(0,1fr)}
 .crlp .hb .hb-sels .hb-tgl{grid-column:auto;grid-row:auto}
 .crlp .hb .hb-sh{margin-bottom:10px}
 .crlp .hb .hb-pv-sec .hb-sg{margin-top:12px}
}
/* Phone: a readable page first, with tools in an accessible, closable panel. */
@media(max-width:640px){
 .crlp .hb .hb-body{display:block;height:520px}
 .crlp .hb .hb-stage{height:100%;padding:8px}
 .crlp .hb .hb-panel{position:absolute;inset:0 auto auto 0;z-index:12;width:100%;height:360px;max-height:100%;padding:12px;border-bottom:1px solid #9fb9db;box-shadow:0 12px 20px #00142924;visibility:hidden;opacity:0;pointer-events:none;transform:translateX(-105%)}
 .crlp .hb[data-mobile-panel=elements] .hb-panel,.crlp .hb[data-mobile-panel=style] .hb-panel,.crlp .hb[data-mobile-panel=properties] .hb-panel{visibility:visible;opacity:1;pointer-events:auto;transform:none}
 .crlp .hb.v11-dragging .hb-panel{transform:translateX(-105%);opacity:0;pointer-events:none}
 .crlp .v11-mobile-tools{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:6px;padding:8px;background:#eaf0f8;border-bottom:1px solid #c8d5e5}
 .crlp .v11-mobile-tools button{display:flex;align-items:center;justify-content:center;gap:6px;min-height:42px;padding:8px 6px;border:1px solid #b3c6df;border-radius:5px;background:#fff;color:#173653;font:650 12px/20px Inter,sans-serif;cursor:pointer}
 .crlp .v11-mobile-tools button[aria-expanded=true],.crlp .v11-mobile-tools button[aria-pressed=true]{background:#0066ff;color:#fff;border-color:#0066ff}
 .crlp .v11-mobile-tools button>span{font-size:10px;line-height:16px;padding:0 4px;border-radius:3px;background:#eaf0f8;color:#173653}
 .crlp .hb .hb-ptabs button{min-height:40px;font-size:13px}
 .crlp .hb-library-search{padding:8px;min-height:42px}
 .crlp .hb-library-search input,.crlp .demo-properties input,.crlp .demo-properties select,.crlp .demo-properties textarea{font-size:16px}
 .crlp .hb-library-scroll .hb-tiles{grid-template-columns:repeat(3,minmax(0,1fr))}
 .crlp .hb-library-scroll .hb-tile{min-height:68px;font-size:12px;line-height:16px}
 .crlp .hb-library-status{font-size:11px;line-height:18px}
 .crlp .hb .hb-looks{grid-template-columns:repeat(2,minmax(0,1fr))}
 .crlp .hb .hb-look{padding:10px;min-height:46px}
 .crlp .hb .hb-panel.sec .hb-pv-sec{display:block}
 .crlp .hb .hb-panel.sec .hb-pv-sec,.crlp .hb .hb-panel.style .hb-pv-style{flex:1;min-height:0;overflow-y:auto}
 .crlp .hb .hb-pv-sec .hb-sg{margin-top:12px}
 .crlp .demo-toolbar{font-size:12px;line-height:18px;padding:8px}
 .crlp .demo-toolbar button{min-height:40px;font-size:12px}
 .crlp .demo-properties h3{font-size:16px;line-height:24px}
 .crlp .demo-properties label{font-size:12px;line-height:20px}
 .crlp .demo-back{min-height:40px;font-size:12px}
}
@media(max-width:480px){
 .crlp .hb .hb-top{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;height:auto;padding:10px}
 .crlp .hb .hb-brand{grid-column:1;grid-row:1;font-size:14px;gap:7px}
 .crlp .hb .hb-mark{display:grid;width:22px;height:22px}
 .crlp .hb .hb-page,.crlp .hb .hb-search{display:none}
 .crlp .hb .hb-pub{grid-column:2;grid-row:1;min-width:0;font-size:12px;padding:8px 10px}
 .crlp .hb .hb-devs{grid-column:1/-1;grid-row:2;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;width:100%;margin:0;padding:4px}
 .crlp .hb .hb-devs button{display:flex;align-items:center;justify-content:center;gap:5px;width:auto;height:42px;padding:6px;font:600 11px/18px Inter,sans-serif}
 .crlp .v11-device-name{display:inline}
 .crlp .hb .hb-devs button svg{width:15px;height:15px;flex:none}
 .crlp .hb-library-scroll .hb-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}
 .crlp .demo-toolbar>p{min-width:0;flex-basis:100%}
 .crlp .demo-toolbar>div{width:100%;flex:1}
 .crlp .demo-toolbar>div button{flex:1}
}
@media(prefers-reduced-motion:reduce){.crlp .hb .hb-canvas,.crlp .hb .hb-panel{transition:none!important}}
