/* Pastegram v71: MOBILE ONLY concept. No desktop rules. */
@media (max-width:900px){
 html[data-theme="dark"]{--pg71-sheet:#111b30;--pg71-panel:#19263d;--pg71-ink:#edf3ff;--pg71-muted:#a7b7d0;--pg71-border:#33435d;--pg71-blue:#4e79ff;--pg71-stage:#091222}
 html[data-theme="light"]{--pg71-sheet:#fff;--pg71-panel:#f3f6fc;--pg71-ink:#1b2941;--pg71-muted:#63748d;--pg71-border:#dae3ef;--pg71-blue:#3868f6;--pg71-stage:#edf2fb}
 body>header{height:57px!important;min-height:57px!important;flex-basis:57px!important;background:var(--pg71-sheet)!important;border-bottom:1px solid var(--pg71-border)!important;padding:6px 12px!important}
 header .brand img{width:29px!important;height:29px!important}
 header #export-open{border-radius:13px!important;min-height:38px!important;height:38px!important;background:var(--pg71-blue)!important}
 body>main,body.panel-open>main,body.properties-open>main,body.sheet-expanded>main{padding:7px 9px 93px!important;background:var(--pg71-stage)!important}
 #workspace,body.panel-open #workspace,body.properties-open #workspace{border-radius:19px!important;background:var(--pg71-sheet)!important;border:1px solid var(--pg71-border)!important;box-shadow:none!important}
 #workspace .workspace-heading{height:41px!important;min-height:41px!important;flex-basis:41px!important;padding:8px 12px!important;background:var(--pg71-sheet)!important;border-bottom:1px solid var(--pg71-border)!important}
 #workspace .workspace-heading #doc-name{font-size:12px!important;font-weight:750!important;max-width:60%!important;color:var(--pg71-ink)!important}
 #workspace #stage{background:repeating-conic-gradient(#eff3fa 0% 25%,#dfe6f1 0% 50%) 50%/20px 20px!important}
 html[data-theme="dark"] #workspace #stage{background:repeating-conic-gradient(#182338 0% 25%,#121d30 0% 50%) 50%/20px 20px!important}
 #workspace .zoom-bar{background:#17243d!important;border:1px solid #394760!important;box-shadow:0 6px 16px #0002!important}
 #mobile-create-dock,body.panel-open #mobile-create-dock,body.properties-open #mobile-create-dock{left:9px!important;right:9px!important;bottom:calc(7px + env(safe-area-inset-bottom,0px))!important;display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;grid-template-rows:68px!important;height:74px!important;min-height:74px!important;max-height:74px!important;padding:4px!important;gap:2px!important;background:var(--pg71-sheet)!important;border:1px solid var(--pg71-border)!important;border-radius:21px!important;box-shadow:0 9px 28px #06112830!important}
 #mobile-create-dock button{height:64px!important;min-height:64px!important;padding:6px 2px!important;gap:5px!important;border-radius:15px!important;color:var(--pg71-muted)!important;font-weight:700!important}
 #mobile-create-dock button svg{width:21px!important;height:21px!important}
 #mobile-create-dock button span{font-size:10px!important;color:inherit!important}
 #mobile-create-dock button[data-mobile-action=upload],#mobile-create-dock button[data-mobile-action=adjust]{background:transparent!important;color:var(--pg71-muted)!important}
 #mobile-create-dock button.pg71-current{background:linear-gradient(135deg,#537cff,#315cf4)!important;color:#fff!important}
 #quick-sidebar,#sidebar,body.panel-open #quick-sidebar,body.properties-open #sidebar{left:6px!important;right:6px!important;bottom:calc(5px + env(safe-area-inset-bottom,0px))!important;height:min(61dvh,650px)!important;min-height:210px!important;max-height:min(69dvh,720px)!important;padding:14px 15px 18px!important;border-radius:25px 25px 20px 20px!important;background:var(--pg71-sheet)!important;border:1px solid var(--pg71-border)!important;box-shadow:0 -12px 60px #0005!important;color:var(--pg71-ink)!important;overscroll-behavior:contain!important}
 #quick-sidebar::before,#sidebar::before{content:"";display:block;width:38px;height:4px;border-radius:999px;margin:0 auto 9px;background:var(--pg71-border)}
 #quick-sidebar .side-title,#sidebar>.side-title{top:-14px!important;background:var(--pg71-sheet)!important;border-bottom:1px solid var(--pg71-border)!important;padding:8px 0 12px!important}
 #quick-sidebar .side-title h1,#sidebar>.side-title h2{font-size:17px!important;font-weight:800!important;color:var(--pg71-ink)!important}
 #quick-sidebar #panel,#sidebar{overflow-wrap:anywhere}
 #quick-sidebar #panel .pg65-preset-grid,#quick-sidebar #panel .pg67-template-grid,#quick-sidebar #panel .pg67-grid,#quick-sidebar #panel .pg66-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}
 #quick-sidebar #panel .pg67-swatches,#quick-sidebar #panel .pg68-swatch-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:9px!important}
 #quick-sidebar #panel .pg67-swatch code{white-space:normal!important;word-break:break-word!important;font-size:10px!important;max-width:100%!important}
 #quick-sidebar #panel button{max-width:100%;overflow-wrap:break-word;white-space:normal!important;line-height:1.25!important}
 #mobile-tool-picker{position:fixed!important;inset:auto 5px calc(5px + env(safe-area-inset-bottom,0px)) 5px!important;margin:0!important;width:calc(100% - 10px)!important;max-width:none!important;height:min(78dvh,730px)!important;max-height:78dvh!important;padding:16px!important;border-radius:27px!important;border:1px solid var(--pg71-border)!important;background:var(--pg71-sheet)!important;color:var(--pg71-ink)!important;box-shadow:0 -14px 70px #0005!important;overscroll-behavior:contain!important}
 #mobile-tool-picker::backdrop{background:#050c1c91;backdrop-filter:blur(3px)}
 #mobile-tool-picker .mobile-picker-heading{position:sticky;top:-16px;padding:6px 0 14px;background:var(--pg71-sheet)!important;z-index:2}
 #mobile-picker-title{font-size:19px!important;font-weight:800!important;color:var(--pg71-ink)!important}
 #mobile-picker-body section{margin:0 0 20px!important}
 #mobile-picker-body section h3{color:var(--pg71-muted)!important;font-size:11px!important;letter-spacing:.1em!important;text-transform:uppercase!important;margin:0 0 9px!important}
 .mobile-picker-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:9px!important}
 .mobile-picker-grid button{height:auto!important;min-height:76px!important;padding:12px 4px!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:6px!important;border:1px solid var(--pg71-border)!important;border-radius:17px!important;background:var(--pg71-panel)!important;color:var(--pg71-ink)!important;font-size:11px!important;font-weight:700!important;white-space:normal!important}
 .mobile-picker-grid button svg{width:23px!important;height:23px!important;flex:0 0 23px!important;color:var(--pg71-blue)!important}
 .mobile-picker-grid button span{line-height:1.15!important;text-align:center!important;overflow-wrap:anywhere!important}
 #pg71-search{height:42px;min-height:42px;width:100%;padding:10px 14px;border:1px solid var(--pg71-border);border-radius:14px;background:var(--pg71-panel);color:var(--pg71-ink);font-size:14px;margin:0 0 16px;box-sizing:border-box}
 #mobile-tool-picker [hidden]{display:none!important}
 .pg71-canvas-button{position:absolute;right:14px;top:50px;z-index:6;border:1px solid var(--pg71-border);background:var(--pg71-sheet);color:var(--pg71-ink);border-radius:13px;padding:8px 10px;font-size:11px;font-weight:750;box-shadow:0 4px 12px #0002}
}
@media(max-width:355px){#mobile-create-dock button span{font-size:9px!important}.mobile-picker-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:900px) and (max-height:480px){#mobile-create-dock,body.panel-open #mobile-create-dock,body.properties-open #mobile-create-dock{height:59px!important;min-height:59px!important;max-height:59px!important;grid-template-rows:51px!important}#mobile-create-dock button{height:49px!important;min-height:49px!important}body>main,body.panel-open>main,body.properties-open>main{padding-bottom:70px!important}}
