html:has(body.fd-paper-page),body.fd-paper-page{margin:0!important;padding:0!important;background:#fff!important;min-height:100%;overflow-x:hidden}body.fd-paper-page{display:block!important;width:100%;max-width:none!important} .fd-app{--ink-text:#282a27;--muted:#72756f;box-sizing:border-box;margin:0 auto;padding:0;max-width:100%;width:100%;color:var(--ink-text);background:white;font:400 15px/1.45 system-ui,-apple-system,sans-serif;isolation:isolate}.fd-app *{box-sizing:border-box}.fd-app .fd-sheet{position:relative;display:flex;flex-direction:column;height:100vh;height:100dvh;min-height:280px;background:#fff;padding:env(safe-area-inset-top,0px) max(12px,env(safe-area-inset-right,0px)) max(3px,env(safe-area-inset-bottom,0px)) max(12px,env(safe-area-inset-left,0px));margin:0 auto;max-width:1080px}.fd-app .fd-paper{flex:1;min-height:0;position:relative;margin:0 -12px;overflow:hidden}.fd-app canvas{display:block;width:100%;height:100%;object-fit:contain;touch-action:none;user-select:none;-webkit-user-select:none;cursor:crosshair;background:white;max-width:none;max-height:none}.fd-app button{appearance:none;-webkit-appearance:none;border:0!important;border-radius:0;background:transparent;box-shadow:none!important;color:var(--ink-text);font:inherit;cursor:pointer;margin:0;padding:0;min-height:0;min-width:0;text-transform:none;letter-spacing:normal;outline-offset:3px;touch-action:manipulation}.fd-app button:disabled{opacity:.35;cursor:default}.fd-app button:focus-visible{outline:2px solid #575b54}.fd-app .fd-tools{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));width:100%;max-width:460px;margin:0 auto;gap:0}.fd-app .fd-tools button{position:relative;display:grid;place-items:center;min-height:48px;padding:5px}.fd-app .fd-tools button[aria-pressed=true]::after{content:'';position:absolute;bottom:1px;width:13px;height:2px;border-radius:2px;background:#777}.fd-app .fd-tool-icon{display:grid;place-items:center}.fd-app svg{display:block;width:29px;height:29px;stroke:currentColor;stroke-width:1.55;stroke-linejoin:round;stroke-linecap:round;fill:none}.fd-app .fd-colors{display:flex;justify-content:space-between;align-items:center;max-width:460px;width:100%;margin:4px auto 0;gap:0;min-height:42px}.fd-app .fd-colors button{position:relative;display:grid;place-items:center;width:10%;height:42px;flex:0 0 10%;background:transparent}.fd-app .fd-colors button::before{content:'';width:clamp(18px,5.8vw,29px);height:clamp(18px,5.8vw,29px);border-radius:50%;background:var(--ink)}.fd-app .fd-colors button[aria-pressed=true]::before{outline:1px solid #777;outline-offset:3px}.fd-app .fd-down,.fd-app .fd-up{display:grid;place-items:center;width:100%;min-height:42px;max-width:460px;margin:0 auto}.fd-app .fd-down svg,.fd-app .fd-up svg{width:64px;height:20px;stroke-width:1.8}.fd-app .fd-status{position:absolute;left:12px;right:12px;bottom:142px;text-align:center;font-size:13px;margin:0 auto;max-width:440px;background:#fff;padding:8px;pointer-events:none}.fd-app .fd-status:empty{display:none}.fd-app .fd-new svg{display:none}.fd-app .fd-new::before{content:'+';font-size:32px;font-weight:300;line-height:1}.fd-app .fd-trap{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}.fd-app .fd-gallery{min-height:100vh;min-height:100dvh;max-width:860px;margin:0 auto;padding:0 18px 42px;background:#fff}.fd-app .fd-gallery h3{font:600 22px/1.2 system-ui,sans-serif;margin:12px 0;color:var(--ink-text)}.fd-app .fd-contest{font-size:14px;color:var(--muted);margin:0 0 20px;max-width:620px}.fd-app .fd-gallery-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,165px),1fr));gap:12px;align-items:start}.fd-app .fd-gallery-grid figure{margin:0;background:white;border:1px solid #eee;overflow:hidden}.fd-app .fd-gallery-grid img{display:block;width:100%;height:auto;object-fit:contain}.fd-app .fd-gallery-status{font-size:13px;color:var(--muted);margin:8px 0}.fd-app [data-act=more-gallery]{padding:8px 0;text-decoration:underline}.fd-app [hidden]{display:none!important}@media(prefers-reduced-motion:reduce){.fd-app *{scroll-behavior:auto!important}}

/* 1.4: standalone drawing sheet, including when a builder renders the shortcode. */
html.fd-paper-document,html.fd-paper-document body.fd-paper-page{margin:0!important;padding:0!important;width:100%!important;max-width:none!important;height:auto!important;min-height:100%!important;overflow-x:hidden!important;overflow-y:visible!important;position:static!important;scroll-padding:0!important;background:#fff!important}
html.fd-paper-document body.fd-paper-page{display:block!important;transform:none!important;}
body.fd-paper-page > :not(.fd-app):not(script):not(style):not(link){display:none!important}
html.fd-paper-document body.fd-paper-page > .fd-app{display:block!important;position:relative!important;margin:0!important;padding:0!important;width:100%!important;max-width:none!important;min-width:0!important;background:#fff!important}
.fd-app .fd-sheet{height:100vh;height:100svh;height:var(--fd-visible-height,100svh);min-height:0;max-height:none;padding-top:env(safe-area-inset-top,0px);padding-bottom:max(12px,env(safe-area-inset-bottom,0px));scroll-margin:0;flex-shrink:0}
.fd-app .fd-paper{margin:0;flex:1 1 0;min-height:0}
.fd-app .fd-tools,.fd-app .fd-colors,.fd-app .fd-down{flex-shrink:0}
.fd-app .fd-gallery{scroll-margin:0;min-height:100svh;min-height:var(--fd-visible-height,100svh)}
@media (max-width: 900px) and (pointer:coarse){
  /* The visual viewport already accounts for most browser chrome. Keep a small buffer. */
  .fd-app .fd-sheet{--fd-bottom-gap:max(16px,calc(env(safe-area-inset-bottom,0px) - 12px));padding-bottom:var(--fd-bottom-gap)}
  .fd-app .fd-status{bottom:calc(142px + var(--fd-bottom-gap))}
}
@media (max-height:420px) and (orientation:landscape){.fd-app .fd-sheet{padding-bottom:max(12px,env(safe-area-inset-bottom,0px))}.fd-app .fd-tools button{min-height:40px}.fd-app .fd-colors,.fd-app .fd-colors button{min-height:34px;height:34px}.fd-app .fd-down{min-height:30px}}

/* 1.4.2: place the chevron at the bottom edge of the visible drawing sheet. */
@media (max-width:900px) and (pointer:coarse) and (orientation:portrait){
  .fd-app .fd-sheet{--fd-bottom-gap:0px;padding-bottom:0}
  .fd-app .fd-down{align-items:end}
  .fd-app .fd-down svg{margin-bottom:0}
  .fd-app.fd-iphone-safari .fd-sheet{height:calc(var(--fd-visible-height,100svh) + 18px)}
  .fd-app .fd-gallery{padding-top:44px}
  .fd-app .fd-status{bottom:142px}
}
@media (display-mode:standalone) and (pointer:coarse){
  .fd-app .fd-sheet{padding-bottom:env(safe-area-inset-bottom,0px)}
}
